svn commit: r420643 - head/cad/NASTRAN-95
John Marino
marino at FreeBSD.org
Tue Aug 23 02:29:46 UTC 2016
Author: marino
Date: Tue Aug 23 02:29:44 2016
New Revision: 420643
URL: https://svnweb.freebsd.org/changeset/ports/420643
Log:
cad/NASTRAN-95: Report version as FREEBSD rather than LINUX
The maximum string length is 7 characters, so setting it to OPSYS:tu
wouldn't work in all cases (e.g. DragonFly) but having NASTRAN advertise
itself as a native FreeBSD program is still better in any case.
PR: 211781
Submitted by: maintainer (pfg)
Modified:
head/cad/NASTRAN-95/Makefile
Modified: head/cad/NASTRAN-95/Makefile
==============================================================================
--- head/cad/NASTRAN-95/Makefile Tue Aug 23 02:08:41 2016 (r420642)
+++ head/cad/NASTRAN-95/Makefile Tue Aug 23 02:29:44 2016 (r420643)
@@ -3,6 +3,7 @@
PORTNAME= NASTRAN-95
PORTVERSION= 20151227
+PORTREVISION= 1
CATEGORIES= cad science
MAINTAINER= pfg at FreeBSD.org
@@ -29,6 +30,10 @@ pre-build:
@${REINPLACE_CMD} -e 's+%%FC%%+${FC}+g ; s+%%FFLAGS%%+${FFLAGS}+g;' \
${WRKSRC}/sb/Makefile \
${WRKSRC}/um/Makefile
+# Version string limited to 7 characters so ${OPSYS:tu} would result in
+# "DRAGONF VERSON" for DF. It's best to leave it hardcoded to FreeBSD
+ @${REINPLACE_CMD} -e 's+LINUX +FREEBSD+g;' \
+ ${WRKSRC}/sb/btstrp.f
do-build:
@(cd ${WRKSRC}/sb; ${MAKE_CMD} ${ALL_TARGET})
More information about the svn-ports-all
mailing list