diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2013-04-28 22:08:22 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2013-04-28 22:08:22 +0000 |
commit | 70311449fae75ffea4fd9f53366895a06b4bc897 (patch) | |
tree | dcad9bcb676fb6eb1edd275685eb3589f7f31419 /science/dlpoly-classic | |
parent | 8a35140e06cecbb04d9d78df50ee65c13425e141 (diff) | |
download | ports-70311449fae75ffea4fd9f53366895a06b4bc897.tar.gz ports-70311449fae75ffea4fd9f53366895a06b4bc897.zip |
Convert science to new options framework
Notes
Notes:
svn path=/head/; revision=316757
Diffstat (limited to 'science/dlpoly-classic')
-rw-r--r-- | science/dlpoly-classic/Makefile | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/science/dlpoly-classic/Makefile b/science/dlpoly-classic/Makefile index 9b97af950a43..6085be753296 100644 --- a/science/dlpoly-classic/Makefile +++ b/science/dlpoly-classic/Makefile @@ -1,11 +1,5 @@ -############################################################################ -# New ports collection Makefile for: dlpoly-classic -# Date created: 21 Jan 2010 -# Whom: Jason Bacon <jwbacon@tds.net> -# +# Created by: Jason Bacon <jwbacon@tds.net> # $FreeBSD$ -# -############################################################################ PORTNAME= dlpoly PORTVERSION= 1.8 @@ -20,7 +14,9 @@ COMMENT= Molecular dynamics simulation package BUILD_DEPENDS= ${LOCALBASE}/mpi/openmpi/bin/mpif90:${PORTSDIR}/net/openmpi RUN_DEPENDS= ${LOCALBASE}/mpi/openmpi/bin/mpirun:${PORTSDIR}/net/openmpi -OPTIONS= GUI "Install Java GUI" on +OPTIONS_DEFINE= GUI DOCS EXAMPLES +OPTIONS_DEFAULT= GUI +GUI_DESC= Install Java GUI USE_GMAKE= yes USE_FORTRAN= yes @@ -33,7 +29,7 @@ MPIF90= ${LOCALBASE}/mpi/openmpi/bin/mpif90 .include <bsd.port.options.mk> -.if defined(WITH_GUI) +.if ${PORT_OPTIONS:MGUI} USE_JAVA= yes PLIST_FILES+= bin/dlpoly-gui \ ${DATADIR_REL}/GUI.jar @@ -61,16 +57,16 @@ do-build: do-install: ${INSTALL_PROGRAM} ${WRKSRC}/execute/dlpoly-classic ${PREFIX}/bin ${INSTALL_PROGRAM} ${WRKSRC}/execute/dlpoly-classic-mpi ${PREFIX}/bin -.ifndef(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} ${MKDIR} ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/manual/* ${DOCSDIR} .endif -.ifndef(NOPORTEXAMPLES) +.if ${PORT_OPTIONS:MEXAMPLES} ${MKDIR} ${EXAMPLESDIR} ${CP} -R ${WRKSRC}/execute ${EXAMPLESDIR} ${RM} ${EXAMPLESDIR}/execute/dlpoly* .endif -.if defined(WITH_GUI) +.if ${PORT_OPTIONS:MGUI} ${MKDIR} ${DATADIR} ${INSTALL_DATA} ${WRKSRC}/java/GUI.jar ${DATADIR} ${INSTALL_SCRIPT} ${WRKDIR}/dlpoly-gui ${PREFIX}/bin |