- Add DOCS option

- Add stage support
This commit is contained in:
Danilo Egea Gondolfo 2013-11-12 20:32:10 +00:00
parent eeb41e2e3d
commit b5e413f13d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=333616

View file

@ -23,20 +23,17 @@ LDFLAGS+= -L${LOCALBASE}/lib -lXpm -lXext -lX11
PORTDOCS= README TODO
PLIST_FILES= bin/minichess
NO_STAGE= yes
.include <bsd.port.options.mk>
OPTIONS_DEFINE= DOCS
do-build:
(cd ${WRKSRC} \
&& ${CC} ${CFLAGS} ${CPPFLAGS} -o minichess *.c ${LDFLAGS})
do-install:
(cd ${WRKSRC} && ${INSTALL_PROGRAM} minichess ${PREFIX}/bin)
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
(cd ${WRKSRC} && ${INSTALL_PROGRAM} minichess ${STAGEDIR}${PREFIX}/bin)
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in ${PORTDOCS}
(cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${DOCSDIR})
(cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${STAGEDIR}${DOCSDIR})
.endfor
.endif
.include <bsd.port.mk>