- Implement staging.
This commit is contained in:
parent
c0f138b9a7
commit
5783f27605
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=341299
2 changed files with 7 additions and 10 deletions
|
@ -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>
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
all: bamg cvmsh2 $(FLAGFILE)
|
||||
|
||||
-INSTALLDIR=/usr/local/bin
|
||||
+INSTALLDIR=$(PREFIX)/bin
|
||||
+INSTALLDIR=$(DESTDIR)$(PREFIX)/bin
|
||||
FLAGFILE=FLAG.$(HOSTTYPE)
|
||||
|
||||
include $(FLAGFILE)
|
||||
|
|
Loading…
Reference in a new issue