aboutsummaryrefslogtreecommitdiffstats
path: root/biology/consed
diff options
context:
space:
mode:
authoradamw <adamw@FreeBSD.org>2014-01-03 23:46:52 +0800
committeradamw <adamw@FreeBSD.org>2014-01-03 23:46:52 +0800
commit70430283d642528c0df1dc8eb6e0b65d55eb5d5b (patch)
tree207a8a09b4099789858b3482aafceec341e79e71 /biology/consed
parent5d7350b19f9ff245efd08d269514e36b2a895629 (diff)
downloadfreebsd-ports-gnome-70430283d642528c0df1dc8eb6e0b65d55eb5d5b.tar.gz
freebsd-ports-gnome-70430283d642528c0df1dc8eb6e0b65d55eb5d5b.tar.zst
freebsd-ports-gnome-70430283d642528c0df1dc8eb6e0b65d55eb5d5b.zip
Convert biology to MDOCS and MEXAMPLES
Diffstat (limited to 'biology/consed')
-rw-r--r--biology/consed/Makefile13
1 files changed, 8 insertions, 5 deletions
diff --git a/biology/consed/Makefile b/biology/consed/Makefile
index 93979f541942..7176663aa5a3 100644
--- a/biology/consed/Makefile
+++ b/biology/consed/Makefile
@@ -53,12 +53,15 @@ PORTDATA+= ${f}.dist
.endfor
PORTDOCS= README.txt
-.if defined(WITH_EXAMPLES)
+NO_STAGE= yes
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MEXAMPLES}
EXAMPLES= standard autofinish assembly_view polyphred
PLIST= ${PKGDIR}/pkg-plist.examples
.endif
-NO_STAGE= yes
post-build:
(cd ${WRKSRC}/misc/454; ${CC} ${CFLAGS} sffinfo.c -o sffinfo)
(cd ${WRKSRC}/misc/454; ${CC} ${CFLAGS} sff2scf.c -o sff2scf)
@@ -84,19 +87,19 @@ do-install:
.for f in ${NULLFILES}
@${INSTALL_DATA} /dev/null ${DATADIR}/${f}.dist
.endfor
-.if !defined(NOPORTEXAMPLES)
+.if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${EXAMPLESDIR}
.for dir in ${EXAMPLES}
@${CP} -R ${WRKSRC}/${dir} ${EXAMPLESDIR}
.endfor
.endif
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
@${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.endif
-.if !defined(WITH_EXAMPLES)
+.if ! ${PORT_OPTIONS:MEXAMPLES}
@${ECHO_CMD} "Examples were not installed. You can define WITH_EXAMPLES=yes to install them."
.endif
@${ECHO_CMD} "You must set the CONSED_HOME environment variable to '${PREFIX}'"