summaryrefslogtreecommitdiff
path: root/biology/protomol
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2015-06-23 06:58:19 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2015-06-23 06:58:19 +0000
commit2e55acc16da725851010d41e3db1e4f462d73e90 (patch)
tree94474a96f8d67379a78ac14fcde3946f6618c0fd /biology/protomol
parentConvert to COPYTREE_SHARE (diff)
Convert to COPYTREE_SHARE
Use options helpers
Notes
Notes: svn path=/head/; revision=390356
Diffstat (limited to 'biology/protomol')
-rw-r--r--biology/protomol/Makefile15
1 files changed, 6 insertions, 9 deletions
diff --git a/biology/protomol/Makefile b/biology/protomol/Makefile
index 253fb8aa85bc..e02ace808097 100644
--- a/biology/protomol/Makefile
+++ b/biology/protomol/Makefile
@@ -29,20 +29,17 @@ WRKSRC= ${WRKDIR}/${PORTNAME}
OPTIONS_DEFINE= GLUT
OPTIONS_DEFAULT= GLUT
-.include <bsd.port.options.mk>
+GLUT_CONFIGURE_ON= --with-glut=yes
+GLUT_USE= GL=glut
+GLUT_CONFIGURE_OFF= --with-glut=no
-.if ${PORT_OPTIONS:MGLUT}
-CONFIGURE_ARGS+= --with-glut=yes
-USE_GL= glut
-.else
-CONFIGURE_ARGS+= --with-glut=no
-.endif
+.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MEXAMPLES}
post-install:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
- cd ${WRKSRC}/examples && ${FIND} . | ${EGREP} -v '\.cvsignore' | \
- ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${STAGEDIR}${EXAMPLESDIR}
+ cd ${WRKSRC}/examples ; \
+ ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR} "! -name .cvsignore"
.endif
.include <bsd.port.mk>