- Convert USE_GMAKE to USES
- Add DOCS option - Use %%DATADIR%% in pkg-plist - Add stage support
This commit is contained in:
parent
7e3949d6fa
commit
9da44b1c71
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=333961
2 changed files with 590 additions and 591 deletions
|
@ -14,12 +14,13 @@ COMMENT= Humorous Arcade game for X
|
|||
WRKSRC= ${WRKDIR}/${PORTNAME}
|
||||
|
||||
USE_XORG= xpm
|
||||
USE_GMAKE= yes
|
||||
USES= gmake
|
||||
MAKE_ENV= CPP="${CC} -E"
|
||||
|
||||
CFLAGS+= -DDATADIR=\\\"${DATADIR}\\\"
|
||||
|
||||
NO_STAGE= yes
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
post-patch:
|
||||
@${FIND} ${WRKSRC}/src -name "Makefile" | ${XARGS} ${REINPLACE_CMD} -e \
|
||||
's|^CC|#CC|g ; \
|
||||
|
@ -29,32 +30,30 @@ post-patch:
|
|||
s|/usr/X11R6|$${LOCALBASE}|g'
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/xtux ${PREFIX}/bin
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/tux_serv ${PREFIX}/bin
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/xtux ${STAGEDIR}${PREFIX}/bin
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/tux_serv ${STAGEDIR}${PREFIX}/bin
|
||||
|
||||
@${MKDIR} ${DATADIR}/demos
|
||||
@${MKDIR} ${DATADIR}/images/entities
|
||||
@${MKDIR} ${DATADIR}/images/events
|
||||
@${MKDIR} ${DATADIR}/images/items
|
||||
@${MKDIR} ${DATADIR}/images/weapons
|
||||
@${MKDIR} ${DATADIR}/images/tiles
|
||||
@${MKDIR} ${DATADIR}/maps
|
||||
@${MKDIR} ${STAGEDIR}${DATADIR}/demos
|
||||
@${MKDIR} ${STAGEDIR}${DATADIR}/images/entities
|
||||
@${MKDIR} ${STAGEDIR}${DATADIR}/images/events
|
||||
@${MKDIR} ${STAGEDIR}${DATADIR}/images/items
|
||||
@${MKDIR} ${STAGEDIR}${DATADIR}/images/weapons
|
||||
@${MKDIR} ${STAGEDIR}${DATADIR}/images/tiles
|
||||
@${MKDIR} ${STAGEDIR}${DATADIR}/maps
|
||||
|
||||
${INSTALL_DATA} ${WRKSRC}/data/*.table ${DATADIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/data/*.table ${STAGEDIR}${DATADIR}
|
||||
.for file in ascii.txt bios entities weapons
|
||||
${INSTALL_DATA} ${WRKSRC}/data/${file} ${DATADIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/data/${file} ${STAGEDIR}${DATADIR}
|
||||
.endfor
|
||||
.for dir in entities events items weapons tiles .
|
||||
${INSTALL_DATA} ${WRKSRC}/data/images/${dir}/*.xpm \
|
||||
${DATADIR}/images/${dir}
|
||||
${STAGEDIR}${DATADIR}/images/${dir}
|
||||
.endfor
|
||||
${INSTALL_DATA} ${WRKSRC}/data/demos/*.xtdem ${DATADIR}/demos
|
||||
${INSTALL_DATA} ${WRKSRC}/data/maps/*.map ${DATADIR}/maps
|
||||
${INSTALL_DATA} ${WRKSRC}/data/demos/*.xtdem ${STAGEDIR}${DATADIR}/demos
|
||||
${INSTALL_DATA} ${WRKSRC}/data/maps/*.map ${STAGEDIR}${DATADIR}/maps
|
||||
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
|
||||
.endif
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/doc/* ${STAGEDIR}${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
1140
games/xtux/pkg-plist
1140
games/xtux/pkg-plist
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue