2005-01-27 22:51:25 +01:00
|
|
|
# New ports collection makefile for: bub-n-bros
|
|
|
|
# Date created: 26 January 2005
|
|
|
|
# Whom: Janos Mohacsi <janos.mohacsi@bsd.hu>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= bubbros
|
2009-05-15 23:15:02 +02:00
|
|
|
PORTVERSION= 1.6
|
2010-02-05 12:46:55 +01: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}
|
2005-01-27 22:51:25 +01:00
|
|
|
|
|
|
|
MAINTAINER= janos.mohacsi@bsd.hu
|
|
|
|
COMMENT= Multiplayer clone of the famous Bubble Bobble game
|
|
|
|
|
|
|
|
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/pygame/__init__.py:${PORTSDIR}/devel/py-game
|
2005-01-29 20:27:09 +01:00
|
|
|
BUILD_DEPENDS= ${RUN_DEPENDS}
|
2005-01-27 22:51:25 +01:00
|
|
|
|
|
|
|
USE_PYTHON= yes
|
|
|
|
USE_BZIP2= yes
|
|
|
|
|
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
|
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
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
@${MKDIR} ${DATADIR}
|
2006-12-11 17:37:01 +01:00
|
|
|
(cd ${WRKSRC}; tar --exclude build --exclude "*.orig" --exclude "*.bak" -cf - bubbob common display http2 java metaserver BubBob.py) | \
|
2005-01-27 22:51:25 +01:00
|
|
|
(cd ${DATADIR}; tar --unlink -xf -)
|
|
|
|
@${PRINTF} "#!/bin/sh\ncd ${DATADIR} && \
|
|
|
|
exec ${PYTHON_CMD} ${DATADIR}/BubBob.py\n" > ${WRKDIR}/bubbros.sh
|
|
|
|
# build different colors
|
|
|
|
@${PYTHON_CMD} ${DATADIR}/bubbob/images/buildcolors.py
|
|
|
|
@${INSTALL_SCRIPT} ${WRKDIR}/bubbros.sh ${PREFIX}/bin/bubbros
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
.ifndef(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
2006-08-25 21:56:20 +02:00
|
|
|
(cd ${WRKSRC}/doc; tar -cf - .) | \
|
|
|
|
(cd ${DOCSDIR}; tar --unlink -xf -)
|
2005-01-27 22:51:25 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|