diff options
author | adamw <adamw@FreeBSD.org> | 2014-01-03 23:46:52 +0800 |
---|---|---|
committer | adamw <adamw@FreeBSD.org> | 2014-01-03 23:46:52 +0800 |
commit | 70430283d642528c0df1dc8eb6e0b65d55eb5d5b (patch) | |
tree | 207a8a09b4099789858b3482aafceec341e79e71 /biology/consed | |
parent | 5d7350b19f9ff245efd08d269514e36b2a895629 (diff) | |
download | freebsd-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/Makefile | 13 |
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}'" |