2006-10-08 16:14:52 +00:00
|
|
|
# New ports collection makefile for: libxcb
|
|
|
|
# Date Created: 2006-08-23
|
|
|
|
# Whom: Ashish Shukla <wahjava@gmail.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= libxcb
|
2007-01-29 11:18:46 +00:00
|
|
|
PORTVERSION= 1.0
|
2006-10-08 16:14:52 +00:00
|
|
|
CATEGORIES= x11
|
|
|
|
MASTER_SITES= http://xcb.freedesktop.org/dist/
|
|
|
|
|
|
|
|
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 \
|
2007-01-29 11:18:46 +00:00
|
|
|
xsltproc:${PORTSDIR}/textproc/libxslt \
|
|
|
|
doxygen:${PORTSDIR}/devel/doxygen \
|
|
|
|
dot:${PORTSDIR}/graphics/graphviz
|
2006-10-08 16:14:52 +00:00
|
|
|
RUN_DEPENDS= ${LIB_PC_DEPENDS}
|
|
|
|
|
|
|
|
USE_X_PREFIX= yes
|
|
|
|
USE_BZIP2= yes
|
|
|
|
USE_GNOME= gnomehack pkgconfig
|
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_LDCONFIG= yes
|
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
|
|
|
|
CONFIGURE_ARGS= --with-check=${LOCALBASE}
|
2007-01-29 11:18:46 +00:00
|
|
|
.for f in XPROTO_CFLAGS XPROTO_LIBS XDMCP_CFLAGS XDMCP_LIBS NEEDED_CFLAGS NEEDED_LIBS
|
2006-10-08 16:14:52 +00:00
|
|
|
CONFIGURE_ARGS+=${f}="${${f}}"
|
|
|
|
.endfor
|
|
|
|
CONFIGURE_ENV= LIBS="${PTHREAD_LIBS}"
|
|
|
|
|
2007-01-29 11:18:46 +00:00
|
|
|
LIB_PC_DEPENDS= ${X11BASE}/libdata/pkgconfig/xcb-proto.pc:${PORTSDIR}/x11/xcb-proto \
|
|
|
|
${LOCALBASE}/libdata/pkgconfig/pthread-stubs.pc:${PORTSDIR}/devel/libpthread-stubs
|
2006-10-08 16:14:52 +00:00
|
|
|
|
2007-01-29 11:18:46 +00:00
|
|
|
PTHREAD_STUBS_LIBS!= pkg-config --libs pthread-stubs
|
|
|
|
|
|
|
|
NEEDED_CFLAGS= -I${X11BASE}/include
|
|
|
|
NEEDED_LIBS= -L${X11BASE}/lib -lXau $(PTHREAD_STUBS_LIBS)
|
2006-10-08 16:14:52 +00:00
|
|
|
|
|
|
|
XDMCP_CFLAGS= -I${X11BASE}/include
|
|
|
|
XDMCP_LIBS= -L${X11BASE}/lib -lXdmcp
|
|
|
|
|
|
|
|
XPROTO_CFLAGS= -I${X11BASE}/include
|
|
|
|
XPROTO_LIBS= -L${X11BASE}/lib
|
|
|
|
|
2006-11-05 15:49:16 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSVERSION} < 500000
|
|
|
|
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-src__xcb.h \
|
|
|
|
${FILESDIR}/extra-patch-src__xcb_auth.c
|
|
|
|
.endif
|
|
|
|
|
2006-10-08 16:14:52 +00:00
|
|
|
post-build:
|
|
|
|
DISPLAY= ${GMAKE} -C ${WRKSRC} check
|
|
|
|
|
2006-11-05 15:49:16 +00:00
|
|
|
.include <bsd.port.post.mk>
|