aboutsummaryrefslogtreecommitdiffstats
path: root/math
diff options
context:
space:
mode:
authoreadler <eadler@FreeBSD.org>2013-12-12 12:45:14 +0800
committereadler <eadler@FreeBSD.org>2013-12-12 12:45:14 +0800
commit5a22702ec45700943212720c2a57b904ad34554e (patch)
tree9c3b567cacdcc270eda60ae892cd162dbf7f9932 /math
parent31ae7aecf5e90a1d2f1fdb632959c31c59c8f2cb (diff)
downloadfreebsd-ports-graphics-5a22702ec45700943212720c2a57b904ad34554e.tar.gz
freebsd-ports-graphics-5a22702ec45700943212720c2a57b904ad34554e.tar.zst
freebsd-ports-graphics-5a22702ec45700943212720c2a57b904ad34554e.zip
math/emc2: modernize port
- Sync LEGAL as required. - While here, fix COMMENT - while here, USE_GMAKE -> USES=gmake - Convert to OptionsNG
Diffstat (limited to 'math')
-rw-r--r--math/emc2/Makefile14
1 files changed, 4 insertions, 10 deletions
diff --git a/math/emc2/Makefile b/math/emc2/Makefile
index 90ea8fd2d39..f4445ef91ff 100644
--- a/math/emc2/Makefile
+++ b/math/emc2/Makefile
@@ -13,7 +13,7 @@ EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
.endif
MAINTAINER= ports@FreeBSD.org
-COMMENT= A graphical editor of two-dimensional mesh geometries
+COMMENT= Graphical editor of two-dimensional mesh geometries
LICENSE= INRIA
LICENSE_NAME= INRIA license, perhaps specific to emc2
@@ -22,36 +22,30 @@ LICENSE_PERMS= auto-accept no-dist-sell no-pkg-sell
RESTRICTED= No resale, contact author for commercial usage
USE_XORG= x11
-USE_GMAKE= yes
+USES= gmake
ALL_TARGET= ${PORTNAME}
.if defined(LANG) && ${LANG:Mfr*} != ""
CFLAGS+= -DFRENCH
.endif
-.if !defined(NOPORTDOCS)
PORTDOCS= ${DISTFILES:M*.pdf}
-.endif
-
-.if !defined(NOPORTEXAMPLES)
PORTEXAMPLES= *
-.endif
PLIST_FILES= bin/emc2 bin/prf_f3d
NO_STAGE= yes
+.include <bsd.port.options.mk>
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/emc2 ${PREFIX}/bin
@${INSTALL_SCRIPT} ${WRKSRC}/prf_f3d ${PREFIX}/bin
post-install:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
@(cd ${DISTDIR} && ${INSTALL_MAN} ${PORTDOCS} ${DOCSDIR})
.endif
-.if !defined(NOPORTEXAMPLES)
@${MKDIR} ${EXAMPLESDIR}
@${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR}
-.endif
.include <bsd.port.mk>