aboutsummaryrefslogtreecommitdiffstats
path: root/archivers/xarchive
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2014-03-03 05:20:04 +0800
committerbapt <bapt@FreeBSD.org>2014-03-03 05:20:04 +0800
commitd0a2d2389fdecd0070dda72f72b960543b693ce7 (patch)
tree48b40bc232267203127114e79e5ba86f0720fb95 /archivers/xarchive
parent9e5bdd9802fc8168af39cc8e9a3749f91f179663 (diff)
downloadfreebsd-ports-gnome-d0a2d2389fdecd0070dda72f72b960543b693ce7.tar.gz
freebsd-ports-gnome-d0a2d2389fdecd0070dda72f72b960543b693ce7.tar.zst
freebsd-ports-gnome-d0a2d2389fdecd0070dda72f72b960543b693ce7.zip
Support stage
Use options helpers
Diffstat (limited to 'archivers/xarchive')
-rw-r--r--archivers/xarchive/Makefile39
-rw-r--r--archivers/xarchive/pkg-plist1
2 files changed, 8 insertions, 32 deletions
diff --git a/archivers/xarchive/Makefile b/archivers/xarchive/Makefile
index 628376ba60de..4fb574938530 100644
--- a/archivers/xarchive/Makefile
+++ b/archivers/xarchive/Makefile
@@ -12,13 +12,10 @@ COMMENT= GTK+ front end for various archiving tools
RUN_DEPENDS= bash:${PORTSDIR}/shells/bash
-NO_STAGE= yes
USES= pkgconfig
GNU_CONFIGURE= yes
USE_GNOME= gtk20
-MAN1= ${PORTNAME}.1
-
OPTIONS_DEFINE= 7ZIP ARJ ACE DEB RAR RPM ZIP
7ZIP_DESC= 7zip archive support
@@ -29,37 +26,15 @@ RAR_DESC= RAR archive support
RPM_DESC= RPM archive support
ZIP_DESC= ZIP archive support
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:M7ZIP}
-RUN_DEPENDS+= 7z:${PORTSDIR}/archivers/p7zip
-.endif
-
-.if ${PORT_OPTIONS:MARJ}
-RUN_DEPENDS+= arj:${PORTSDIR}/archivers/arj
-.endif
-
-.if ${PORT_OPTIONS:MACE}
-RUN_DEPENDS+= unace:${PORTSDIR}/archivers/unace
-.endif
-
-.if ${PORT_OPTIONS:MDEB}
-RUN_DEPENDS+= dpkg-deb:${PORTSDIR}/archivers/dpkg
-.endif
-
-.if ${PORT_OPTIONS:MRAR}
-RUN_DEPENDS+= rar:${PORTSDIR}/archivers/rar \
+7ZIP_RUN_DEPENDS= 7z:${PORTSDIR}/archivers/p7zip
+ARJ_RUN_DEPENDS+= arj:${PORTSDIR}/archivers/arj
+ACE_RUN_DEPENDS+= unace:${PORTSDIR}/archivers/unace
+DEB_RUN_DEPENDS+= dpkg-deb:${PORTSDIR}/archivers/dpkg
+RAR_RUN_DEPENDS+= rar:${PORTSDIR}/archivers/rar \
unrar:${PORTSDIR}/archivers/unrar
-.endif
-
-.if ${PORT_OPTIONS:MRPM}
-RUN_DEPENDS+= rpm2cpio:${PORTSDIR}/archivers/rpm2cpio \
+RPM_RUN_DEPENDS+= rpm2cpio:${PORTSDIR}/archivers/rpm2cpio \
rpm:${PORTSDIR}/archivers/rpm
-.endif
-
-.if ${PORT_OPTIONS:MZIP}
-RUN_DEPENDS+= zip:${PORTSDIR}/archivers/zip \
+ZIP_RUN_DEPENDS+= zip:${PORTSDIR}/archivers/zip \
unzip:${PORTSDIR}/archivers/unzip
-.endif
.include <bsd.port.mk>
diff --git a/archivers/xarchive/pkg-plist b/archivers/xarchive/pkg-plist
index 8a7fb3cddce2..13f5d447375f 100644
--- a/archivers/xarchive/pkg-plist
+++ b/archivers/xarchive/pkg-plist
@@ -7,6 +7,7 @@ lib/xarchive/wrappers/rar-wrap.sh
lib/xarchive/wrappers/rpm-wrap.sh
lib/xarchive/wrappers/tar-wrap.sh
lib/xarchive/wrappers/zip-wrap.sh
+man/man1/xarchive.1.gz
share/applications/xarchive.desktop
share/pixmaps/xarchive.xpm
@dirrm lib/xarchive/wrappers