| @@ -1,36 +1,47 @@ | | | @@ -1,36 +1,47 @@ |
1 | # $NetBSD: Makefile,v 1.20 2013/02/01 14:40:29 jperkin Exp $ | | 1 | # $NetBSD: Makefile,v 1.21 2013/05/10 22:40:31 riastradh Exp $ |
2 | # | | 2 | # |
3 | | | 3 | |
4 | DISTNAME= libxcb-1.9 | | 4 | DISTNAME= libxcb-1.9 |
5 | CATEGORIES= x11 | | 5 | CATEGORIES= x11 |
6 | MASTER_SITES= http://xcb.freedesktop.org/dist/ | | 6 | MASTER_SITES= http://xcb.freedesktop.org/dist/ |
7 | EXTRACT_SUFX= .tar.bz2 | | 7 | EXTRACT_SUFX= .tar.bz2 |
8 | | | 8 | |
9 | MAINTAINER= reed@reedmedia.net | | 9 | MAINTAINER= reed@reedmedia.net |
10 | HOMEPAGE= http://xcb.freedesktop.org/ | | 10 | HOMEPAGE= http://xcb.freedesktop.org/ |
11 | COMMENT= X protocol C-language Binding | | 11 | COMMENT= X protocol C-language Binding |
12 | LICENSE= mit # with no-advertising clause | | 12 | LICENSE= mit # with no-advertising clause |
13 | | | 13 | |
14 | BUILD_DEPENDS+= libxslt>=1.1.0:../../textproc/libxslt | | 14 | TOOL_DEPENDS+= libxslt>=1.1.0:../../textproc/libxslt |
15 | BUILD_DEPENDS+= ${PYPKGPREFIX}-xcbgen>=1.7:../../x11/py-xcbgen | | 15 | TOOL_DEPENDS+= ${PYPKGPREFIX}-xcbgen>=1.7:../../x11/py-xcbgen |
16 | | | 16 | |
17 | GNU_CONFIGURE= yes | | 17 | GNU_CONFIGURE= yes |
18 | USE_LIBTOOL= yes | | 18 | USE_LIBTOOL= yes |
19 | USE_TOOLS+= gmake pkg-config | | 19 | USE_TOOLS+= gmake pkg-config |
20 | | | 20 | |
21 | CONFIGURE_ARGS+= --disable-build-docs # or needs doxygen | | 21 | CONFIGURE_ARGS+= --disable-build-docs # or needs doxygen |
22 | CONFIGURE_ARGS+= --disable-doxygen | | 22 | CONFIGURE_ARGS+= --disable-doxygen |
23 | | | 23 | |
| | | 24 | .include "../../mk/bsd.prefs.mk" |
| | | 25 | |
| | | 26 | .if !empty(USE_CROSS_COMPILE:M[yY][eE][sS]) |
| | | 27 | # No native C compiler needed -- the tool that gobbles up the xcb |
| | | 28 | # prototypes is in Python. |
| | | 29 | # |
| | | 30 | # XXX This needs to match the version of xcb-proto we get for the |
| | | 31 | # target by buildlink3. |
| | | 32 | TOOL_DEPENDS+= xcb-proto-[0-9]*:../../x11/xcb-proto |
| | | 33 | .endif |
| | | 34 | |
24 | # Adds -Wl,-R to pkgconfig files automatically | | 35 | # Adds -Wl,-R to pkgconfig files automatically |
25 | PKGCONFIG_OVERRIDE+= xcb-composite.pc.in | | 36 | PKGCONFIG_OVERRIDE+= xcb-composite.pc.in |
26 | PKGCONFIG_OVERRIDE+= xcb-damage.pc.in | | 37 | PKGCONFIG_OVERRIDE+= xcb-damage.pc.in |
27 | PKGCONFIG_OVERRIDE+= xcb-dpms.pc.in | | 38 | PKGCONFIG_OVERRIDE+= xcb-dpms.pc.in |
28 | PKGCONFIG_OVERRIDE+= xcb-glx.pc.in | | 39 | PKGCONFIG_OVERRIDE+= xcb-glx.pc.in |
29 | PKGCONFIG_OVERRIDE+= xcb-randr.pc.in | | 40 | PKGCONFIG_OVERRIDE+= xcb-randr.pc.in |
30 | PKGCONFIG_OVERRIDE+= xcb-record.pc.in | | 41 | PKGCONFIG_OVERRIDE+= xcb-record.pc.in |
31 | PKGCONFIG_OVERRIDE+= xcb-render.pc.in | | 42 | PKGCONFIG_OVERRIDE+= xcb-render.pc.in |
32 | PKGCONFIG_OVERRIDE+= xcb-res.pc.in | | 43 | PKGCONFIG_OVERRIDE+= xcb-res.pc.in |
33 | PKGCONFIG_OVERRIDE+= xcb-screensaver.pc.in | | 44 | PKGCONFIG_OVERRIDE+= xcb-screensaver.pc.in |
34 | PKGCONFIG_OVERRIDE+= xcb-shape.pc.in | | 45 | PKGCONFIG_OVERRIDE+= xcb-shape.pc.in |
35 | PKGCONFIG_OVERRIDE+= xcb-shm.pc.in | | 46 | PKGCONFIG_OVERRIDE+= xcb-shm.pc.in |
36 | PKGCONFIG_OVERRIDE+= xcb-sync.pc.in | | 47 | PKGCONFIG_OVERRIDE+= xcb-sync.pc.in |
| @@ -61,21 +72,21 @@ SUBST_CLASSES+= pc | | | @@ -61,21 +72,21 @@ SUBST_CLASSES+= pc |
61 | SUBST_FILES.pc= xcb.pc.in | | 72 | SUBST_FILES.pc= xcb.pc.in |
62 | SUBST_MESSAGE.pc= Configuring threading in xcb.pc.in. | | 73 | SUBST_MESSAGE.pc= Configuring threading in xcb.pc.in. |
63 | SUBST_STAGE.pc= pre-configure | | 74 | SUBST_STAGE.pc= pre-configure |
64 | SUBST_VARS.pc= XTHREADLIB XTHREAD_CPPFLAGS | | 75 | SUBST_VARS.pc= XTHREADLIB XTHREAD_CPPFLAGS |
65 | | | 76 | |
66 | post-extract: | | 77 | post-extract: |
67 | ${CHMOD} -R go-w ${WRKSRC} | | 78 | ${CHMOD} -R go-w ${WRKSRC} |
68 | | | 79 | |
69 | ### | | 80 | ### |
70 | ### XXX needed to build from scratch, but we're patching right now | | 81 | ### XXX needed to build from scratch, but we're patching right now |
71 | ### so it's not needed (nor should it ever be, really). | | 82 | ### so it's not needed (nor should it ever be, really). |
72 | ### | | 83 | ### |
73 | #.include "../../devel/gperf/buildlink3.mk" | | 84 | #.include "../../devel/gperf/buildlink3.mk" |
74 | PYTHON_FOR_BUILD_ONLY= yes | | 85 | PYTHON_FOR_BUILD_ONLY= tool |
75 | .include "../../lang/python/application.mk" | | 86 | .include "../../lang/python/application.mk" |
76 | BUILDLINK_API_DEPENDS.xcb-proto?= xcb-proto>=1.8 | | 87 | BUILDLINK_API_DEPENDS.xcb-proto?= xcb-proto>=1.8 |
77 | .include "../../x11/xcb-proto/buildlink3.mk" | | 88 | .include "../../x11/xcb-proto/buildlink3.mk" |
78 | .include "../../x11/libXdmcp/buildlink3.mk" | | 89 | .include "../../x11/libXdmcp/buildlink3.mk" |
79 | .include "../../x11/libXau/buildlink3.mk" | | 90 | .include "../../x11/libXau/buildlink3.mk" |
80 | | | 91 | |
81 | .include "../../mk/bsd.pkg.mk" | | 92 | .include "../../mk/bsd.pkg.mk" |