2005-01-27 21:51:25 +00:00
|
|
|
# New ports collection makefile for: bub-n-bros
|
|
|
|
# Date created: 26 January 2005
|
|
|
|
# Whom: Janos Mohacsi <janos.mohacsi@bsd.hu>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= bubbros
|
|
|
|
PORTVERSION= 1.3
|
|
|
|
CATEGORIES= games
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= bub-n-bros
|
|
|
|
|
|
|
|
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 19:27:09 +00:00
|
|
|
BUILD_DEPENDS= ${RUN_DEPENDS}
|
2005-01-27 21:51:25 +00:00
|
|
|
|
|
|
|
USE_PYTHON= yes
|
|
|
|
USE_BZIP2= yes
|
|
|
|
|
|
|
|
DOC_FILES= Introduction.html download.html help.html INSTALL.txt
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
@${MKDIR} ${DATADIR}
|
|
|
|
(cd ${WRKSRC}; tar --exclude build -cf - bubbob common display http2 java metaserver BubBob.py) | \
|
|
|
|
(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}
|
|
|
|
.for file in ${DOC_FILES}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|