diff options
Diffstat (limited to 'x11/libxcb/Makefile')
-rw-r--r-- | x11/libxcb/Makefile | 44 |
1 files changed, 20 insertions, 24 deletions
diff --git a/x11/libxcb/Makefile b/x11/libxcb/Makefile index 9f0fd2fd204f..41ca0550d118 100644 --- a/x11/libxcb/Makefile +++ b/x11/libxcb/Makefile @@ -9,19 +9,25 @@ PORTNAME= libxcb PORTVERSION= 1.0 PORTREVISION= 2 CATEGORIES= x11 -MASTER_SITES= http://xcb.freedesktop.org/dist/ +MASTER_SITES= XORG/current/src/extras MAINTAINER= wahjava@gmail.com COMMENT= The X protocol C-language Binding (XCB) library -BUILD_DEPENDS= ${LIB_PC_DEPENDS} \ - ${LOCALBASE}/lib/libcheck.a:${PORTSDIR}/devel/libcheck \ +BUILD_DEPENDS= ${LOCALBASE}/lib/libcheck.a:${PORTSDIR}/devel/libcheck \ xsltproc:${PORTSDIR}/textproc/libxslt \ - doxygen:${PORTSDIR}/devel/doxygen \ + ${LOCALBASE}/libdata/pkgconfig/xcb-proto.pc:${PORTSDIR}/x11/xcb-proto \ + ${LOCALBASE}/libdata/pkgconfig/pthread-stubs.pc:${PORTSDIR}/devel/libpthread-stubs +RUN_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/xcb-proto.pc:${PORTSDIR}/x11/xcb-proto \ + ${LOCALBASE}/libdata/pkgconfig/pthread-stubs.pc:${PORTSDIR}/devel/libpthread-stubs + +.if defined(NOPORTDOCS) +CONFIGURE_ARGS+= --disable-build-docs BUILD_DOCS=no +.else +BUILD_DEPENDS+= doxygen:${PORTSDIR}/devel/doxygen \ dot:${PORTSDIR}/graphics/graphviz -RUN_DEPENDS= ${LIB_PC_DEPENDS} +.endif -PREFIX= ${X11BASE} USE_BZIP2= yes USE_GNOME= gnomehack USE_GMAKE= yes @@ -30,29 +36,19 @@ USE_XORG= xau xdmcp GNU_CONFIGURE= yes CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL} -CONFIGURE_ARGS= --with-check=${LOCALBASE} +CONFIGURE_ARGS+= --with-check=${LOCALBASE} .for f in XPROTO_CFLAGS XPROTO_LIBS XDMCP_CFLAGS XDMCP_LIBS NEEDED_CFLAGS NEEDED_LIBS CONFIGURE_ARGS+=${f}="${${f}}" .endfor CONFIGURE_ENV= LIBS="`pkg-config --libs pthread-stubs`" -LIB_PC_DEPENDS= ${X11BASE}/libdata/pkgconfig/xcb-proto.pc:${PORTSDIR}/x11/xcb-proto \ - ${LOCALBASE}/libdata/pkgconfig/pthread-stubs.pc:${PORTSDIR}/devel/libpthread-stubs - -NEEDED_CFLAGS= -I${X11BASE}/include -NEEDED_LIBS= -L${X11BASE}/lib -lXau $(PTHREAD_STUBS_LIBS) - -XDMCP_CFLAGS= -I${X11BASE}/include -XDMCP_LIBS= -L${X11BASE}/lib -lXdmcp +NEEDED_CFLAGS= -I${LOCALBASE}/include +NEEDED_LIBS= -L${LOCALBASE}/lib -lXau ${PTHREAD_STUBS_LIBS} -XPROTO_CFLAGS= -I${X11BASE}/include -XPROTO_LIBS= -L${X11BASE}/lib +XDMCP_CFLAGS= -I${LOCALBASE}/include +XDMCP_LIBS= -L${LOCALBASE}/lib -lXdmcp -.include <bsd.port.pre.mk> - -.if ${OSVERSION} < 500000 -EXTRA_PATCHES+= ${FILESDIR}/extra-patch-src__xcb.h \ - ${FILESDIR}/extra-patch-src__xcb_auth.c -.endif +XPROTO_CFLAGS= -I${LOCALBASE}/include +XPROTO_LIBS= -L${LOCALBASE}/lib -.include <bsd.port.post.mk> +.include <bsd.port.mk> |