diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2006-10-07 12:51:39 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2006-10-07 12:51:39 +0000 |
commit | 28b502ee246dd191910a0646fd457df4ffddc666 (patch) | |
tree | 350a47aa5109a60d680abf5e0693b40e71725654 /palm/pilot-link | |
parent | 04a6cc635f156be638b23f61b366f268a5d09beb (diff) | |
download | ports-28b502ee246dd191910a0646fd457df4ffddc666.tar.gz ports-28b502ee246dd191910a0646fd457df4ffddc666.zip |
Notes
Diffstat (limited to 'palm/pilot-link')
-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> |