| @@ -1,92 +1,92 @@ | | | @@ -1,92 +1,92 @@ |
1 | # $NetBSD: Makefile,v 1.13 2011/02/25 09:47:30 wiz Exp $ | | 1 | # $NetBSD: Makefile,v 1.14 2011/06/15 11:15:35 obache Exp $ |
2 | # | | 2 | # |
3 | | | 3 | |
4 | DISTNAME= libxcb-1.7 | | 4 | DISTNAME= libxcb-1.7 |
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 | BUILD_DEPENDS+= libxslt>=1.1.0:../../textproc/libxslt |
15 | BUILD_DEPENDS+= ${PYPKGPREFIX}-xcbgen>=1.6nb1:../../x11/py-xcbgen | | 15 | BUILD_DEPENDS+= ${PYPKGPREFIX}-xcbgen>=1.6nb2:../../x11/py-xcbgen |
16 | | | 16 | |
17 | PKG_DESTDIR_SUPPORT= user-destdir | | 17 | PKG_DESTDIR_SUPPORT= user-destdir |
18 | | | 18 | |
19 | GNU_CONFIGURE= yes | | 19 | GNU_CONFIGURE= yes |
20 | USE_LIBTOOL= yes | | 20 | USE_LIBTOOL= yes |
21 | USE_TOOLS+= pkg-config | | 21 | USE_TOOLS+= pkg-config |
22 | | | 22 | |
23 | CONFIGURE_ARGS+= --disable-build-docs # or needs doxygen | | 23 | CONFIGURE_ARGS+= --disable-build-docs # or needs doxygen |
24 | CONFIGURE_ARGS+= --disable-doxygen | | 24 | CONFIGURE_ARGS+= --disable-doxygen |
25 | | | 25 | |
26 | # Adds -Wl,-R to pkgconfig files automatically | | 26 | # Adds -Wl,-R to pkgconfig files automatically |
27 | PKGCONFIG_OVERRIDE+= xcb-composite.pc.in | | 27 | PKGCONFIG_OVERRIDE+= xcb-composite.pc.in |
28 | PKGCONFIG_OVERRIDE+= xcb-damage.pc.in | | 28 | PKGCONFIG_OVERRIDE+= xcb-damage.pc.in |
29 | PKGCONFIG_OVERRIDE+= xcb-dpms.pc.in | | 29 | PKGCONFIG_OVERRIDE+= xcb-dpms.pc.in |
30 | PKGCONFIG_OVERRIDE+= xcb-glx.pc.in | | 30 | PKGCONFIG_OVERRIDE+= xcb-glx.pc.in |
31 | PKGCONFIG_OVERRIDE+= xcb-randr.pc.in | | 31 | PKGCONFIG_OVERRIDE+= xcb-randr.pc.in |
32 | PKGCONFIG_OVERRIDE+= xcb-record.pc.in | | 32 | PKGCONFIG_OVERRIDE+= xcb-record.pc.in |
33 | PKGCONFIG_OVERRIDE+= xcb-render.pc.in | | 33 | PKGCONFIG_OVERRIDE+= xcb-render.pc.in |
34 | PKGCONFIG_OVERRIDE+= xcb-res.pc.in | | 34 | PKGCONFIG_OVERRIDE+= xcb-res.pc.in |
35 | PKGCONFIG_OVERRIDE+= xcb-screensaver.pc.in | | 35 | PKGCONFIG_OVERRIDE+= xcb-screensaver.pc.in |
36 | PKGCONFIG_OVERRIDE+= xcb-shape.pc.in | | 36 | PKGCONFIG_OVERRIDE+= xcb-shape.pc.in |
37 | PKGCONFIG_OVERRIDE+= xcb-shm.pc.in | | 37 | PKGCONFIG_OVERRIDE+= xcb-shm.pc.in |
38 | PKGCONFIG_OVERRIDE+= xcb-sync.pc.in | | 38 | PKGCONFIG_OVERRIDE+= xcb-sync.pc.in |
39 | PKGCONFIG_OVERRIDE+= xcb-xevie.pc.in | | 39 | PKGCONFIG_OVERRIDE+= xcb-xevie.pc.in |
40 | PKGCONFIG_OVERRIDE+= xcb-xf86dri.pc.in | | 40 | PKGCONFIG_OVERRIDE+= xcb-xf86dri.pc.in |
41 | PKGCONFIG_OVERRIDE+= xcb-xfixes.pc.in | | 41 | PKGCONFIG_OVERRIDE+= xcb-xfixes.pc.in |
42 | PKGCONFIG_OVERRIDE+= xcb-xinerama.pc.in | | 42 | PKGCONFIG_OVERRIDE+= xcb-xinerama.pc.in |
43 | PKGCONFIG_OVERRIDE+= xcb-xprint.pc.in | | 43 | PKGCONFIG_OVERRIDE+= xcb-xprint.pc.in |
44 | PKGCONFIG_OVERRIDE+= xcb-xtest.pc.in | | 44 | PKGCONFIG_OVERRIDE+= xcb-xtest.pc.in |
45 | PKGCONFIG_OVERRIDE+= xcb-xv.pc.in | | 45 | PKGCONFIG_OVERRIDE+= xcb-xv.pc.in |
46 | PKGCONFIG_OVERRIDE+= xcb-xvmc.pc.in | | 46 | PKGCONFIG_OVERRIDE+= xcb-xvmc.pc.in |
47 | PKGCONFIG_OVERRIDE+= xcb.pc.in | | 47 | PKGCONFIG_OVERRIDE+= xcb.pc.in |
48 | | | 48 | |
49 | # libXdmcp is optional; adds support for XDM-AUTHORIZATION-1 in | | 49 | # libXdmcp is optional; adds support for XDM-AUTHORIZATION-1 in |
50 | # addition to MIT-MAGIC-COOKIE-1. | | 50 | # addition to MIT-MAGIC-COOKIE-1. |
51 | | | 51 | |
52 | .include "../../mk/pthread.buildlink3.mk" | | 52 | .include "../../mk/pthread.buildlink3.mk" |
53 | | | 53 | |
54 | ### | | 54 | ### |
55 | ### XXX Adding this here for redundancy--it very well may not be necessary. | | 55 | ### XXX Adding this here for redundancy--it very well may not be necessary. |
56 | ### However, I don't think it could hurt much. We don't include | | 56 | ### However, I don't think it could hurt much. We don't include |
57 | ### PTHREAD_CFLAGS because it could be -pthread. My intention here | | 57 | ### PTHREAD_CFLAGS because it could be -pthread. My intention here |
58 | ### is mainly to pass down the appropriate flags should something | | 58 | ### is mainly to pass down the appropriate flags should something |
59 | ### go awry. | | 59 | ### go awry. |
60 | ### | | 60 | ### |
61 | XTHREADLIB=${${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}:L:M*} | | 61 | XTHREADLIB=${${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}:L:M*} |
62 | | | 62 | |
63 | .if empty(PTHREAD_CPPFLAGS) | | 63 | .if empty(PTHREAD_CPPFLAGS) |
64 | XTHREAD_CFLAGS= -D_REENTRANT # XXX Is this OK? | | 64 | XTHREAD_CFLAGS= -D_REENTRANT # XXX Is this OK? |
65 | .else | | 65 | .else |
66 | XTHREAD_CPPFLAGS= ${PTHREAD_CPPFLAGS} | | 66 | XTHREAD_CPPFLAGS= ${PTHREAD_CPPFLAGS} |
67 | .endif | | 67 | .endif |
68 | | | 68 | |
69 | SUBST_CLASSES+= pc | | 69 | SUBST_CLASSES+= pc |
70 | SUBST_FILES.pc= xcb.pc.in | | 70 | SUBST_FILES.pc= xcb.pc.in |
71 | SUBST_MESSAGE.pc= Configuring threading in xcb.pc.in. | | 71 | SUBST_MESSAGE.pc= Configuring threading in xcb.pc.in. |
72 | SUBST_STAGE.pc= pre-configure | | 72 | SUBST_STAGE.pc= pre-configure |
73 | SUBST_VARS.pc= XTHREADLIB XTHREAD_CPPFLAGS | | 73 | SUBST_VARS.pc= XTHREADLIB XTHREAD_CPPFLAGS |
74 | | | 74 | |
75 | PYTHON_VERSIONS_ACCEPTED= 27 26 25 | | 75 | PYTHON_VERSIONS_ACCEPTED= 27 26 25 |
76 | | | 76 | |
77 | post-extract: | | 77 | post-extract: |
78 | ${CHMOD} -R go-w ${WRKSRC} | | 78 | ${CHMOD} -R go-w ${WRKSRC} |
79 | | | 79 | |
80 | ### | | 80 | ### |
81 | ### 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 |
82 | ### so it's not needed (nor should it ever be, really). | | 82 | ### so it's not needed (nor should it ever be, really). |
83 | ### | | 83 | ### |
84 | #.include "../../devel/gperf/buildlink3.mk" | | 84 | #.include "../../devel/gperf/buildlink3.mk" |
85 | PYTHON_FOR_BUILD_ONLY= yes | | 85 | PYTHON_FOR_BUILD_ONLY= yes |
86 | .include "../../lang/python/application.mk" | | 86 | .include "../../lang/python/application.mk" |
87 | BUILDLINK_API_DEPENDS.xcb-proto?= xcb-proto>=1.6 | | 87 | BUILDLINK_API_DEPENDS.xcb-proto?= xcb-proto>=1.6 |
88 | .include "../../x11/xcb-proto/buildlink3.mk" | | 88 | .include "../../x11/xcb-proto/buildlink3.mk" |
89 | .include "../../x11/libXdmcp/buildlink3.mk" | | 89 | .include "../../x11/libXdmcp/buildlink3.mk" |
90 | .include "../../x11/libXau/buildlink3.mk" | | 90 | .include "../../x11/libXau/buildlink3.mk" |
91 | | | 91 | |
92 | .include "../../mk/bsd.pkg.mk" | | 92 | .include "../../mk/bsd.pkg.mk" |