summaryrefslogtreecommitdiffstats
path: root/archivers/file-roller
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2003-01-31 01:32:28 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2003-01-31 01:32:28 +0800
commitb4a849f2f4762bf51d3554313d3c4a349497c3ea (patch)
tree65576a66ce54b51d9d8a35da7e8287ed59f717a9 /archivers/file-roller
parent274ed5fd3723e67299e8b462c6db655dbcc8af86 (diff)
downloadmarcuscom-ports-b4a849f2f4762bf51d3554313d3c4a349497c3ea.tar
marcuscom-ports-b4a849f2f4762bf51d3554313d3c4a349497c3ea.tar.gz
marcuscom-ports-b4a849f2f4762bf51d3554313d3c4a349497c3ea.tar.bz2
marcuscom-ports-b4a849f2f4762bf51d3554313d3c4a349497c3ea.tar.lz
marcuscom-ports-b4a849f2f4762bf51d3554313d3c4a349497c3ea.tar.xz
marcuscom-ports-b4a849f2f4762bf51d3554313d3c4a349497c3ea.tar.zst
marcuscom-ports-b4a849f2f4762bf51d3554313d3c4a349497c3ea.zip
Conditionalize rar support since building with it will result in a
fileroller that cannot be packages. Prompted by: Akifyev Sergey <asa@gascom.ru> git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@490 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'archivers/file-roller')
-rw-r--r--archivers/file-roller/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/archivers/file-roller/Makefile b/archivers/file-roller/Makefile
index d1c8e78b0..4b292a64b 100644
--- a/archivers/file-roller/Makefile
+++ b/archivers/file-roller/Makefile
@@ -19,9 +19,9 @@ MAINTAINER= gnome@FreeBSD.org
LIB_DEPENDS= gnomeui-2.200:${PORTSDIR}/x11-toolkits/libgnomeui
RUN_DEPENDS= bzip:${PORTSDIR}/archivers/bzip \
lha:${PORTSDIR}/archivers/lha \
- rar:${PORTSDIR}/archivers/rar \
lzop:${PORTSDIR}/archivers/lzop
+
USE_X_PREFIX= yes
USE_GMAKE= yes
USE_GNOMENG= yes
@@ -31,6 +31,12 @@ CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_RAR) || exists(${LOCALBASE}/bin/rar)
+RUN_DEPENDS+= rar:${PORTSDIR}/archivers/rar
+.endif
+
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
@@ -39,4 +45,4 @@ post-install:
.endfor
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>