1 # Created by: Paul Traina <pst@FreeBSD.org>
9 MASTER_SITES= http://downloads.pilot-link.org/ \
10 http://miwibox.org/distfiles/
12 MAINTAINER= samm@os2.kiev.ua
13 COMMENT= Suite of tools to connect and sync your Palm handheld
17 BUILD_DEPENDS= xsltproc:textproc/libxslt
20 CFLAGS+= -I${WRKSRC}/popt -I${LOCALBASE}/include
21 CONFIGURE_ARGS+=${ICONV_CONFIGURE_BASE} --with-included-popt --enable-conduits --enable-xsltproc
22 INSTALL_TARGET= install-strip
23 USES= iconv libtool pathfix pkgconfig readline tar:bzip2
26 OPTIONS_DEFINE= PNG THREADS USB
27 USB_DESC= Compile with USB via libusb support (READ MANUAL!)
29 .include <bsd.port.options.mk>
31 .if ${PORT_OPTIONS:MTHREADS}
32 CONFIGURE_ARGS+= --enable-threads
35 .if ${PORT_OPTIONS:MUSB}
36 CONFIGURE_ARGS+=--enable-libusb
37 LDFLAGS+= -L${PREFIX}/lib -lusb
39 .if ! ${PORT_OPTIONS:MTHREADS}
40 IGNORE= cannot be built: USB support requires THREADS turned on. Please reconfigure using 'make config'
44 .if ${PORT_OPTIONS:MPNG}
45 LIB_DEPENDS+= libpng.so:graphics/png
46 CONFIGURE_ARGS+= --with-libpng=${PREFIX}
48 CONFIGURE_ARGS+= --disable-png
52 @${REINPLACE_CMD} '/enable_werror="yes"/d' ${WRKSRC}/configure
53 @${REINPLACE_CMD} -e 's|png_voidp_NULL|NULL|g' \
54 -e 's|png_error_ptr_NULL|NULL|g' \
55 ${WRKSRC}/src/pilot-read-notepad.c \
56 ${WRKSRC}/src/pilot-read-palmpix.c \
57 ${WRKSRC}/src/pilot-read-screenshot.c \
58 ${WRKSRC}/src/pilot-read-veo.c
60 .include <bsd.port.mk>