aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoradamw <adamw@FreeBSD.org>2014-07-05 05:57:08 +0800
committeradamw <adamw@FreeBSD.org>2014-07-05 05:57:08 +0800
commit07725c1aa2ca982833205f6aa443f553fa416f4b (patch)
tree339a00de615d6ff78bfd52ddf5025fca9bd377b3
parentef651b4509b37ada10eb12940e8e184a34a5820c (diff)
downloadfreebsd-ports-gnome-07725c1aa2ca982833205f6aa443f553fa416f4b.tar.gz
freebsd-ports-gnome-07725c1aa2ca982833205f6aa443f553fa416f4b.tar.zst
freebsd-ports-gnome-07725c1aa2ca982833205f6aa443f553fa416f4b.zip
Remove NOPORTDOCS and NOPORTEXAMPLES.
-rw-r--r--news/newsx/Makefile6
-rw-r--r--news/rawdog/Makefile12
2 files changed, 12 insertions, 6 deletions
diff --git a/news/newsx/Makefile b/news/newsx/Makefile
index 826a3dfd9ea0..34af6eb52b15 100644
--- a/news/newsx/Makefile
+++ b/news/newsx/Makefile
@@ -22,6 +22,8 @@ GNU_CONFIGURE= yes
CONFLICTS= leafnode-1.*
+OPTIONS_DEFINE= DOCS
+
.if !defined(WITH_CNEWS)
.if !defined(WITHOUT_INN_2-X)
CPPFLAGS+= -I${LOCALBASE}/news/include
@@ -34,6 +36,8 @@ CONFIGURE_ARGS+= --without-history
DOCS= AUTHORS COPYING ChangeLog FAQ INSTALL NEWS README TODO
+.include <bsd.port.options.mk>
+
pre-configure:
${REINPLACE_CMD} -e "s:%%LOCALBASE%%:${LOCALBASE}:g" ${WRKSRC}/configure
@${ECHO} "*********************************************************"
@@ -50,12 +54,10 @@ post-build:
post-install:
${MKDIR} ${STAGEDIR}${PREFIX}/news/spool/inhosts
-.if !defined(NOPORTDOCS)
${MKDIR} ${STAGEDIR}${DOCSDIR}
.for FILE in ${DOCS}
${INSTALL_DATA} ${WRKSRC}/${FILE} ${STAGEDIR}${DOCSDIR}
.endfor
@${ECHO} "Documentation installed in ${DOCSDIR}."
-.endif
.include <bsd.port.mk>
diff --git a/news/rawdog/Makefile b/news/rawdog/Makefile
index 39cbcaee2080..6030a63491ee 100644
--- a/news/rawdog/Makefile
+++ b/news/rawdog/Makefile
@@ -22,26 +22,30 @@ PORTDOCS= README
PKGMESSAGE= ${WRKDIR}/pkg-message
+OPTIONS_DEFINE= DOCS EXAMPLES
+
+.include <bsd.port.options.mk>
+
post-install:
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/config ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/style.css ${STAGEDIR}${EXAMPLESDIR}
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
-.if !defined(NOPORTEXAMPLES) || !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS} || ${PORT_OPTIONS:MEXAMPLES}
@${ECHO_MSG} " ---------------------------------------------" \
>>${PKGMESSAGE}
.endif
-.if !defined(NOPORTEXAMPLES)
+.if ${PORT_OPTIONS:MEXAMPLES}
@${ECHO_MSG} " Sample config and stylesheet installed in:" \
>>${PKGMESSAGE}
@${ECHO_MSG} " ${EXAMPLESDIR}" >>${PKGMESSAGE}
.endif
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${ECHO_MSG} " Please read the README:" >>${PKGMESSAGE}
@${ECHO_MSG} " ${DOCSDIR}/README" >>${PKGMESSAGE}
.endif
-.if !defined(NOPORTEXAMPLES) || !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS} || ${PORT_OPTIONS:MEXAMPLES}
@${ECHO_MSG} " ---------------------------------------------" \
>>${PKGMESSAGE}
.endif