aboutsummaryrefslogtreecommitdiffstats
path: root/science
diff options
context:
space:
mode:
authordanilo <danilo@FreeBSD.org>2014-04-13 07:44:17 +0800
committerdanilo <danilo@FreeBSD.org>2014-04-13 07:44:17 +0800
commit374ab1324fe6b03cccacb2497ccac1c6f244e144 (patch)
tree6526e0288e95524cc1d91c82c7c2d3d942a55a1a /science
parent57a7db91b7d1297ee8625ff0362b8c57dd32915c (diff)
downloadfreebsd-ports-gnome-374ab1324fe6b03cccacb2497ccac1c6f244e144.tar.gz
freebsd-ports-gnome-374ab1324fe6b03cccacb2497ccac1c6f244e144.tar.zst
freebsd-ports-gnome-374ab1324fe6b03cccacb2497ccac1c6f244e144.zip
- Support staging
- Use options helpers - Approved by: portmgr (blanket)
Diffstat (limited to 'science')
-rw-r--r--science/dlpoly-classic/Makefile42
1 files changed, 16 insertions, 26 deletions
diff --git a/science/dlpoly-classic/Makefile b/science/dlpoly-classic/Makefile
index 96cc1183b04a..88476f453d10 100644
--- a/science/dlpoly-classic/Makefile
+++ b/science/dlpoly-classic/Makefile
@@ -27,15 +27,10 @@ BUILD_WRKSRC= ${WRKSRC}/source
MPIF90= ${LOCALBASE}/mpi/openmpi/bin/mpif90
-NO_STAGE= yes
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MGUI}
-USE_JAVA= yes
-PLIST_FILES+= bin/dlpoly-gui \
- ${DATADIR_REL}/GUI.jar
-PLIST_DIRS+= ${DATADIR_REL}
-.endif
+GUI_USE= JAVA=yes
+GUI_PLIST_FILES= bin/dlpoly-gui \
+ ${DATADIR_REL}/GUI.jar
+GUI_PLIST_DIRS= ${DATADIR_REL}
post-patch:
${CP} ${WRKSRC}/build/MakePAR ${WRKSRC}/build/MakeSEQ ${BUILD_WRKSRC}
@@ -55,25 +50,20 @@ do-build:
${CP} -f MakePAR Makefile && \
${MAKE} gfortran)
+.include <bsd.port.options.mk>
+
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/execute/dlpoly-classic ${PREFIX}/bin
- ${INSTALL_PROGRAM} ${WRKSRC}/execute/dlpoly-classic-mpi ${PREFIX}/bin
-.if ${PORT_OPTIONS:MDOCS}
- ${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/manual/* ${DOCSDIR}
-.endif
-.if ${PORT_OPTIONS:MEXAMPLES}
- ${MKDIR} ${EXAMPLESDIR}
- ${CP} -R ${WRKSRC}/execute ${EXAMPLESDIR}
- ${RM} ${EXAMPLESDIR}/execute/dlpoly*
-.endif
+ ${INSTALL_PROGRAM} ${WRKSRC}/execute/dlpoly-classic ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/execute/dlpoly-classic-mpi ${STAGEDIR}${PREFIX}/bin
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/manual/* ${STAGEDIR}${DOCSDIR}
+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ ${CP} -R ${WRKSRC}/execute ${STAGEDIR}${EXAMPLESDIR}
+ ${RM} ${STAGEDIR}${EXAMPLESDIR}/execute/dlpoly*
.if ${PORT_OPTIONS:MGUI}
- ${MKDIR} ${DATADIR}
- ${INSTALL_DATA} ${WRKSRC}/java/GUI.jar ${DATADIR}
- ${INSTALL_SCRIPT} ${WRKDIR}/dlpoly-gui ${PREFIX}/bin
+ @${MKDIR} ${STAGEDIR}${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/java/GUI.jar ${STAGEDIR}${DATADIR}
+ ${INSTALL_SCRIPT} ${WRKDIR}/dlpoly-gui ${STAGEDIR}${PREFIX}/bin
.endif
-post-install:
- @${CAT} pkg-message
-
.include <bsd.port.mk>