summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoradamw <adamw@FreeBSD.org>2014-07-03 19:06:07 +0000
committeradamw <adamw@FreeBSD.org>2014-07-03 19:06:07 +0000
commit5c58cc66c5083e97c21a8e420f3306c57e8f2497 (patch)
treee3772ed0921ca0d8dc861c4b7c1dd440273bc41e
parent13309b2127b4e76e6026d002c81d2eb948f73fb5 (diff)
downloadFreeBSD-ports-5c58cc66c5083e97c21a8e420f3306c57e8f2497.zip
FreeBSD-ports-5c58cc66c5083e97c21a8e420f3306c57e8f2497.tar.gz
Reduce unnecessary bsd.port.options.mk inclusions by using OPTIONS helpers.
For liborange, reverse the logic, as I'm pretty sure the OPTIONS were being used to disable the selected options. Approved by: portmgr (blanket)
-rw-r--r--archivers/arc/Makefile8
-rw-r--r--archivers/file-roller/Makefile14
-rw-r--r--archivers/gzip/Makefile8
-rw-r--r--archivers/javatar/Makefile2
-rw-r--r--archivers/lha-ac/Makefile9
-rw-r--r--archivers/libarchive/Makefile34
-rw-r--r--archivers/libcomprex/Makefile6
-rw-r--r--archivers/liborange/Makefile41
-rw-r--r--archivers/libpar2/Makefile4
-rw-r--r--archivers/linux-f10-upx/Makefile2
-rw-r--r--archivers/lzo2/Makefile10
-rw-r--r--archivers/makeself/Makefile4
-rw-r--r--archivers/nomarch/Makefile2
-rw-r--r--archivers/p7zip/Makefile2
-rw-r--r--archivers/pear-Horde_Compress/Makefile7
-rw-r--r--archivers/pigz/Makefile4
-rw-r--r--archivers/py-lzma/Makefile4
-rw-r--r--archivers/rar/Makefile2
-rw-r--r--archivers/rpm4/Makefile2
-rw-r--r--archivers/ruby-zip/Makefile2
-rw-r--r--archivers/squeeze/Makefile9
-rw-r--r--archivers/squeeze/pkg-plist34
-rw-r--r--archivers/unadf/Makefile2
-rw-r--r--archivers/unarj/Makefile2
-rw-r--r--archivers/xarchive/Makefile12
-rw-r--r--archivers/xarchiver/Makefile16
-rw-r--r--archivers/xmill/Makefile2
27 files changed, 85 insertions, 159 deletions
diff --git a/archivers/arc/Makefile b/archivers/arc/Makefile
index 4b234d2..db95ea8 100644
--- a/archivers/arc/Makefile
+++ b/archivers/arc/Makefile
@@ -13,18 +13,16 @@ LICENSE= GPLv2
CONFLICTS= php5-arcanist-*
+OPTIONS_DEFINE= DOCS
+
PLIST_FILES= bin/arc bin/marc man/man1/arc.1.gz
PORTDOCS= Arc521.doc
-.include <bsd.port.pre.mk>
-
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/arc ${WRKSRC}/marc\
${STAGEDIR}/${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/arc.1 ${STAGEDIR}/${PREFIX}/man/man1
-.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}/${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/Arc521.doc ${STAGEDIR}/${DOCSDIR}
-.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/archivers/file-roller/Makefile b/archivers/file-roller/Makefile
index adaace7..b21a046 100644
--- a/archivers/file-roller/Makefile
+++ b/archivers/file-roller/Makefile
@@ -25,6 +25,7 @@ USE_GNOME= gnomeprefix intlhack gnomedocutils gtk20 gconf2
GNOME_DESKTOP_VERSION=2
USE_XORG= sm
GNU_CONFIGURE= yes
+OPTIONS_SUB= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ARGS= --disable-packagekit
@@ -37,15 +38,8 @@ NAUTILUS_DESC= Enable Nautilus extension
OPTIONS_DEFAULT=NAUTILUS
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MNAUTILUS}
-USE_GNOME+= nautilus2
-PLIST_SUB+= NAUTILUS=""
-.else
-PLIST_SUB+= NAUTILUS="@comment "
-CONFIGURE_ARGS+=--disable-nautilus-actions
-.endif
+NAUTILUS_USE= GNOME=nautilus2
+NAUTILUS_CONFIGURE_OFF= --disable-nautilus-actions
post-patch:
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
@@ -53,11 +47,9 @@ post-patch:
${WRKSRC}/src/fr-command-zip.c
post-install:
-.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
.endfor
-.endif
.include <bsd.port.mk>
diff --git a/archivers/gzip/Makefile b/archivers/gzip/Makefile
index d73e464..2b8c88b 100644
--- a/archivers/gzip/Makefile
+++ b/archivers/gzip/Makefile
@@ -21,18 +21,12 @@ OPTIONS_DEFINE= RSYNCABLE DOCS
OPTIONS_DEFAULT= RSYNCABLE
RSYNCABLE_DESC= Include --rsyncable patch
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MRSYNCABLE}
-EXTRA_PATCHES= ${FILESDIR}/extra-patch-gzip-rsyncable.diff
-.endif
+RSYNCABLE_EXTRA_PATCHES= ${FILESDIR}/extra-patch-gzip-rsyncable.diff
post-install:
-.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for file in ${DOC_FILES}
@${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
.endfor
-.endif
.include <bsd.port.mk>
diff --git a/archivers/javatar/Makefile b/archivers/javatar/Makefile
index 37906a6..3c097d3 100644
--- a/archivers/javatar/Makefile
+++ b/archivers/javatar/Makefile
@@ -25,8 +25,6 @@ PLIST_FILES= ${JARFILES:S,^,%%JAVAJARDIR%%/,}
OPTIONS_DEFINE= DOCS
-.include <bsd.port.options.mk>
-
do-install:
@${ECHO_MSG} -n ">> Install JAR file in ${STAGEDIR}${JAVAJARDIR}..."
@${INSTALL_DATA} ${WRKSRC}/jars/tar.jar ${STAGEDIR}${JAVAJARDIR}/
diff --git a/archivers/lha-ac/Makefile b/archivers/lha-ac/Makefile
index e405f71..e941540 100644
--- a/archivers/lha-ac/Makefile
+++ b/archivers/lha-ac/Makefile
@@ -22,14 +22,7 @@ MAN1_JA= lha-ac.1
PLIST_FILES+= ${__MANPAGES}
OPTIONS_DEFINE= NLS
-
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MNLS}
-CONFIGURE_ARGS+= --disable-multibyte-filename
-.else
-CONFIGURE_ARGS+= --enable-multibyte-filename=auto
-.endif
+NLS_CONFIGURE_ENABLE= multibyte-filename=auto
do-install:
-${MKDIR} ${STAGEDIR}${PREFIX}/man/ja/man1
diff --git a/archivers/libarchive/Makefile b/archivers/libarchive/Makefile
index 61e8eff..65bd291 100644
--- a/archivers/libarchive/Makefile
+++ b/archivers/libarchive/Makefile
@@ -78,31 +78,19 @@ CFLAGS+= "-I${LOCALBASE}/include"
CPPFLAGS+= "-I${LOCALBASE}/include"
LDFLAGS+= "-L${LOCALBASE}/lib"
-.include <bsd.port.options.mk>
+LIBXML2_USE= GNOME=libxml2
+LIBXML2_CONFIGURE_WITH= xml2
+LIBXML2_CFLAGS= -DHAVE_BSDXML_H=1
+LIBXML2_LDFLAGS= -lbsdxml
-.if ${PORT_OPTIONS:MLIBXML2}
-USE_GNOME+= libxml2
-CONFIGURE_ARGS+= --with-xml2
-.else
-CFLAGS+= -DHAVE_BSDXML_H=1
-LDFLAGS+= -lbsdxml
-CONFIGURE_ARGS+= --without-xml2
-.endif
+LZO_LIB_DEPENDS= liblzo2.so:${PORTSDIR}/archivers/lzo2
+LZO_CONFIGURE_WITH= lzo2
-.if ${PORT_OPTIONS:MLZO}
-LIB_DEPENDS= liblzo2.so:${PORTSDIR}/archivers/lzo2
-CONFIGURE_ARGS+= --with-lzo2
-.else
-CONFIGURE_ARGS+= --without-lzo2
-.endif
-
-.if ${PORT_OPTIONS:MNETTLE}
-LIB_DEPENDS+= nettle:${PORTSDIR}/security/nettle
-CONFIGURE_ARGS+= --without-openssl --with-nettle
-.else
-USE_OPENSSL= yes
-CONFIGURE_ARGS+= --with-openssl --without-nettle
-.endif
+NETTLE_LIB_DEPENDS= nettle:${PORTSDIR}/security/nettle
+NETTLE_CONFIGURE_WITH= nettle
+NETTLE_CONFIGURE_ON= --without-openssl
+NETTLE_USE_OFF= OPENSSL=yes
+NETTLE_CONFIGURE_OFF= --with-openssl
check:
(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} check)
diff --git a/archivers/libcomprex/Makefile b/archivers/libcomprex/Makefile
index 8ac3131..8fac047 100644
--- a/archivers/libcomprex/Makefile
+++ b/archivers/libcomprex/Makefile
@@ -20,9 +20,9 @@ USES= libtool:keepla pathfix pkgconfig
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
-NLS_USES+= gettext
-NLS_CPPFLAGS+= -I${LOCALBASE}/include
-NLS_LDFLAGS+= -L${LOCALBASE}/lib -lintl
+NLS_USES= gettext
+NLS_CPPFLAGS= -I${LOCALBASE}/include
+NLS_LDFLAGS= -L${LOCALBASE}/lib -lintl
NLS_CONFIGURE_ARGS= nls
.include <bsd.port.mk>
diff --git a/archivers/liborange/Makefile b/archivers/liborange/Makefile
index 7a309e3..98ae3dc 100644
--- a/archivers/liborange/Makefile
+++ b/archivers/liborange/Makefile
@@ -28,43 +28,34 @@ CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
USE_LDCONFIG= yes
+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_LIB_DEPENDS= libgsf-1.so.114:${PORTSDIR}/devel/libgsf
+MSI_CONFIGURE_ENABLE= msi libgsf
+
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MLIBSYNCE}
-CONFIGURE_ARGS+= --without-libsynce
REQUIRES+= libsynce
-.else
-LIB_DEPENDS+= libsynce.so:${PORTSDIR}/palm/synce-libsynce
-CONFIGURE_ARGS+= --with-libsynce
.endif
.if ${PORT_OPTIONS:MLIBDYNAMITE}
-CONFIGURE_ARGS+= --without-libdynamite
REQUIRES+= libdynamite
-.else
-LIB_DEPENDS+= libdynamite.so:${PORTSDIR}/archivers/libdynamite
-CONFIGURE_ARGS+= --with-libdynamite
.endif
.if ${PORT_OPTIONS:MLIBUNSHIELD}
-CONFIGURE_ARGS+= --without-libunshield
REQUIRES+= libunshield
-.else
-LIB_DEPENDS+= libunshield.so:${PORTSDIR}/archivers/unshield
-CONFIGURE_ARGS+= --with-libunshield
-.endif
-
-.if ${PORT_OPTIONS:MINNO}
-CONFIGURE_ARGS+= --enable-inno
-.endif
-
-.if ${PORT_OPTIONS:MVISE}
-CONFIGURE_ARGS+= --enable-vise
-.endif
-
-.if ${PORT_OPTIONS:MMSI}
-CONFIGURE_ARGS+= --enable-msi --with-libgsf
-LIB_DEPENDS+= libgsf-1.so.114:${PORTSDIR}/devel/libgsf
.endif
post-patch:
diff --git a/archivers/libpar2/Makefile b/archivers/libpar2/Makefile
index 042f869..5ac80c2 100644
--- a/archivers/libpar2/Makefile
+++ b/archivers/libpar2/Makefile
@@ -24,17 +24,13 @@ USES= pkgconfig libtool
OPTIONS_DEFINE= DOCS
-.include <bsd.port.options.mk>
-
post-patch:
@${REINPLACE_CMD} -e "s/-lstdc++//g" \
${WRKSRC}/Makefile.in \
${WRKSRC}/configure
post-install:
-.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
-.endif
.include <bsd.port.mk>
diff --git a/archivers/linux-f10-upx/Makefile b/archivers/linux-f10-upx/Makefile
index 7afc445..83eb22a 100644
--- a/archivers/linux-f10-upx/Makefile
+++ b/archivers/linux-f10-upx/Makefile
@@ -25,4 +25,6 @@ PORTDOCS= BUGS COPYING LICENSE NEWS PROJECTS README README.1ST \
THANKS TODO elf-to-mem.txt filter.txt loader.txt selinux.txt
DESCR= ${.CURDIR}/../${PORTNAME}/pkg-descr
+OPTIONS_DEFINE= DOCS
+
.include <bsd.port.mk>
diff --git a/archivers/lzo2/Makefile b/archivers/lzo2/Makefile
index c0d94bf..d6acc35 100644
--- a/archivers/lzo2/Makefile
+++ b/archivers/lzo2/Makefile
@@ -20,11 +20,7 @@ USE_LDCONFIG= yes
OPTIONS_DEFINE= DOCS EXAMPLES
-.include <bsd.port.options.mk>
-
-.if !${PORT_OPTIONS:MDOCS}
-INSTALL_TARGET= install-exec install-pkgincludeHEADERS
-.endif
+DOCS_INSTALL_TARGET_OFF= install-exec install-pkgincludeHEADERS
post-build:
.if !defined(WITHOUT_CHECKS)
@@ -35,17 +31,13 @@ post-build:
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/liblzo2.so.2
-.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${REINPLACE_CMD} -e 's,doc/,,' NEWS README
.for i in AUTHORS BUGS COPYING NEWS README THANKS
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}/
.endfor
${INSTALL_DATA} ${WRKSRC}/doc/* ${STAGEDIR}${DOCSDIR}/
-.endif
-.if ${PORT_OPTIONS:MEXAMPLES}
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/examples/[a-z]*.[ch] ${STAGEDIR}${EXAMPLESDIR}/
-.endif
.include <bsd.port.mk>
diff --git a/archivers/makeself/Makefile b/archivers/makeself/Makefile
index 09327da..6984f60 100644
--- a/archivers/makeself/Makefile
+++ b/archivers/makeself/Makefile
@@ -26,8 +26,6 @@ PORTDOCS= README
OPTIONS_DEFINE= DOCS
-.include <bsd.port.options.mk>
-
post-patch:
@${REINPLACE_CMD} -e \
's|#!/bin/sh|#!${LOCALBASE}/bin/bash|g' ${WRKSRC}/makeself.sh
@@ -38,9 +36,7 @@ do-install:
@${LN} -sf ${i}.sh ${STAGEDIR}${PREFIX}/bin/${i}
.endfor
-.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
-.endif
.include <bsd.port.mk>
diff --git a/archivers/nomarch/Makefile b/archivers/nomarch/Makefile
index ea24da3..126dc35 100644
--- a/archivers/nomarch/Makefile
+++ b/archivers/nomarch/Makefile
@@ -14,6 +14,8 @@ PLIST_FILES= bin/nomarch man/man1/nomarch.1.gz
PORTDOCS= COPYING ChangeLog NEWS README TODO
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}"
+OPTIONS_DEFINE= DOCS
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/nomarch ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/nomarch.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
diff --git a/archivers/p7zip/Makefile b/archivers/p7zip/Makefile
index 7be0c90..69e8a1b 100644
--- a/archivers/p7zip/Makefile
+++ b/archivers/p7zip/Makefile
@@ -24,8 +24,6 @@ CFLAGS_ia64= -fPIC
OPTIONS_DEFINE= DOCS
-.include <bsd.port.options.mk>
-
post-patch:
${SED} -e 's!g\+\+!${CXX}!' \
-e 's!gcc!${CC}!' \
diff --git a/archivers/pear-Horde_Compress/Makefile b/archivers/pear-Horde_Compress/Makefile
index 92108ac..9215b90 100644
--- a/archivers/pear-Horde_Compress/Makefile
+++ b/archivers/pear-Horde_Compress/Makefile
@@ -17,11 +17,8 @@ USE_HORDE_RUN= Horde_Exception \
Horde_Util \
Horde_Stream_Filter
-.include <bsd.port.pre.mk>
-
-.if ${PORT_OPTIONS:MZLIB}
-USE_PHP+= zlib
-.endif
+ZLIP_USE= PHP=zlib
+.include <bsd.port.pre.mk>
.include "${PORTSDIR}/devel/pear-channel-horde/bsd.horde.mk"
.include <bsd.port.post.mk>
diff --git a/archivers/pigz/Makefile b/archivers/pigz/Makefile
index 3316d48..3d47010 100644
--- a/archivers/pigz/Makefile
+++ b/archivers/pigz/Makefile
@@ -13,9 +13,7 @@ COMMENT= Parallel GZIP
USES= gmake
PLIST_FILES= bin/pigz bin/pigzn bin/pigzt bin/unpigz
-.if !defined(NO_INSTALL_MANPAGES)
PLIST_FILES+= man/man1/pigz.1.gz
-.endif
post-patch:
${REINPLACE_CMD} -e 's/ -lz/ -lm -lz/g' ${WRKSRC}/Makefile
@@ -24,8 +22,6 @@ do-install:
.for FILE in pigz pigzn pigzt unpigz
${INSTALL_PROGRAM} ${WRKSRC}/${FILE} ${STAGEDIR}${PREFIX}/bin
.endfor
-.if !defined(NO_INSTALL_MANPAGES)
${INSTALL_MAN} ${WRKSRC}/pigz.1 ${STAGEDIR}${MAN1PREFIX}/man/man1/
-.endif
.include <bsd.port.mk>
diff --git a/archivers/py-lzma/Makefile b/archivers/py-lzma/Makefile
index d4ce797..1db404c 100644
--- a/archivers/py-lzma/Makefile
+++ b/archivers/py-lzma/Makefile
@@ -27,12 +27,8 @@ PORTDOCS= usage.txt
OPTIONS_DEFINE= DOCS
-.include <bsd.port.options.mk>
-
post-install:
-.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/doc/,} ${STAGEDIR}${DOCSDIR}
-.endif
.include <bsd.port.mk>
diff --git a/archivers/rar/Makefile b/archivers/rar/Makefile
index 57b5645..52b20ab 100644
--- a/archivers/rar/Makefile
+++ b/archivers/rar/Makefile
@@ -23,6 +23,8 @@ PLIST_FILES= bin/rar lib/default.sfx etc/rarfiles.lst man/cat1/rar.1.gz
PORTDOCS= technote.txt license.txt whatsnew.txt order.htm \
readme.txt
+OPTIONS_DEFINE= DOCS
+
.include <bsd.port.pre.mk>
.if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64"
diff --git a/archivers/rpm4/Makefile b/archivers/rpm4/Makefile
index 64858bc4..23e75a0 100644
--- a/archivers/rpm4/Makefile
+++ b/archivers/rpm4/Makefile
@@ -16,7 +16,7 @@ LIB_DEPENDS= libpopt.so:${PORTSDIR}/devel/popt \
libnss3.so:${PORTSDIR}/security/nss
BUILD_DEPENDS= ${LOCALBASE}/bin/gsed:${PORTSDIR}/textproc/gsed
-OPTIONS_DEFINE= PYTHON NLS
+OPTIONS_DEFINE= PYTHON NLS DOCS
OPTIONS_DEFAULT=PYTHON NLS
OPTIONS_SUB= yes
PYTHON_CONFIGURE_ENABLE=python
diff --git a/archivers/ruby-zip/Makefile b/archivers/ruby-zip/Makefile
index f581d46..2c0e4df 100644
--- a/archivers/ruby-zip/Makefile
+++ b/archivers/ruby-zip/Makefile
@@ -22,6 +22,8 @@ NO_BUILD= yes
DOCS= ChangeLog NEWS README TODO
EXAMPLES= samples/*
+OPTIONS_DEFINE= DOCS EXAMPLES
+
do-install:
${MKDIR} ${STAGEDIR}${RUBY_SITELIBDIR}/zip
${INSTALL_DATA} ${WRKSRC}/lib/zip/*.rb ${STAGEDIR}${RUBY_SITELIBDIR}/zip
diff --git a/archivers/squeeze/Makefile b/archivers/squeeze/Makefile
index b0232c4..58303e5 100644
--- a/archivers/squeeze/Makefile
+++ b/archivers/squeeze/Makefile
@@ -25,16 +25,11 @@ USE_GNOME= gtk20 glib20 intltool intlhack
USE_LDCONFIG= yes
MAKE_JOB_SAFE= yes
-OPTIONS_DEFINE= DOCS
+OPTIONS_DEFINE= DOCS
+OPTIONS_SUB= yes
.include <bsd.port.options.mk>
-.if ${PORT_OPTIONS:MDOCS}
-PLIST_SUB= GTKDOC=""
-.else
-PLIST_SUB= GTKDOC="@comment "
-.endif
-
post-patch:
# Needed to remove gtk-doc installation
.if empty(PORT_OPTIONS:MDOCS)
diff --git a/archivers/squeeze/pkg-plist b/archivers/squeeze/pkg-plist
index 035b3a2..0e64a20 100644
--- a/archivers/squeeze/pkg-plist
+++ b/archivers/squeeze/pkg-plist
@@ -30,28 +30,28 @@ share/locale/tr/LC_MESSAGES/squeeze.mo
share/locale/uk/LC_MESSAGES/squeeze.mo
share/pixmaps/squeeze/archive-add.png
share/pixmaps/squeeze/archive-extract.png
-%%GTKDOC%%share/gtk-doc/html/libsqueeze/LSQArchive.html
-%%GTKDOC%%share/gtk-doc/html/libsqueeze/LSQArchiveCommand.html
-%%GTKDOC%%share/gtk-doc/html/libsqueeze/archiving.html
-%%GTKDOC%%share/gtk-doc/html/libsqueeze/home.png
-%%GTKDOC%%share/gtk-doc/html/libsqueeze/index.html
-%%GTKDOC%%share/gtk-doc/html/libsqueeze/index.sgml
-%%GTKDOC%%share/gtk-doc/html/libsqueeze/ix01.html
-%%GTKDOC%%share/gtk-doc/html/libsqueeze/left.png
-%%GTKDOC%%share/gtk-doc/html/libsqueeze/libsqueeze-LSQArchiveSupport.html
-%%GTKDOC%%share/gtk-doc/html/libsqueeze/libsqueeze-libsqueeze.html
-%%GTKDOC%%share/gtk-doc/html/libsqueeze/libsqueeze.devhelp
-%%GTKDOC%%share/gtk-doc/html/libsqueeze/libsqueeze.devhelp2
-%%GTKDOC%%share/gtk-doc/html/libsqueeze/libsqueeze.html
-%%GTKDOC%%share/gtk-doc/html/libsqueeze/right.png
-%%GTKDOC%%share/gtk-doc/html/libsqueeze/style.css
-%%GTKDOC%%share/gtk-doc/html/libsqueeze/up.png
+%%PORTDOCS%%share/gtk-doc/html/libsqueeze/LSQArchive.html
+%%PORTDOCS%%share/gtk-doc/html/libsqueeze/LSQArchiveCommand.html
+%%PORTDOCS%%share/gtk-doc/html/libsqueeze/archiving.html
+%%PORTDOCS%%share/gtk-doc/html/libsqueeze/home.png
+%%PORTDOCS%%share/gtk-doc/html/libsqueeze/index.html
+%%PORTDOCS%%share/gtk-doc/html/libsqueeze/index.sgml
+%%PORTDOCS%%share/gtk-doc/html/libsqueeze/ix01.html
+%%PORTDOCS%%share/gtk-doc/html/libsqueeze/left.png
+%%PORTDOCS%%share/gtk-doc/html/libsqueeze/libsqueeze-LSQArchiveSupport.html
+%%PORTDOCS%%share/gtk-doc/html/libsqueeze/libsqueeze-libsqueeze.html
+%%PORTDOCS%%share/gtk-doc/html/libsqueeze/libsqueeze.devhelp
+%%PORTDOCS%%share/gtk-doc/html/libsqueeze/libsqueeze.devhelp2
+%%PORTDOCS%%share/gtk-doc/html/libsqueeze/libsqueeze.html
+%%PORTDOCS%%share/gtk-doc/html/libsqueeze/right.png
+%%PORTDOCS%%share/gtk-doc/html/libsqueeze/style.css
+%%PORTDOCS%%share/gtk-doc/html/libsqueeze/up.png
share/icons/hicolor/16x16/apps/squeeze.png
share/icons/hicolor/48x48/apps/squeeze.png
share/icons/hicolor/scalable/apps/squeeze.svg
share/applications/squeeze.desktop
@dirrmtry share/pixmaps/squeeze
-%%GTKDOC%%@dirrm share/gtk-doc/html/libsqueeze
+%%PORTDOCS%%@dirrm share/gtk-doc/html/libsqueeze
@dirrmtry libexec/thunar-archive-plugin
@dirrmtry include/libsqueeze-0.2/libsqueeze
@dirrmtry include/libsqueeze-0.2
diff --git a/archivers/unadf/Makefile b/archivers/unadf/Makefile
index 065f232..c4cb9ac 100644
--- a/archivers/unadf/Makefile
+++ b/archivers/unadf/Makefile
@@ -43,6 +43,8 @@ FAQSIMGS= FAQ/image/adf_dir.gif FAQ/image/adf_file.gif
PORTDOCS= *
+OPTIONS_DEFINE= DOCS
+
# XXX: work around an issue with automake-1.13 erroring out on a
# non-existent m4 directory before libtoolize creates it
pre-configure::
diff --git a/archivers/unarj/Makefile b/archivers/unarj/Makefile
index ef6ac25..3be736b 100644
--- a/archivers/unarj/Makefile
+++ b/archivers/unarj/Makefile
@@ -15,6 +15,8 @@ COMMENT= Allows files to be extracted from ARJ archives
PLIST_FILES= bin/unarj
PORTDOCS= unarj.txt technote.txt
+OPTIONS_DEFINE= DOCS
+
post-patch:
${CP} ${FILESDIR}/sanitize.c ${WRKSRC}
diff --git a/archivers/xarchive/Makefile b/archivers/xarchive/Makefile
index aeb977c..0ae5d73 100644
--- a/archivers/xarchive/Makefile
+++ b/archivers/xarchive/Makefile
@@ -27,14 +27,14 @@ RPM_DESC= RPM archive support
ZIP_DESC= ZIP archive support
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 \
+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
-RPM_RUN_DEPENDS+= rpm2cpio:${PORTSDIR}/archivers/rpm2cpio \
+RPM_RUN_DEPENDS= rpm2cpio:${PORTSDIR}/archivers/rpm2cpio \
rpm:${PORTSDIR}/archivers/rpm4
-ZIP_RUN_DEPENDS+= zip:${PORTSDIR}/archivers/zip \
+ZIP_RUN_DEPENDS= zip:${PORTSDIR}/archivers/zip \
unzip:${PORTSDIR}/archivers/unzip
.include <bsd.port.mk>
diff --git a/archivers/xarchiver/Makefile b/archivers/xarchiver/Makefile
index c637202..bb0a165 100644
--- a/archivers/xarchiver/Makefile
+++ b/archivers/xarchiver/Makefile
@@ -22,20 +22,16 @@ GNU_CONFIGURE= yes
INSTALLS_ICONS= yes
OPTIONS_DEFINE= DOCS NLS
+OPTIONS_SUB= yes
-.include <bsd.port.options.mk>
+NLS_USES= gettext
+NLS_CPPFLAGS+= -I${LOCALBASE}/include
+NLS_LDFLAGS+= -L${LOCALBASE}/lib
-.if !empty(PORT_OPTIONS:MNLS)
-USES+= gettext
-CPPFLAGS+= -I${LOCALBASE}/include
-LDFLAGS+= -L${LOCALBASE}/lib
-PLIST_SUB+= NLS=""
-.else
-PLIST_SUB+= NLS="@comment "
-.endif
+.include <bsd.port.options.mk>
post-patch:
-.if ! ${PORT_OPTIONS:MDOCS}
+.if empty(PORT_OPTIONS:MDOCS)
@${REINPLACE_CMD} -e 's|doc||g' ${WRKSRC}/Makefile.in
.endif
.if empty(PORT_OPTIONS:MNLS)
diff --git a/archivers/xmill/Makefile b/archivers/xmill/Makefile
index 0d3b058..6f0bed2 100644
--- a/archivers/xmill/Makefile
+++ b/archivers/xmill/Makefile
@@ -23,8 +23,6 @@ PORTEXAMPLES= *
OPTIONS_DEFINE= DOCS EXAMPLES
-.include <bsd.port.options.mk>
-
post-patch:
# Allow to build with modern GCC
@${REINPLACE_CMD} -e 's,friend,& class,' ${WRKSRC}/XMill/*.?pp \
OpenPOWER on IntegriCloud