aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--biology/garlic/Makefile40
-rw-r--r--databases/cyrus-imspd/Makefile4
-rw-r--r--databases/db4/Makefile8
-rw-r--r--databases/db44/Makefile12
-rw-r--r--databases/db4o-mono/Makefile4
-rw-r--r--databases/firebird21-server/Makefile8
-rw-r--r--databases/firebird25-server/Makefile8
-rw-r--r--databases/frontbase/Makefile4
-rw-r--r--databases/gnats4/Makefile4
-rw-r--r--databases/gnatsweb4/Makefile34
-rw-r--r--databases/lsdb/Makefile4
-rw-r--r--databases/msql3/Makefile4
-rw-r--r--databases/pecl-drizzle/Makefile17
-rw-r--r--databases/pg_filedump/Makefile11
-rw-r--r--databases/pgaccess/Makefile4
-rw-r--r--databases/ruby-msql/Makefile4
-rw-r--r--databases/ruby-oci8/Makefile5
-rw-r--r--databases/slony1/files/pkg-message.in4
-rw-r--r--databases/yasql/Makefile4
19 files changed, 91 insertions, 92 deletions
diff --git a/biology/garlic/Makefile b/biology/garlic/Makefile
index c59284dcd0fd..3579c61f84c0 100644
--- a/biology/garlic/Makefile
+++ b/biology/garlic/Makefile
@@ -18,38 +18,36 @@ USES= gmake
USE_XORG= x11
ALL_TARGET= # empty
-.if defined(WITH_OPTIMIZED_FLAGS)
+OPTIONS_DEFINE= DOCS EXAMPLES OPTIMIZED_CFLAGS
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS}
CFLAGS+= -O3 -ffast-math -finline-functions -fomit-frame-pointer -funroll-loops -fexpensive-optimizations -malign-double
.if (${ARCH} == "i386")
CFLAGS+= -mfancy-math-387 -mpreferred-stack-boundary=3
.endif # i386
.endif
-NO_STAGE= yes
post-patch:
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g ;\
s|%%CC%%|${CC}|g ; \
s|%%CFLAGS%%|${CFLAGS}|g' ${WRKSRC}/Makefile
-.if !defined(WITH_OPTIMIZED_FLAGS)
- @${ECHO} "You can optimize by setting WITH_OPTIMIZED_FLAGS=yes."
-.endif
do-install:
- ${MKDIR} ${DATADIR}
- ${INSTALL_PROGRAM} ${WRKSRC}/garlic ${PREFIX}/bin
- ${INSTALL_DATA} ${WRKSRC}/.garlicrc ${DATADIR}
- ${INSTALL_DATA} ${WRKSRC}/residues.pdb ${DATADIR}
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${EXAMPLESDIR}
- @${INSTALL_DATA} ${WRKSRC}/*.pdb ${EXAMPLESDIR}
- @${INSTALL_DATA} ${WRKSRC}/*.script ${EXAMPLESDIR}
- @${MKDIR} ${DOCSDIR}
- @${MKDIR} ${WRKDIR}/doc
- @(cd ${WRKDIR}/doc ; ${TAR} xfz ${DISTDIR}/${DISTNAME}-doc${EXTRACT_SUFX} )
- @${TAR} -C ${WRKDIR}/doc/${DISTNAME} -cf - . | \
- ${TAR} -C ${DOCSDIR} -xf -
- @${FIND} ${DOCSDIR} | ${XARGS} ${CHOWN} ${SHAREOWN}:${SHAREGRP}
- @${FIND} ${DOCSDIR} -type f | ${XARGS} ${CHMOD} ${SHAREMODE}
-.endif
+ ${MKDIR} ${STAGEDIR}${DATADIR}
+ ${INSTALL_PROGRAM} ${WRKSRC}/garlic ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_DATA} ${WRKSRC}/.garlicrc ${STAGEDIR}${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/residues.pdb ${STAGEDIR}${DATADIR}
+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/*.pdb ${STAGEDIR}${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/*.script ${STAGEDIR}${EXAMPLESDIR}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ @${MKDIR} ${STAGEDIR}${WRKDIR}/doc
+ (cd ${WRKDIR}/doc ; ${TAR} xfz ${DISTDIR}/${DISTNAME}-doc${EXTRACT_SUFX} )
+ ${TAR} -C ${WRKDIR}/doc/${DISTNAME} -cf - . | \
+ ${TAR} -C ${STAGEDIR}${DOCSDIR} -xf -
+ ${FIND} ${STAGEDIR}${DOCSDIR} | ${XARGS} ${CHOWN} ${SHAREOWN}:${SHAREGRP}
+ ${FIND} ${STAGEDIR}${DOCSDIR} -type f | ${XARGS} ${CHMOD} ${SHAREMODE}
.include <bsd.port.mk>
diff --git a/databases/cyrus-imspd/Makefile b/databases/cyrus-imspd/Makefile
index 7260652117f2..a22e2197e767 100644
--- a/databases/cyrus-imspd/Makefile
+++ b/databases/cyrus-imspd/Makefile
@@ -24,6 +24,8 @@ CONFIGURE_ARGS= --prefix=${PREFIX} \
USE_RC_SUBR= imspd
DOCSDIR= ${PREFIX}/share/doc/imspd
+OPTIONS_DEFINE= DOCS
+
NO_STAGE= yes
post-patch:
${REINPLACE_CMD} -e "s|<sasl.h>|<sasl2/sasl.h>|" \
@@ -35,7 +37,6 @@ post-install:
${MKDIR} /var/imsp
${INSTALL_DATA} ${WRKSRC}/imsp/options.sample \
/var/imsp/options.dist
-.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/notes/Setup-instructions \
${WRKSRC}/notes/option.registry \
@@ -43,7 +44,6 @@ post-install:
${WRKSRC}/notes/imsp.implementation \
${WRKSRC}/notes/imsp.implementation.updates \
${DOCSDIR}
-.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
diff --git a/databases/db4/Makefile b/databases/db4/Makefile
index 07f43a2a9e77..b3383b03fc63 100644
--- a/databases/db4/Makefile
+++ b/databases/db4/Makefile
@@ -24,7 +24,11 @@ CONFIGURE_ARGS= --enable-compat185 --enable-dump185 \
--includedir=${PREFIX}/include/db4
USE_LDCONFIG= yes
-.if !defined(NOPORTDOCS)
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MDOCS}
INSTALL_TARGET= install install_docs
PORTDOCS= *
.endif
@@ -32,7 +36,7 @@ PORTDOCS= *
# the db install_docs target installs an empty directory, kill it
NO_STAGE= yes
# (it's not packaged and it's not needed):
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
post-install:
@${RMDIR} ${PREFIX}/share/doc/db4/ref/splash
.endif
diff --git a/databases/db44/Makefile b/databases/db44/Makefile
index a9d4585f07d1..ef0e049fa4e5 100644
--- a/databases/db44/Makefile
+++ b/databases/db44/Makefile
@@ -29,12 +29,16 @@ CONFIGURE_ARGS= --enable-compat185 --enable-dump185 \
--libdir=${PREFIX}/lib/${PORTNAME} \
--bindir=${PREFIX}/bin/${PORTNAME}
INSTALL_TARGET= install_include install_lib install_utilities
-.if !defined(NOPORTDOCS)
-INSTALL_TARGET+= install_docs docdir=${DOCSDIR}
+
+OPTIONS_DEFINE= DOCS
+
+DOCS_INSTALL_TARGET= ${INSTALL_TARGET} install_docs docdir=${DOCSDIR}
PORTDOCS= *
-.endif
NO_STAGE= yes
+
+.include <bsd.port.options.mk>
+
pre-patch:
@${REINPLACE_CMD} -Ee 's|-l?pthread|${PTHREAD_LIBS}|g' ${WRKSRC}/${CONFIGURE_SCRIPT}
@@ -49,7 +53,7 @@ post-install:
${LN} -s -f ${PORTNAME}/${i}-${BDBVER}.so.0 ${PREFIX}/lib
${LN} -s -f ${i}-${BDBVER}.so.0 ${PREFIX}/lib/${i}-${BDBVER}.so
.endfor
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${RMDIR} ${DOCSDIR}/ref/splash 2>/dev/null || :
.endif
cd ${PREFIX}/bin/${PORTNAME} ; \
diff --git a/databases/db4o-mono/Makefile b/databases/db4o-mono/Makefile
index 38f35d6e2241..f88141e71ce9 100644
--- a/databases/db4o-mono/Makefile
+++ b/databases/db4o-mono/Makefile
@@ -20,18 +20,18 @@ REALVERSION= 5.5
NO_BUILD= yes
WRKSRC= ${WRKDIR}/${PORTNAME}-${REALVERSION}
+OPTIONS_DEFINE= DOCS
+
NO_STAGE= yes
do-install:
@(cd ${WRKSRC}/dll ; ${SETENV} MONO_SHARED_DIR=${WRKDIR} ${LOCALBASE}/bin/gacutil /root ${PREFIX}/lib /gacdir ${PREFIX}/lib /package 1.0 /i db4o.dll)
post-install:
-.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@cd ${WRKSRC}/doc/; ${FIND} api \
| ${CPIO} -pdmv -R ${DOCOWN}:${DOCGRP} ${DOCSDIR}
@cd ${WRKSRC}/doc/; ${FIND} tutorial \
| ${CPIO} -pdmv -R ${DOCOWN}:${DOCGRP} ${DOCSDIR}
@${CHMOD} -R ugo-w,ugo+rX ${DOCSDIR}
-.endif
.include <bsd.port.mk>
diff --git a/databases/firebird21-server/Makefile b/databases/firebird21-server/Makefile
index 9ccb024c81c0..a5b820ddc7cf 100644
--- a/databases/firebird21-server/Makefile
+++ b/databases/firebird21-server/Makefile
@@ -86,7 +86,9 @@ LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ENV+= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
PTHREAD_LIBS="${PTHREAD_LIBS}"
-.if !defined(NOPORTDOCS)
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MDOCS}
PORTDOCS= *
FB_DOCS_FILES= WhatsNew README.* Firebird* ReleaseNotes.pdf ambiguity.txt \
ods11-index-structure.html
@@ -96,6 +98,8 @@ FB_DOCS_DIRS= sql.extensions license upgrade
MAKE_ENV+= FIREBIRD_TMP="${WRKDIR}" FIREBIRD_LOCK="${WRKDIR}"
+OPTIONS_DEFINE= DOCS
+
NO_STAGE= yes
post-extract:
@${RM} -rf ${WRKSRC}/extern/icu
@@ -216,7 +220,7 @@ do-install:
@${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/gen/firebird/*.msg ${DATADIR}
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${ECHO_MSG} "===> Installing documentation for ${PKGNAME}"
@${MKDIR} ${FB_DOCS_DIRS:S!^!${DOCSDIR}/!}
@${INSTALL_DATA} ${FB_DOCS_FILES:S!^!${WRKSRC}/doc/!} ${DOCSDIR}
diff --git a/databases/firebird25-server/Makefile b/databases/firebird25-server/Makefile
index 64ca6e045b75..c92b39890ccc 100644
--- a/databases/firebird25-server/Makefile
+++ b/databases/firebird25-server/Makefile
@@ -95,7 +95,9 @@ ALL_TARGET= firebird_basic libfbembed libfbclient embed_isql embed_gpre \
USE_LDCONFIG= yes
CLIENT_BIN= gpre isql-fb qli
-.if !defined(NOPORTDOCS)
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MDOCS}
PORTDOCS= *
FB_DOCS_FILES= WhatsNew README.* Firebird* ReleaseNotes.pdf ambiguity.txt \
ods11-index-structure.html
@@ -105,6 +107,8 @@ FB_DOCS_DIRS= sql.extensions license upgrade
MAKE_ENV+= FIREBIRD_TMP="${WRKDIR}" FIREBIRD_LOCK="${WRKDIR}"
+OPTIONS_DEFINE= DOCS
+
NO_STAGE= yes
post-extract:
@${RM} -rf ${WRKSRC}/extern/icu
@@ -215,7 +219,7 @@ do-install:
@${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/gen/firebird/*.msg ${DATADIR}
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${ECHO_MSG} "===> Installing documentation for ${PKGNAME}"
@${MKDIR} ${FB_DOCS_DIRS:S!^!${DOCSDIR}/!}
@${INSTALL_DATA} ${FB_DOCS_FILES:S!^!${WRKSRC}/doc/!} ${DOCSDIR}
diff --git a/databases/frontbase/Makefile b/databases/frontbase/Makefile
index 3f1f1b696d22..218c672c9fa9 100644
--- a/databases/frontbase/Makefile
+++ b/databases/frontbase/Makefile
@@ -24,6 +24,8 @@ SUB_FILES+= pkg-message
ONLY_FOR_ARCHS= i386
+OPTIONS_DEFINE= DOCS
+
NO_STAGE= yes
# Binary is built for 5.X :
LIB_DEPENDS+= libc.so.5:${PORTSDIR}/misc/compat5x
@@ -47,10 +49,8 @@ do-install:
.endfor
@(cd ${WRKSRC}/FrontBase/bin && ${COPYTREE_BIN} \* \
${PREFIX}/FrontBase/bin/)
-.if !defined(NOPORTDOCS)
@(cd ${WRKSRC}/FrontBase/Documentation && \
${COPYTREE_SHARE} \* ${DOCSDIR})
-.endif
@(cd ${WRKSRC}/FrontBase/include && ${CP} -R * \
${PREFIX}/include)
@(cd ${WRKSRC}/FrontBase/lib && ${CP} -R * \
diff --git a/databases/gnats4/Makefile b/databases/gnats4/Makefile
index e9ecb5041c5d..bf1ec9f33d76 100644
--- a/databases/gnats4/Makefile
+++ b/databases/gnats4/Makefile
@@ -77,6 +77,8 @@ PLIST_SUB+= SERVER=""
CONFLICTS+= ${PKGNAMEPREFIX}${PORTNAME}-client-4.*
.endif
+OPTIONS_DEFINE= DOCS
+
NO_STAGE= yes
pre-everything::
.if !defined(PACKAGE_BUILDING) && !defined(WANT_FREEFALL_CFG)
@@ -114,12 +116,10 @@ post-install:
|| ${CP} ${PREFIX}/etc/gnats/$${conf}.default ${PREFIX}/etc/gnats/$${conf}; \
done
.endif
-.ifndef NOPORTDOCS
@${MKDIR} ${DOCSDIR}
@for doc in ${DOCFILES}; do \
${INSTALL_DATA} ${WRKSRC}/$${doc} ${DOCSDIR}; \
done
-.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
diff --git a/databases/gnatsweb4/Makefile b/databases/gnatsweb4/Makefile
index cff53c1b5c21..f3d3a064025a 100644
--- a/databases/gnatsweb4/Makefile
+++ b/databases/gnatsweb4/Makefile
@@ -27,27 +27,23 @@ PORTDOCS= CUSTOMIZE CUSTOMIZE.cb CUSTOMIZE.vars \
PORTEXAMPLESS= gnatsweb-site-example.pl
-NO_STAGE= yes
+OPTIONS_DEFINE= DOCS EXAMPLES
+
do-install:
- @${MKDIR} ${ETCDIR}/
- @${INSTALL_DATA} ${WRKSRC}/gnatsweb-site.pl ${ETCDIR}/gnatsweb-site.pl.default
- @[ -f ${ETCDIR}/gnatsweb-site.pl ] || \
- ${INSTALL_DATA} ${WRKSRC}/gnatsweb-site.pl ${ETCDIR}/
- @${MKDIR} ${CGI_DIR}/
- @${INSTALL_SCRIPT} ${WRKSRC}/gnatsweb.pl ${CGI_DIR}/
- @${LN} -s ${ETCDIR}/gnatsweb-site.pl ${CGI_DIR}/
- @${INSTALL_DATA} ${WRKSRC}/gnatsweb.html ${CGI_DIR}/
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}/
- @for doc in ${PORTDOCS}; do \
- ${INSTALL_DATA} ${WRKSRC}/$${doc} ${DOCSDIR}/; \
+ @${MKDIR} ${STAGEDIR}${ETCDIR}
+ ${INSTALL_DATA} ${WRKSRC}/gnatsweb-site.pl ${STAGEDIR}${ETCDIR}/gnatsweb-site.pl.default
+ ${INSTALL_DATA} ${WRKSRC}/gnatsweb-site.pl ${STAGEDIR}${ETCDIR}/gnatsweb-site.pl.sample
+ @${MKDIR} ${STAGEDIR}${CGI_DIR}
+ ${INSTALL_SCRIPT} ${WRKSRC}/gnatsweb.pl ${STAGEDIR}${CGI_DIR}
+ ${LN} -s ${ETCDIR}/gnatsweb-site.pl ${STAGEDIR}${CGI_DIR}
+ ${INSTALL_DATA} ${WRKSRC}/gnatsweb.html ${STAGEDIR}${CGI_DIR}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ for doc in ${PORTDOCS}; do \
+ ${INSTALL_DATA} ${WRKSRC}/$${doc} ${STAGEDIR}${DOCSDIR}; \
done
-.endif
-.if !defined(NOPORTEXAMPLES)
- @${MKDIR} ${EXAMPLESDIR}/
- @for example in ${EXAMPLEFILES}; do \
- ${INSTALL_DATA} ${WRKSRC}/$${example} ${EXAMPLESDIR}/; \
+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ for example in ${EXAMPLEFILES}; do \
+ ${INSTALL_DATA} ${WRKSRC}/$${example} ${STAGEDIR}${EXAMPLESDIR}; \
done
-.endif
.include <bsd.port.mk>
diff --git a/databases/lsdb/Makefile b/databases/lsdb/Makefile
index cb002d1b0b81..023b0a25ac25 100644
--- a/databases/lsdb/Makefile
+++ b/databases/lsdb/Makefile
@@ -21,6 +21,8 @@ ALL_TARGET= elc
FLIM_COOKIE= flim-${EMACS_PORT_NAME}-1.14.FreeBSD-packages
+OPTIONS_DEFINE= DOCS
+
NO_STAGE= yes
.include <bsd.port.pre.mk>
@@ -37,9 +39,7 @@ post-patch:
post-install:
${INSTALL_DATA} ${WRKSRC}/bbdb-to-lsdb.el ${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/${PORTNAME}
-.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
-.endif
.include <bsd.port.post.mk>
diff --git a/databases/msql3/Makefile b/databases/msql3/Makefile
index a98178dc263a..e4ac54fbf3ac 100644
--- a/databases/msql3/Makefile
+++ b/databases/msql3/Makefile
@@ -29,6 +29,8 @@ MSQLDATA= directory.mm dll_os2.mm install.mm lex.mm libinstall.mm \
DOCS= README RELEASE_NOTES BUGS doc/License doc/Manual \
doc/Perl doc/acl.txt
+OPTIONS_DEFINE= DOCS
+
NO_STAGE= yes
post-patch:
cd ${FILESDIR}; \
@@ -58,12 +60,10 @@ post-install:
${INSTALL_SCRIPT} ${WRKSRC}/src/makegen/${i} ${DATADIR}/makegen
.endfor
${INSTALL_SCRIPT} ${WRKSRC}/src/site.mm ${DATADIR}/makegen
-.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
.for i in ${DOCS}
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
-.endif
.include <bsd.port.pre.mk>
diff --git a/databases/pecl-drizzle/Makefile b/databases/pecl-drizzle/Makefile
index d5ba41d62274..9ae567f554e3 100644
--- a/databases/pecl-drizzle/Makefile
+++ b/databases/pecl-drizzle/Makefile
@@ -22,24 +22,15 @@ DEFAULT_PHP_VER=53
IGNORE_WITH_PHP=5
NO_STAGE= yes
-.if !defined(NOPORTDOCS)
+OPTIONS_DEFINE= DOCS EXAMPLES
+
PORTDOCS= README EXPERIMENTAL ChangeLog CREDITS
+PORTEXAMPLES= drizzle.php
-post-install::
+post-install:
@${MKDIR} ${DOCSDIR}
@cd ${WRKSRC} && ${INSTALL} ${PORTDOCS} ${DOCSDIR}
-.else
-PORTDOCS=
-.endif
-
-.if !defined(NOPORTEXAMPLES)
-PORTEXAMPLES= drizzle.php
-
-post-install::
@${MKDIR} ${EXAMPLESDIR}
@cd ${WRKSRC} && ${INSTALL} ${PORTEXAMPLES} ${EXAMPLESDIR}
-.else
-PORTEXAMPLES=
-.endif
.include <bsd.port.mk>
diff --git a/databases/pg_filedump/Makefile b/databases/pg_filedump/Makefile
index d2343f10c0fc..0a837421676e 100644
--- a/databases/pg_filedump/Makefile
+++ b/databases/pg_filedump/Makefile
@@ -14,7 +14,6 @@ BUILD_DEPENDS= ${NONEXISTENT}:${PORTSDIR}/databases/postgresql84-client:patch
WRKSRC= ${WRKDIR}/${PORTNAME}-8.4.0
-NO_STAGE= yes
.include <bsd.port.pre.mk>
BROKEN= Does not compile
@@ -25,11 +24,9 @@ post-patch:
${REINPLACE_CMD} -e "s|8.4.0|${PG84VER}|" ${WRKSRC}/Makefile
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/pg_filedump ${PREFIX}/bin
-.if !defined(NOPORTDOCS)
- ${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/ChangeLog ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/README.pg_filedump ${DOCSDIR}
-.endif
+ ${INSTALL_PROGRAM} ${WRKSRC}/pg_filedump ${STAGEDIR}${PREFIX}/bin
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/ChangeLog ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README.pg_filedump ${STAGEDIR}${DOCSDIR}
.include <bsd.port.post.mk>
diff --git a/databases/pgaccess/Makefile b/databases/pgaccess/Makefile
index 69759ee35052..263db17ca983 100644
--- a/databases/pgaccess/Makefile
+++ b/databases/pgaccess/Makefile
@@ -24,6 +24,8 @@ TCLVERSION?= 8.4
DOCSDIR= ${PREFIX}/share/doc/postgresql/${PORTNAME}
PGACCESSDIR= ${PREFIX}/share/postgresql/${PORTNAME}
+OPTIONS_DEFINE= DOCS
+
NO_STAGE= yes
post-patch:
@${REINPLACE_CMD} -e "s,/usr/bin,${PREFIX}/bin,g ; " ${WRKSRC}/lib/mainlib.tcl
@@ -47,12 +49,10 @@ do-install:
.for targetfile in pgaccess pgmonitor
${INSTALL_SCRIPT} ${WRKDIR}/${targetfile}.sh ${PREFIX}/bin/${targetfile}
.endfor
-.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR} ; \
cd ${WRKSRC}/doc/html ;\
${TAR} cf - * | \
( cd ${DOCSDIR}; ${TAR} xf - ) ; \
${CHOWN} -R 0:0 ${DOCSDIR}
-.endif
.include <bsd.port.mk>
diff --git a/databases/ruby-msql/Makefile b/databases/ruby-msql/Makefile
index 315ef8967098..e963c7c4ee27 100644
--- a/databases/ruby-msql/Makefile
+++ b/databases/ruby-msql/Makefile
@@ -29,11 +29,12 @@ DOCS_EN= readme.en.txt doc/en/*
DOCS_JA= readme.ja.txt
NO_STAGE= yes
+OPTIONS_DEFINE= DOCS
+
post-configure:
${ECHO_CMD} '#define INST_DIR "${LOCALBASE}"' >> ${WRKSRC}/site.h
post-install:
-.if !defined(NOPORTDOCS)
${MKDIR} ${RUBY_MODEXAMPLESDIR}
.for f in ${EXAMPLES_EN}
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODEXAMPLESDIR}/
@@ -45,6 +46,5 @@ post-install:
.for f in ${DOCS_JA}
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/ja/
.endfor
-.endif
.include <bsd.port.mk>
diff --git a/databases/ruby-oci8/Makefile b/databases/ruby-oci8/Makefile
index ab4b4cc12eb1..e747da385a53 100644
--- a/databases/ruby-oci8/Makefile
+++ b/databases/ruby-oci8/Makefile
@@ -30,12 +30,13 @@ INSTALL_TARGET= site-install
DOCS_EN= ChangeLog README
NO_STAGE= yes
+
+OPTIONS_DEFINE= DOCS
+
post-install:
-.if !defined(NOPORTDOCS)
${MKDIR} ${RUBY_MODDOCDIR}
.for f in ${DOCS_EN}
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/
.endfor
-.endif
.include <bsd.port.mk>
diff --git a/databases/slony1/files/pkg-message.in b/databases/slony1/files/pkg-message.in
index 2928d1c0a5b5..4f598099258d 100644
--- a/databases/slony1/files/pkg-message.in
+++ b/databases/slony1/files/pkg-message.in
@@ -1,8 +1,8 @@
**********************************************************************
-Please read the docs on configuring and running slony-1. Unless you specified
-NOPORTDOCS, they are in the %%LOCALBASE%%/share/doc/slony1 directory.
+Please read the docs on configuring and running slony-1. Unless you deselected
+DOCS, they are in the %%LOCALBASE%%/share/doc/slony1 directory.
If you are upgrading from a prior version of slony, please read the UPGRADING
file in the above docs directory.
diff --git a/databases/yasql/Makefile b/databases/yasql/Makefile
index 587dafc5d5e6..6811d151e0b4 100644
--- a/databases/yasql/Makefile
+++ b/databases/yasql/Makefile
@@ -45,6 +45,8 @@ MAN1= yasql.1
PORTDOCS= README yasql.html
+OPTIONS_DEFINE= DOCS
+
NO_STAGE= yes
pre-everything::
@${ECHO_MSG}
@@ -66,10 +68,8 @@ pre-install:
post-install:
${MV} ${PREFIX}/etc/yasql.conf ${PREFIX}/etc/yasql.conf.sample
-.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
-.endif
@if [ -f ${PREFIX}/etc/yasql.conf.precious ] ; then \
${MV} ${PREFIX}/etc/yasql.conf.precious ${PREFIX}/etc/yasql.conf ; \
else \