diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2013-03-22 12:40:32 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2013-03-22 12:40:32 +0000 |
commit | 61000f23278e2896df05e4dcb2fa6fcdf1c33643 (patch) | |
tree | 2eef8dc8057844b13440984edd0115f961a53036 /palm | |
parent | 4e29df1229e8f7aeb6bce65481987a85a1ee53b5 (diff) |
Notes
Diffstat (limited to 'palm')
-rw-r--r-- | palm/pilot-link/Makefile | 28 |
1 files changed, 12 insertions, 16 deletions
diff --git a/palm/pilot-link/Makefile b/palm/pilot-link/Makefile index 1113813382cb..58b378a1fa7c 100644 --- a/palm/pilot-link/Makefile +++ b/palm/pilot-link/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: pilot-link -# Date created: November, 1997 -# Whom: Paul Traina <pst@FreeBSD.org> -# +# Created by: Paul Traina <pst@FreeBSD.org> # $FreeBSD$ -# PORTNAME= pilot-link PORTVERSION= 0.12.5 @@ -17,41 +13,41 @@ COMMENT= Suite of tools used to connect and sync your Palm handled BUILD_DEPENDS= xsltproc:${PORTSDIR}/textproc/libxslt +USES= pathfix USE_BZIP2= yes USE_ICONV= yes -USE_GNOME= gnomehack pkgconfig +USE_PKGCONFIG= build GNU_CONFIGURE= yes CFLAGS+= -I${WRKSRC}/popt -I${LOCALBASE}/include CONFIGURE_ARGS+=--with-libiconv=${LOCALBASE} --with-included-popt --enable-conduits --enable-xsltproc USE_LDCONFIG= yes -OPTIONS= PNG "build with png support" off \ - THREADS "built-in thread safety" on \ - USB "Compile with USB via libusb support (READ MANUAL!)" off +OPTIONS_DEFINE= PNG THREADS USB +USB_DESC= Compile with USB via libusb support (READ MANUAL!) -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> -.if !defined(WITHOUT_THREADS) +.if ${PORT_OPTIONS:MTHREADS} CONFIGURE_ARGS+= --enable-threads CFLAGS+= ${PTHREAD_LIBS} CONFIGURE_ENV+= PTHREAD_LIBS="${PTHREAD_LIBS}" PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" .endif -.if defined(WITH_USB) +.if ${PORT_OPTIONS:MUSB} . if ${OSVERSION} < 800069 LIB_DEPENDS+= usb-0.1.8:${PORTSDIR}/devel/libusb . endif CONFIGURE_ARGS+=--enable-libusb LDFLAGS+= -L${PREFIX}/lib -lusb -.if defined(WITHOUT_THREADS) +.if ! ${PORT_OPTIONS: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) +.if ${PORT_OPTIONS:MPNG} LIB_DEPENDS+= png15:${PORTSDIR}/graphics/png CONFIGURE_ARGS+= --with-libpng=${PREFIX} .else @@ -67,8 +63,8 @@ post-patch: ${WRKSRC}/src/pilot-read-palmpix.c \ ${WRKSRC}/src/pilot-read-screenshot.c \ ${WRKSRC}/src/pilot-read-veo.c -.if !defined(WITHOUT_THREADS) +.if ${PORT_OPTIONS:MTHREADS} @${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> +.include <bsd.port.mk> |