Support staging

This commit is contained in:
Emanuel Haupt 2014-02-20 08:44:04 +00:00
parent 735c8950c1
commit a304a715f9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=345192

View File

@ -9,17 +9,16 @@ MASTER_SITES= CENKES BERLIOS
MAINTAINER= ports@FreeBSD.org
COMMENT= Post-processing tool for scanned sheets of paper
NO_STAGE= yes
OPTIONS_DEFINE= DOCS
do-build:
@${CC} ${CFLAGS} -o ${WRKSRC}/${PORTNAME} \
${WRKSRC}/src/${PORTNAME}.c -lm
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/
.ifndef NOPORTDOCS
@${INSTALL} -d ${DOCSDIR}/
@cd ${WRKSRC}/&&${INSTALL_DATA} CHANGELOG README ${DOCSDIR}/
@cd ${WRKSRC}/doc/&&${COPYTREE_SHARE} . ${DOCSDIR}/
.endif
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
${INSTALL} -d ${STAGEDIR}${DOCSDIR}
@cd ${WRKSRC}/ && ${INSTALL_DATA} CHANGELOG README ${STAGEDIR}${DOCSDIR}
@cd ${WRKSRC}/doc/ && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>