1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-29 01:13:08 +00:00
freebsd-ports/games/bubbros/Makefile
Dmitry Marakasov b0af959588 - Add LICENSE_FILE
- Pet portlint
- Add empty directory to plist
2014-11-28 23:35:05 +00:00

70 lines
2.0 KiB
Makefile

# Created by: Janos Mohacsi <janos.mohacsi@bsd.hu>
# $FreeBSD$
PORTNAME= bubbros
PORTVERSION= 1.6.2
PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= SF/bub-n-bros/bub-n-bros/${PORTVERSION}
DIST_SUBDIR= python
MAINTAINER= ports@FreeBSD.org
COMMENT= Multiplayer clone of the famous Bubble Bobble game
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
RUN_DEPENDS= ${PYGAME}
BUILD_DEPENDS:= ${RUN_DEPENDS}
USES= python
PORTDOCS= *.html
OPTIONS_DEFINE= DOCS
SUB_FILES= ${PORTNAME}
DESKTOP_ENTRIES="Bub-n-Bros" "" "${PORTNAME}" \
"${PORTNAME}" "Game;ArcadeGame;" ""
post-patch:
@${REINPLACE_CMD} -e 's|/usr/X11R6|${LOCALBASE}|g' \
${WRKSRC}/display/setup.py
@${FIND} ${WRKSRC} -name "*.bak" -delete -or -name "*.orig" -delete \
-or -name "*.cvsignore" -delete
@${FIND} ${WRKSRC} -name CVS -print0 | ${XARGS} -0 ${RM} -fr
do-build:
# Compile the statesaver extension module
cd ${WRKSRC}/bubbob; ${PYTHON_CMD} setup.py build_ext -i
# Compile the X-window client extension module
cd ${WRKSRC}/display; ${PYTHON_CMD} setup.py build_ext -i
.for d in bubbob display
@(cd ${WRKSRC}/${d} && ${RM} -fr build)
.endfor
do-install:
@${REINPLACE_CMD} -e 's|%%PYTHON_CMD%%|${PYTHON_CMD}|' \
${WRKDIR}/${PORTNAME}
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
.for d in bubbob common display http2 java metaserver
@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${STAGEDIR}${DATADIR})
.endfor
${INSTALL_SCRIPT} ${WRKSRC}/BubBob.py ${STAGEDIR}${DATADIR}
# build different colors
@${FIND} ${STAGEDIR}${DATADIR} -name "*.ppm" -exec ${CHMOD} u+w {} \;
@${PYTHON_CMD} ${STAGEDIR}${DATADIR}/bubbob/images/buildcolors.py
${LN} -sf ${DATADIR}/http2/data/bob.png \
${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png
.for l in bubbob/statesaver.so display/xshm.so
${CHMOD} u+w ${STAGEDIR}${DATADIR}/${l}
${STRIP_CMD} ${STAGEDIR}${DATADIR}/${l}
.endfor
${INSTALL_MAN} ${WRKSRC}/doc/*.1 ${STAGEDIR}${MAN1PREFIX}/man/man1/
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>