aboutsummaryrefslogtreecommitdiff
path: root/biology/consed
diff options
context:
space:
mode:
authorAdam Weinberger <adamw@FreeBSD.org>2014-01-03 15:46:52 +0000
committerAdam Weinberger <adamw@FreeBSD.org>2014-01-03 15:46:52 +0000
commit955d37365b6f6918a963a5ec58d42d476ad35376 (patch)
tree207a8a09b4099789858b3482aafceec341e79e71 /biology/consed
parentf5da53d279df636b600a231acd6756159f779c34 (diff)
downloadports-955d37365b6f6918a963a5ec58d42d476ad35376.tar.gz
ports-955d37365b6f6918a963a5ec58d42d476ad35376.zip
Convert biology to MDOCS and MEXAMPLES
Notes
Notes: svn path=/head/; revision=338550
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}'"