diff options
author | pav <pav@FreeBSD.org> | 2006-10-07 20:51:39 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2006-10-07 20:51:39 +0800 |
commit | cde154d5244d754cdc1032b05c393e46694b2500 (patch) | |
tree | 217acb6231ef1a9f728cdadc80f9d9df15c7275e /palm | |
parent | d36d20e79b48dee2fcb14289ef61f24a71b2eb07 (diff) | |
download | freebsd-ports-gnome-cde154d5244d754cdc1032b05c393e46694b2500.tar.gz freebsd-ports-gnome-cde154d5244d754cdc1032b05c393e46694b2500.tar.zst freebsd-ports-gnome-cde154d5244d754cdc1032b05c393e46694b2500.zip |
- Record -pthread requirement in pkg-config file, if threads are turned on
- USB always needs threads turned on
PR: ports/104064
Diffstat (limited to 'palm')
-rw-r--r-- | palm/pilot-link/Makefile | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/palm/pilot-link/Makefile b/palm/pilot-link/Makefile index 15e84e6212a0..907ceb740d66 100644 --- a/palm/pilot-link/Makefile +++ b/palm/pilot-link/Makefile @@ -6,7 +6,8 @@ # PORTNAME= pilot-link -DISTVERSION= 0.12.1 +PORTVERSION= 0.12.1 +PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES= palm comms MASTER_SITES= http://www.mirrorservice.org/sites/master.us.finkmirrors.net/distfiles/ \ @@ -18,7 +19,7 @@ COMMENT= Suite of tools used to connect and sync your Palm handled USE_BZIP2= yes USE_ICONV= yes USE_GETOPT_LONG=yes -USE_GNOME= gnometarget gnomehack +USE_GNOME= gnometarget gnomehack pkgconfig GNU_CONFIGURE= yes CFLAGS+= -I${WRKSRC}/popt -I${LOCALBASE}/include CONFIGURE_ARGS+=--with-libiconv=${LOCALBASE} --with-included-popt --enable-conduits \ @@ -34,13 +35,18 @@ OPTIONS= PNG "build with png support" off \ .if !defined(WITHOUT_THREADS) CONFIGURE_ARGS+= --enable-threads -LDFLAGS+= ${PTHREAD_LIBS} .endif .if defined(WITH_USB) LIB_DEPENDS+= usb-0.1.8:${PORTSDIR}/devel/libusb CONFIGURE_ARGS+=--enable-libusb -CONFIGURE_ENV+="LDFLAGS=${LDFLAGS} -L${PREFIX}/lib -lusb" +CONFIGURE_ENV+=LDFLAGS="${LDFLAGS} -L${PREFIX}/lib -lusb" + +.if defined(WITHOUT_THREADS) +IGNORE= cannot be built: USB support requires THREADS turned on. Please reconfigure using 'make config' +.else +LDFLAGS+= ${PTHREAD_LIBS} +.endif .endif .if defined(WITH_PNG) @@ -52,4 +58,9 @@ CONFIGURE_ARGS+= --disable-png .include "${.CURDIR}/manpages.mk" +post-patch: +.if !defined(WITHOUT_THREADS) + @${REINPLACE_CMD} -e 's|Libs: |Libs: ${PTHREAD_LIBS} |' ${WRKSRC}/pilot-link.pc.in ${WRKSRC}/pilot-link-pp.pc.in +.endif + .include <bsd.port.post.mk> |