2013-01-09 20:50:06 +01:00
|
|
|
# Created by: Janos Mohacsi <janos.mohacsi@bsd.hu>
|
2005-01-27 22:51:25 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= bubbros
|
2014-08-06 22:58:15 +02:00
|
|
|
PORTVERSION= 1.6.2
|
2017-04-20 17:45:54 +02:00
|
|
|
PORTREVISION= 2
|
2005-01-27 22:51:25 +01:00
|
|
|
CATEGORIES= games
|
2009-08-22 02:23:13 +02:00
|
|
|
MASTER_SITES= SF/bub-n-bros/bub-n-bros/${PORTVERSION}
|
2014-08-06 22:58:15 +02:00
|
|
|
DIST_SUBDIR= python
|
2005-01-27 22:51:25 +01:00
|
|
|
|
2014-10-31 17:11:33 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2005-01-27 22:51:25 +01:00
|
|
|
COMMENT= Multiplayer clone of the famous Bubble Bobble game
|
|
|
|
|
2014-08-06 22:58:15 +02:00
|
|
|
LICENSE= MIT
|
2014-11-29 00:35:05 +01:00
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
|
2014-08-06 22:58:15 +02:00
|
|
|
|
|
|
|
RUN_DEPENDS= ${PYGAME}
|
2016-06-07 11:03:52 +02:00
|
|
|
BUILD_DEPENDS= ${PYGAME}
|
2005-01-27 22:51:25 +01:00
|
|
|
|
2017-12-11 17:54:20 +01:00
|
|
|
USES= python:2.7 shebangfix
|
2017-04-20 17:45:54 +02:00
|
|
|
SHEBANG_FILES= BubBob.py
|
|
|
|
USE_XORG= x11 xext
|
2005-01-27 22:51:25 +01:00
|
|
|
|
2014-08-06 22:58:15 +02:00
|
|
|
PORTDOCS= *.html
|
|
|
|
|
|
|
|
SUB_FILES= ${PORTNAME}
|
|
|
|
|
|
|
|
DESKTOP_ENTRIES="Bub-n-Bros" "" "${PORTNAME}" \
|
|
|
|
"${PORTNAME}" "Game;ArcadeGame;" ""
|
|
|
|
|
2016-06-07 11:03:52 +02:00
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
|
2006-12-11 17:37:01 +01:00
|
|
|
post-patch:
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|/usr/X11R6|${LOCALBASE}|g' \
|
2006-12-09 14:17:54 +01:00
|
|
|
${WRKSRC}/display/setup.py
|
2014-08-06 22:58:15 +02:00
|
|
|
@${FIND} ${WRKSRC} -name "*.bak" -delete -or -name "*.orig" -delete \
|
|
|
|
-or -name "*.cvsignore" -delete
|
2016-10-21 14:51:40 +02:00
|
|
|
@${FIND} ${WRKSRC} -name CVS -print0 | ${XARGS} -0 ${RM} -r
|
2006-12-11 17:37:01 +01:00
|
|
|
|
|
|
|
do-build:
|
2005-01-27 22:51:25 +01:00
|
|
|
# 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
|
2014-08-06 22:58:15 +02:00
|
|
|
.for d in bubbob display
|
2016-10-21 14:51:40 +02:00
|
|
|
@(cd ${WRKSRC}/${d} && ${RM} -r build)
|
2014-08-06 22:58:15 +02:00
|
|
|
.endfor
|
2005-01-27 22:51:25 +01:00
|
|
|
|
|
|
|
do-install:
|
2014-08-06 22:58:15 +02:00
|
|
|
${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}
|
2005-01-27 22:51:25 +01:00
|
|
|
# build different colors
|
2014-11-29 00:35:05 +01:00
|
|
|
@${FIND} ${STAGEDIR}${DATADIR} -name "*.ppm" -exec ${CHMOD} u+w {} \;
|
2014-08-06 22:58:15 +02:00
|
|
|
@${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
|
2016-06-07 11:03:52 +02:00
|
|
|
@${CHMOD} u+w ${STAGEDIR}${DATADIR}/${l}
|
|
|
|
@${STRIP_CMD} ${STAGEDIR}${DATADIR}/${l}
|
2014-08-06 22:58:15 +02:00
|
|
|
.endfor
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/*.1 ${STAGEDIR}${MAN1PREFIX}/man/man1/
|
2016-06-07 11:03:52 +02:00
|
|
|
|
|
|
|
do-install-DOCS-on:
|
2014-08-06 22:58:15 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|} ${STAGEDIR}${DOCSDIR}
|
2005-01-27 22:51:25 +01:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|