math/emc2: modernize port

- Sync LEGAL as required.
- While here, fix COMMENT
- while here, USE_GMAKE -> USES=gmake
- Convert to OptionsNG
This commit is contained in:
Eitan Adler 2013-12-12 04:45:14 +00:00
parent ab95c32231
commit 7567a53645
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=336243
2 changed files with 5 additions and 11 deletions

2
LEGAL
View file

@ -90,7 +90,7 @@ eClient-linux-i686.run games/atitd Redistribution not allowed
ecw_jpeg_2000_*.zip graphics/libecwj2 Must be downloaded manually from Ermapper site
edith* editors/edith Redistribution not allowed
eijiro* japanese/eijiro-fpw The original dictionary is not free
emc2* math/emc2 Contact author personally regarding commercial use
emc2* math/emc2 No resale, contact author for commercial usage
et-linux-* games/linux-enemyterritory Redistribution limited
etqw* games/linux-etqw-demo-server Redistribution limited
etqw* games/linux-etqw-server Redistribution limited

View file

@ -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>