Tweak games/retroarch version 1.3.6
[dports.git] / palm / pilot-link / Makefile
1 # Created by: Paul Traina <pst@FreeBSD.org>
2 # $FreeBSD$
3
4 PORTNAME=       pilot-link
5 PORTVERSION=    0.12.5
6 PORTREVISION=   2
7 PORTEPOCH=      1
8 CATEGORIES=     palm comms
9 MASTER_SITES=   http://downloads.pilot-link.org/ \
10                 http://miwibox.org/distfiles/
11
12 MAINTAINER=     samm@os2.kiev.ua
13 COMMENT=        Suite of tools to connect and sync your Palm handheld
14
15 LICENSE=        GPLv2
16
17 BUILD_DEPENDS=  xsltproc:textproc/libxslt
18
19 GNU_CONFIGURE=  yes
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
24 USE_LDCONFIG=   yes
25
26 OPTIONS_DEFINE= PNG THREADS USB
27 USB_DESC=       Compile with USB via libusb support (READ MANUAL!)
28
29 .include <bsd.port.options.mk>
30
31 .if ${PORT_OPTIONS:MTHREADS}
32 CONFIGURE_ARGS+=        --enable-threads
33 .endif
34
35 .if ${PORT_OPTIONS:MUSB}
36 CONFIGURE_ARGS+=--enable-libusb
37 LDFLAGS+=       -L${PREFIX}/lib -lusb
38
39 .if ! ${PORT_OPTIONS:MTHREADS}
40 IGNORE=         cannot be built: USB support requires THREADS turned on.  Please reconfigure using 'make config'
41 .endif
42 .endif
43
44 .if ${PORT_OPTIONS:MPNG}
45 LIB_DEPENDS+=   libpng.so:graphics/png
46 CONFIGURE_ARGS+=        --with-libpng=${PREFIX}
47 .else
48 CONFIGURE_ARGS+=        --disable-png
49 .endif
50
51 post-patch:
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
59
60 .include <bsd.port.mk>