- Support staging

- Define DOCS option
This commit is contained in:
Emanuel Haupt 2014-04-11 21:41:16 +00:00
parent a13c57538e
commit f88fe53411
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=351048

View File

@ -14,7 +14,8 @@ CFLAGS+= -Wall
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}
NO_STAGE= yes
OPTIONS_DEFINE= DOCS
do-build:
(cd ${WRKSRC} && ${CC} ${CFLAGS} -c -o main.o main.c)
(cd ${WRKSRC} && ${CC} ${CFLAGS} -c -o misc.o misc.c)
@ -22,11 +23,8 @@ do-build:
(cd ${WRKSRC} && ${CC} ${CFLAGS} ${LDFLAGS} -o ${PORTNAME} main.o misc.o screen.o)
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/${PORTNAME}
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/README
.endif
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>