1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-26 09:46:09 +00:00

Stage support

This commit is contained in:
Antoine Brodin 2014-01-20 21:00:05 +00:00
parent 25e6aa9d7a
commit 7718983035
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=340478
2 changed files with 13 additions and 18 deletions

View File

@ -11,7 +11,7 @@ DIST_SUBDIR= z88
EXTRACT_ONLY= ${PORTNAME}130${EXTRACT_SUFX}
MAINTAINER= ports@FreeBSD.org
COMMENT= A compact Finite Element Analysis System
COMMENT= Compact Finite Element Analysis System
LIB_DEPENDS= libgtkglext-x11-1.0.so:${PORTSDIR}/x11-toolkits/gtkglext
@ -24,14 +24,12 @@ USE_GNOME= gtk20
BROWSER?= firefox3
XEDITOR?= gedit
OPTIONS_DEFINE= DOCS
Z88_BINS= z88f z88i1 z88i2 z88com z88d z88e z88g z88h z88n z88o \
z88x z88v
Z88_DATA= z88.fcd z88.dyn *.dxf *.txt
NO_STAGE= yes
.include <bsd.port.options.mk>
post-patch:
@${CP} ${WRKSRC}/z88.fcd.linux ${WRKSRC}/z88.fcd
@${CP} ${WRKSRC}/z88.mk.kernel.gcc32 ${WRKSRC}/z88.kernel.mk
@ -59,17 +57,15 @@ do-build:
@(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} -f z88.gtk.mk gtk)
do-install:
@${MKDIR} ${PREFIX}/bin
@${INSTALL_SCRIPT} ${WRKSRC}/z88.sh ${PREFIX}/bin/z88
@${INSTALL_PROGRAM} ${Z88_BINS:S|^|${WRKSRC}/|} ${PREFIX}/bin
@${MKDIR} ${DATADIR}
@${INSTALL_DATA} ${Z88_DATA:S|^|${WRKSRC}/|} ${DATADIR}
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/*.htm ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/*.gif ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/*.jpg ${DOCSDIR}
.if ${PORT_OPTIONS:MDOCS}
@${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/z88mane.pdf ${DOCSDIR}
.endif
@${MKDIR} ${STAGEDIR}${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/z88.sh ${STAGEDIR}${PREFIX}/bin/z88
${INSTALL_PROGRAM} ${Z88_BINS:S|^|${WRKSRC}/|} ${STAGEDIR}${PREFIX}/bin
@${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${Z88_DATA:S|^|${WRKSRC}/|} ${STAGEDIR}${DATADIR}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/*.htm ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/*.gif ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/*.jpg ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/z88mane.pdf ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>

View File

@ -10,7 +10,6 @@ bin/z88i2
bin/z88n
bin/z88o
bin/z88v
bin/z88v
bin/z88x
%%DATADIR%%/b10_2.txt
%%DATADIR%%/b10_3.txt