aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvanilla <vanilla@FreeBSD.org>2014-08-14 16:43:08 +0800
committervanilla <vanilla@FreeBSD.org>2014-08-14 16:43:08 +0800
commit258d6f862dbdd5014a65d3d4e4463ccd9dd79ebe (patch)
tree95bca6d6ef3a4ac3393e02ccf973ab1fdef2c085
parentb0d40be2b9996b530cce3665e028276fcecacc4c (diff)
downloadfreebsd-ports-gnome-258d6f862dbdd5014a65d3d4e4463ccd9dd79ebe.tar.gz
freebsd-ports-gnome-258d6f862dbdd5014a65d3d4e4463ccd9dd79ebe.tar.zst
freebsd-ports-gnome-258d6f862dbdd5014a65d3d4e4463ccd9dd79ebe.zip
Stagify.
-rw-r--r--cad/sceptre/Makefile15
-rw-r--r--cad/sceptre/files/patch-Makefile35
2 files changed, 40 insertions, 10 deletions
diff --git a/cad/sceptre/Makefile b/cad/sceptre/Makefile
index 4c27ed974e88..8285279c0e63 100644
--- a/cad/sceptre/Makefile
+++ b/cad/sceptre/Makefile
@@ -17,12 +17,9 @@ USES= fortran
MAKE_JOBS_UNSAFE= yes
NO_WRKSUBDIR= yes
-NO_STAGE= yes
-.include <bsd.port.pre.mk>
-
FFLAGS+= -fno-automatic
-
PORTDOCS= doc_en.pdf doc_ger.pdf install.pdf
+OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -E \
@@ -48,11 +45,9 @@ post-patch:
${WRKSRC}/bin/sceptre
post-install:
-.if ${PORT_OPTIONS:MDOCS}
- ${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/install.pdf ${DOCSDIR}
- cd ${WRKSRC}/doc ; ${INSTALL_DATA} ${PORTDOCS:Mdoc_*} ${DOCSDIR}
-.endif
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/install.pdf ${STAGEDIR}${DOCSDIR}
+ cd ${WRKSRC}/doc ; ${INSTALL_DATA} ${PORTDOCS:Mdoc_*} ${STAGEDIR}${DOCSDIR}
.if !defined(BATCH)
check test: install
@@ -60,4 +55,4 @@ check test: install
do ${WRKSRC}/bin/sceptre $${s%.d} ; done
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/cad/sceptre/files/patch-Makefile b/cad/sceptre/files/patch-Makefile
new file mode 100644
index 000000000000..01015e9cfba3
--- /dev/null
+++ b/cad/sceptre/files/patch-Makefile
@@ -0,0 +1,35 @@
+--- Makefile.orig 2014-08-14 16:40:12.245403240 +0800
++++ Makefile 2014-08-14 16:40:52.823402660 +0800
+@@ -35,19 +35,19 @@ all:
+ cd x1; ${MAKE} "FC=${FC}" "FFLAGS=${FFLAGS}"
+ cd x2; ${MAKE} "FC=${FC}" "FFLAGS=${FFLAGS}"
+ install:
+- install -s -m 755 x1/exec1 ${BINDIR}
+- install -m 644 x2/exec2.o ${LIBDIR}
+- install -m 644 x2/libx2.a ${LIBDIR}
+- install -s -m 755 x3/ngp_gnu ${BINDIR}
+- install -s -m 755 x3/asa ${BINDIR}
+- install -m 644 x3/libx3.a ${LIBDIR}
+- install -m 755 bin/sceptre ${BINDIR}
+- install -m 755 bin/sceptre.inst ${BINDIR}
+- install -m 755 bin/ngp ${BINDIR}
+- install -m 644 lib/usrlib.a ${LIBDIR}
+- install -m 644 lib/modellib.dat ${LIBDIR}
+- install -d ${ETCDIR}
+- install -m 644 etc/ngp.rc ${ETCDIR}
++ install -s -m 755 x1/exec1 $(DESTDIR)${BINDIR}
++ install -m 644 x2/exec2.o $(DESTDIR)${LIBDIR}
++ install -m 644 x2/libx2.a $(DESTDIR)${LIBDIR}
++ install -s -m 755 x3/ngp_gnu $(DESTDIR)${BINDIR}
++ install -s -m 755 x3/asa $(DESTDIR)${BINDIR}
++ install -m 644 x3/libx3.a $(DESTDIR)${LIBDIR}
++ install -m 755 bin/sceptre $(DESTDIR)${BINDIR}
++ install -m 755 bin/sceptre.inst $(DESTDIR)${BINDIR}
++ install -m 755 bin/ngp $(DESTDIR)${BINDIR}
++ install -m 644 lib/usrlib.a $(DESTDIR)${LIBDIR}
++ install -m 644 lib/modellib.dat $(DESTDIR)${LIBDIR}
++ install -d $(DESTDIR)${ETCDIR}
++ install -m 644 etc/ngp.rc $(DESTDIR)${ETCDIR}
+ @echo "installation finished"
+ uninstall:
+ @rm -fv ${BINDIR}/exec1