aboutsummaryrefslogtreecommitdiffstats
path: root/x11/libxcb/Makefile
blob: e594e63e0f031d4e5a7ff07f34a19296dc768186 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# New ports collection makefile for:    libxcb
# Date Created:             2006-08-23
# Whom:                 Ashish Shukla <wahjava@gmail.com>
#
# $FreeBSD$
#

PORTNAME=   libxcb
PORTVERSION=    1.0
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 \
        xsltproc:${PORTSDIR}/textproc/libxslt \
        doxygen:${PORTSDIR}/devel/doxygen \
        dot:${PORTSDIR}/graphics/graphviz
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}
.for f in XPROTO_CFLAGS XPROTO_LIBS XDMCP_CFLAGS XDMCP_LIBS NEEDED_CFLAGS NEEDED_LIBS
CONFIGURE_ARGS+=${f}="${${f}}"
.endfor
CONFIGURE_ENV=  LIBS="${PTHREAD_LIBS}"

LIB_PC_DEPENDS= ${X11BASE}/libdata/pkgconfig/xcb-proto.pc:${PORTSDIR}/x11/xcb-proto \
    ${LOCALBASE}/libdata/pkgconfig/pthread-stubs.pc:${PORTSDIR}/devel/libpthread-stubs

PTHREAD_STUBS_LIBS!=    pkg-config --libs pthread-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

XPROTO_CFLAGS=  -I${X11BASE}/include
XPROTO_LIBS=    -L${X11BASE}/lib

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 500000
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-src__xcb.h \
        ${FILESDIR}/extra-patch-src__xcb_auth.c
.endif

post-build:
    DISPLAY= ${GMAKE} -C ${WRKSRC} check

.include <bsd.port.post.mk>