diff options
-rw-r--r-- | science/dlpoly-classic/Makefile | 42 |
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> |