mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
5b071f7d0f
The configure error "Not configured with libgsf or libole2 but that's needed for MSI support" is caused by using the wrong configure option of MSI that was introduced in last commit. Changing to MSI_CONFIGURE_ENABLE=libgsf to MSI_CONFIGURE_WITH=libgsf should have solved the problem, but unfortunately there is a logic flaw in the configure script. If --without-libgsf is passed to it, it mistakenly tries to find it anyway with pkgconfig and then fails. The way to fix this properly is to patch the configure script, but I am going to cheat by making libgsf an unconditional requirement as it was before adamw fixed the options reversal.
69 lines
1.7 KiB
Makefile
69 lines
1.7 KiB
Makefile
# Created by: Sam Lawrance <boris@brooknet.com.au>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= liborange
|
|
PORTVERSION= 0.4
|
|
PORTREVISION= 3
|
|
CATEGORIES= archivers
|
|
MASTER_SITES= SF/synce/Orange/${PORTVERSION}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Library to extract CAB files from self-extracting installers
|
|
|
|
LIB_DEPENDS= libgsf-1.so:${PORTSDIR}/devel/libgsf
|
|
RUN_DEPENDS= cabextract:${PORTSDIR}/archivers/cabextract \
|
|
unzip:${PORTSDIR}/archivers/unzip
|
|
|
|
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
|
|
|
|
GNU_CONFIGURE= yes
|
|
USES= iconv libtool pathfix pkgconfig
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib -lgsf-1
|
|
USE_LDCONFIG= yes
|
|
|
|
CONFIGURE_ARGS+= --with-libgsf
|
|
|
|
LIBSYNCE_LIB_DEPENDS= libsynce.so:${PORTSDIR}/palm/synce-libsynce
|
|
LIBSYNCE_CONFIGURE_WITH= libsynce
|
|
|
|
LIBDYNAMITE_LIB_DEPENDS= libdynamite.so:${PORTSDIR}/archivers/libdynamite
|
|
LIBDYNAMITE_CONFIGURE_WITH= libdynamite
|
|
|
|
LIBUNSHIELD_LIB_DEPENDS= libunshield.so:${PORTSDIR}/archivers/unshield
|
|
LIBUNSHIELD_CONFIGURE_WITH= libunshield
|
|
|
|
INNO_CONFIGURE_ENABLE= inno
|
|
|
|
VISE_CONFIGURE_ENABLE= vise
|
|
|
|
MSI_CONFIGURE_ENABLE= msi
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MLIBSYNCE}
|
|
REQUIRES+= libsynce
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MLIBDYNAMITE}
|
|
REQUIRES+= libdynamite
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MLIBUNSHIELD}
|
|
REQUIRES+= libunshield
|
|
.endif
|
|
|
|
post-patch:
|
|
.for req in ${REQUIRES}
|
|
@${REINPLACE_CMD} -e 's|${req}||' ${WRKSRC}/${PORTNAME}.pc.in
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|