- Add staging support

- Convert to USES=gmake
- Define DOCS option
This commit is contained in:
Pawel Pekala 2014-04-11 16:36:28 +00:00
parent dc537cddef
commit e4eb146b05
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=351004
2 changed files with 10 additions and 11 deletions

View file

@ -10,8 +10,7 @@ MASTER_SITES= SF
MAINTAINER= ports@FreeBSD.org
COMMENT= UNIX rewrite of a game originally based on "Drug Wars"
USES= gettext
USE_GMAKE= yes
USES= gmake gettext
GNU_CONFIGURE= yes
USE_GNOME= gtk12
@ -20,9 +19,9 @@ CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
PORTDOCS= ABOUT-NLS AUTHORS COPYING ChangeLog INSTALL LICENCE NEWS README TODO
MAN6= dopewars.6
NO_STAGE= yes
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e 's!/pixmaps!/dopewars/pixmaps!' \
${WRKSRC}/src/Makefile.in
@ -32,12 +31,11 @@ post-patch:
@${REINPLACE_CMD} -e 's!install-recursive!!g' ${WRKSRC}/doc/Makefile.in
post-install:
@${INSTALL_MAN} ${WRKSRC}/doc/dopewars.6 ${MAN6PREFIX}/man/man6
.ifndef NOPORTDOCS
@${INSTALL} -d ${DOCSDIR}/help
@${INSTALL_DATA} ${WRKSRC}/doc/*html ${WRKSRC}/doc/example* ${DOCSDIR}/
@${INSTALL_DATA} ${WRKSRC}/doc/help/*html ${DOCSDIR}/help/
@${INSTALL_DATA} ${PORTDOCS:S.^.${WRKSRC}/.} ${DOCSDIR}/
.endif
${INSTALL_MAN} ${WRKSRC}/doc/dopewars.6 ${STAGEDIR}${MAN6PREFIX}/man/man6
@${MKDIR} ${STAGEDIR}${DOCSDIR}/help
${INSTALL_DATA} ${WRKSRC}/doc/*html ${WRKSRC}/doc/example* \
${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/help/*html ${STAGEDIR}${DOCSDIR}/help
${INSTALL_DATA} ${PORTDOCS:S.^.${WRKSRC}/.} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>

View file

@ -1,4 +1,5 @@
bin/dopewars
man/man6/dopewars.6.gz
%%PORTDOCS%%%%DOCSDIR%%/aiplayer.html
%%PORTDOCS%%%%DOCSDIR%%/clientplay.html
%%PORTDOCS%%%%DOCSDIR%%/commandline.html