- Simplify master site - Add licenses (GPLv2) - USES gmake instead of USE_GMAKE - Support STAGEDIR - Change DOCS and add DOCS Option - Add Desktop entry file - Mute FIND command - Use REINPLACE_CMD instead of simple patches - Add REINPLACE_CMD, install conditional DOCS - Recreate patches with make makepatch - Recreate pkg-plist with make makeplist, remove DOCS PR: ports/172482 Submitted by: nemysis (self) Approved by: maintainer timeout (14 months)
46 lines
1.1 KiB
Makefile
46 lines
1.1 KiB
Makefile
# Created by: Edwin Groothuis
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= bomberclone
|
|
PORTVERSION= 0.11.9
|
|
PORTREVISION= 1
|
|
CATEGORIES= games
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/
|
|
|
|
MAINTAINER= edwin@mavetju.org
|
|
COMMENT= Reimplementation of Atomic Bomber Man
|
|
|
|
LICENSE= GPLv2
|
|
|
|
USES= gmake
|
|
USE_SDL= image mixer sdl
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --target="" --disable-werror
|
|
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
|
|
CXXFLAGS+= ${PTHREAD_CFLAGS} -I${LOCALBASE}/include
|
|
|
|
PORTDOCS= AUTHORS ChangeLog README TODO
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
DESKTOP_ENTRIES="BomberMan clone" "" "${PORTNAME}" \
|
|
"${PORTNAME}" "Game;ArcadeGame;" ""
|
|
|
|
post-extract:
|
|
@${FIND} ${WRKSRC} -type d -name CVS | ${XARGS} ${RM} -rf ;
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|share/games/${PACKAGE}|share/${PACKAGE}|' \
|
|
${WRKSRC}/configure
|
|
@${REINPLACE_CMD} \
|
|
-e 's|install-data-am: install-bomberclonedocDATA|install-data-am: |' \
|
|
${WRKSRC}/Makefile.in
|
|
|
|
post-install:
|
|
${LN} -sf ${DATADIR}/pixmaps/${PORTNAME}.png \
|
|
${STAGEDIR}${PREFIX}/share/pixmaps/
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|