2012-12-30 00:00:17 +01:00
|
|
|
# Created by: Sam Lawrance <boris@brooknet.com.au>
|
2005-01-14 01:13:20 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2008-06-17 23:47:05 +02:00
|
|
|
PORTNAME= liborange
|
2009-01-13 01:18:55 +01:00
|
|
|
PORTVERSION= 0.4
|
2005-01-14 01:13:20 +01:00
|
|
|
CATEGORIES= archivers
|
2009-08-22 02:13:26 +02:00
|
|
|
MASTER_SITES= SF/synce/Orange/${PORTVERSION}
|
2005-01-14 01:13:20 +01:00
|
|
|
|
2009-05-28 22:44:16 +02:00
|
|
|
MAINTAINER= avl@FreeBSD.org
|
2008-06-17 23:47:05 +02:00
|
|
|
COMMENT= Library to extract CAB files from self-extracting installers
|
2005-01-14 01:13:20 +01:00
|
|
|
|
2008-08-07 10:16:53 +02:00
|
|
|
RUN_DEPENDS= cabextract:${PORTSDIR}/archivers/cabextract \
|
|
|
|
unzip:${PORTSDIR}/archivers/unzip
|
|
|
|
|
2012-12-30 00:00:17 +01:00
|
|
|
OPTIONS_DEFINE= LIBSYNCE LIBDYNAMITE LIBUNSHIELD INNO VISE MSI
|
|
|
|
OPTIONS_DEFAULT= LIBSYNCE LIBDYNAMITE LIBUNSHIELD
|
|
|
|
LIBSYNCE_DESC= Build with libsynce support
|
|
|
|
LIBDYNAMITE_DESC= Build with libdynamite support
|
|
|
|
LIBUNSHIELD_DESC= Build with libunshield support
|
|
|
|
INNO_DESC= Build with expermential Inno Setup support
|
|
|
|
VISE_DESC= Build with expermential VISE support
|
|
|
|
MSI_DESC= Build with expermential MSI support
|
2005-01-14 01:13:20 +01:00
|
|
|
|
2009-04-01 00:08:31 +02:00
|
|
|
MAKE_JOBS_SAFE= yes
|
|
|
|
|
2010-12-04 08:34:27 +01:00
|
|
|
USE_AUTOTOOLS= libtool
|
2005-01-14 01:13:20 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2009-01-13 01:18:55 +01:00
|
|
|
USE_GNOME= gnomehack
|
2012-12-30 00:00:17 +01:00
|
|
|
ISE_PKGCONFIG= build
|
2005-01-14 01:13:20 +01:00
|
|
|
USE_ICONV= yes
|
2008-06-17 23:47:05 +02:00
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2007-04-10 11:48:07 +02:00
|
|
|
USE_LDCONFIG= yes
|
2005-01-14 01:13:20 +01:00
|
|
|
|
2008-06-17 23:47:05 +02:00
|
|
|
MAN1= orange.1
|
|
|
|
|
2012-12-30 00:00:17 +01:00
|
|
|
.include <bsd.port.options.mk>
|
2008-06-17 23:47:05 +02:00
|
|
|
|
2012-12-30 00:00:17 +01:00
|
|
|
.if ${PORT_OPTIONS:MLIBSYNCE}
|
2008-06-17 23:47:05 +02:00
|
|
|
CONFIGURE_ARGS+= --without-libsynce
|
2008-07-30 01:51:10 +02:00
|
|
|
REQUIRES+= libsynce
|
2008-06-17 23:47:05 +02:00
|
|
|
.else
|
|
|
|
LIB_DEPENDS+= synce.0:${PORTSDIR}/palm/synce-libsynce
|
2008-07-30 01:51:10 +02:00
|
|
|
CONFIGURE_ARGS+= --with-libsynce
|
2008-06-17 23:47:05 +02:00
|
|
|
.endif
|
|
|
|
|
2012-12-30 00:00:17 +01:00
|
|
|
.if ${PORT_OPTIONS:MLIBDYNAMITE}
|
2008-06-17 23:47:05 +02:00
|
|
|
CONFIGURE_ARGS+= --without-libdynamite
|
2008-07-30 01:51:10 +02:00
|
|
|
REQUIRES+= libdynamite
|
2008-06-17 23:47:05 +02:00
|
|
|
.else
|
2012-12-30 00:00:17 +01:00
|
|
|
LIB_DEPENDS+= dynamite:${PORTSDIR}/archivers/libdynamite
|
2008-07-30 01:51:10 +02:00
|
|
|
CONFIGURE_ARGS+= --with-libdynamite
|
2008-06-17 23:47:05 +02:00
|
|
|
.endif
|
|
|
|
|
2012-12-30 00:00:17 +01:00
|
|
|
.if ${PORT_OPTIONS:MLIBUNSHIELD}
|
2008-06-17 23:47:05 +02:00
|
|
|
CONFIGURE_ARGS+= --without-libunshield
|
2008-07-30 01:51:10 +02:00
|
|
|
REQUIRES+= libunshield
|
2008-06-17 23:47:05 +02:00
|
|
|
.else
|
2012-12-30 00:00:17 +01:00
|
|
|
LIB_DEPENDS+= unshield:${PORTSDIR}/archivers/unshield
|
2008-07-30 01:51:10 +02:00
|
|
|
CONFIGURE_ARGS+= --with-libunshield
|
2008-06-17 23:47:05 +02:00
|
|
|
.endif
|
|
|
|
|
2012-12-30 00:00:17 +01:00
|
|
|
.if ${PORT_OPTIONS:MINNO}
|
2008-06-17 23:47:05 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-inno
|
|
|
|
.endif
|
|
|
|
|
2012-12-30 00:00:17 +01:00
|
|
|
.if ${PORT_OPTIONS:MVISE}
|
2008-06-17 23:47:05 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-vise
|
|
|
|
.endif
|
|
|
|
|
2012-12-30 00:00:17 +01:00
|
|
|
.if ${PORT_OPTIONS:MMSI}
|
2008-06-17 23:47:05 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-msi --with-libgsf
|
|
|
|
LIB_DEPENDS+= gsf-1.114:${PORTSDIR}/devel/libgsf
|
|
|
|
.endif
|
|
|
|
|
2008-07-30 01:51:10 +02:00
|
|
|
post-patch:
|
|
|
|
.for req in ${REQUIRES}
|
|
|
|
@${REINPLACE_CMD} -e 's|${req}||' ${WRKSRC}/${PORTNAME}.pc.in
|
|
|
|
.endfor
|
|
|
|
|
2012-12-30 00:00:17 +01:00
|
|
|
.include <bsd.port.mk>
|