aboutsummaryrefslogtreecommitdiff
path: root/math/bamg
diff options
context:
space:
mode:
authorStephen Montgomery-Smith <stephen@FreeBSD.org>2014-01-26 22:45:51 +0000
committerStephen Montgomery-Smith <stephen@FreeBSD.org>2014-01-26 22:45:51 +0000
commit5783f27605489fc53835275c4daed7dbe2ec3e86 (patch)
treeca2df6a1e1ab186712179795993025220ef2d802 /math/bamg
parentc0f138b9a724ce53eca77bab8fd63d42db80feaf (diff)
downloadports-5783f27605489fc53835275c4daed7dbe2ec3e86.tar.gz
ports-5783f27605489fc53835275c4daed7dbe2ec3e86.zip
Notes
Diffstat (limited to 'math/bamg')
-rw-r--r--math/bamg/Makefile15
-rw-r--r--math/bamg/files/patch-Makefile2
2 files changed, 7 insertions, 10 deletions
diff --git a/math/bamg/Makefile b/math/bamg/Makefile
index 42b1ebd4277c..bfe50e550054 100644
--- a/math/bamg/Makefile
+++ b/math/bamg/Makefile
@@ -28,7 +28,6 @@ INSTALL_TARGET= install-world
BINS= bamg bamg-g cvmsh2 drawbdmesh
EXDIRS= NACA012 quadloop square test
-NO_STAGE= yes
.include <bsd.port.pre.mk>
.pre-configure:
@@ -41,20 +40,18 @@ post-patch:
post-install:
.for bin in ${BINS}
- @${STRIP_CMD} ${PREFIX}/bin/${bin}
+ @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${bin}
.endfor
.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
- @${INSTALL_DATA} ${DISTDIR}/${PORTNAME}.pdf ${DOCSDIR}
- @${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ @${INSTALL_DATA} ${DISTDIR}/${PORTNAME}.pdf ${STAGEDIR}${DOCSDIR}
.endif
.if !defined(NOPORTEXAMPLES)
.for exdir in ${EXDIRS}
- @${MKDIR} ${EXAMPLESDIR}/${exdir}
- @${INSTALL_DATA} ${WRKSRC}/examples/${exdir}/* ${EXAMPLESDIR}/${exdir}
+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/${exdir}
+ @${INSTALL_DATA} ${WRKSRC}/examples/${exdir}/* ${STAGEDIR}${EXAMPLESDIR}/${exdir}
.endfor
- @${FIND} ${EXAMPLESDIR} \( -name "*.pl" -or -name "*.sh" \) -exec ${CHMOD} a+x {} \;
- @${ECHO_MSG} "===> Examples installed in ${EXAMPLESDIR}."
+ @${FIND} ${STAGEDIR}${EXAMPLESDIR} \( -name "*.pl" -or -name "*.sh" \) -exec ${CHMOD} a+x {} \;
.endif
.include <bsd.port.post.mk>
diff --git a/math/bamg/files/patch-Makefile b/math/bamg/files/patch-Makefile
index effad11df246..10f7a006b74c 100644
--- a/math/bamg/files/patch-Makefile
+++ b/math/bamg/files/patch-Makefile
@@ -5,7 +5,7 @@
all: bamg cvmsh2 $(FLAGFILE)
-INSTALLDIR=/usr/local/bin
-+INSTALLDIR=$(PREFIX)/bin
++INSTALLDIR=$(DESTDIR)$(PREFIX)/bin
FLAGFILE=FLAG.$(HOSTTYPE)
include $(FLAGFILE)