1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-15 03:14:23 +00:00
freebsd-ports/palm/pilot-link/Makefile
Dirk Meyer 99c66d2ec3 - fix option WITH_PNG
PR:			145163
2010-03-30 14:33:40 +00:00

76 lines
2.1 KiB
Makefile

# New ports collection makefile for: pilot-link
# Date created: November, 1997
# Whom: Paul Traina <pst@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= pilot-link
PORTVERSION= 0.12.5
PORTEPOCH= 1
CATEGORIES= palm comms
MASTER_SITES= http://downloads.pilot-link.org/ \
http://miwibox.org/distfiles/
MAINTAINER= samm@os2.kiev.ua
COMMENT= Suite of tools used to connect and sync your Palm handled
BUILD_DEPENDS= xsltproc:${PORTSDIR}/textproc/libxslt
USE_BZIP2= yes
USE_ICONV= yes
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 --enable-xsltproc
CONFIGURE_ENV+= CFLAGS="${CFLAGS:S/-Werror//}" # clear -Werror from CFLAGS
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
.include <bsd.port.pre.mk>
.if !defined(WITHOUT_THREADS)
CONFIGURE_ARGS+= --enable-threads
CFLAGS+= ${PTHREAD_LIBS}
CONFIGURE_ENV+= PTHREAD_LIBS="${PTHREAD_LIBS}" PTHREAD_CFLAGS="${PTHREAD_CFLAGS}"
.endif
.if defined(WITH_USB)
. if ${OSVERSION} < 800069
LIB_DEPENDS+= usb-0.1.8:${PORTSDIR}/devel/libusb
. endif
CONFIGURE_ARGS+=--enable-libusb
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)
LIB_DEPENDS+= png.6:${PORTSDIR}/graphics/png
CONFIGURE_ARGS+= --with-libpng=${PREFIX}
.else
CONFIGURE_ARGS+= --disable-png
.endif
.include "${.CURDIR}/manpages.mk"
post-patch:
@${REINPLACE_CMD} -e 's|png_voidp_NULL|NULL|g' \
-e 's|png_error_ptr_NULL|NULL|g' \
${WRKSRC}/src/pilot-read-notepad.c \
${WRKSRC}/src/pilot-read-palmpix.c \
${WRKSRC}/src/pilot-read-screenshot.c \
${WRKSRC}/src/pilot-read-veo.c
.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>