1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-22 00:35:15 +00:00

Support staging

This commit is contained in:
Emanuel Haupt 2014-02-27 15:29:35 +00:00
parent 69dc841e3a
commit 8706db743f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=346370
2 changed files with 11 additions and 14 deletions

View File

@ -11,28 +11,24 @@ DISTNAME= ${PORTNAME}-0.9.6.update3
MAINTAINER= vmagerya@gmail.com
COMMENT= Scheme implementation for real-time applications
USE_GMAKE= yes
USES= gmake
MAKE_ARGS= DATADIR="${DATADIR}" \
PTHREAD_LIBS="${PTHREAD_LIBS}"
MAN1= ypsilon.1
ONLY_FOR_ARCHS= i386 amd64
NO_STAGE= yes
.include <bsd.port.pre.mk>
OPTIONS_DEFINE= EXAMPLES
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
@${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MANPREFIX}/man/man1
@${MKDIR} ${DATADIR}
(cd ${WRKSRC}/ && ${COPYTREE_SHARE} "sitelib stdlib" ${DATADIR})
.if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${EXAMPLESDIR}
@${INSTALL_DATA} ${WRKSRC}/example/*.scm ${EXAMPLESDIR}
.endif
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${MANPREFIX}/man/man1
@${MKDIR} ${STAGEDIR}${DATADIR}
(cd ${WRKSRC}/ && ${COPYTREE_SHARE} "sitelib stdlib" ${STAGEDIR}${DATADIR})
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/example/*.scm ${STAGEDIR}${EXAMPLESDIR}
regression-test: build
cd ${WRKSRC} && ${GMAKE} check
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View File

@ -1,4 +1,5 @@
bin/ypsilon
man/man1/ypsilon.1.gz
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/gears.scm
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/glut-demo.scm
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/gtk-hello.scm