2005-03-14 10:12:56 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.8 2005/03/14 15:12:56 xsa Exp $
|
2004-01-29 12:13:37 -05:00
|
|
|
|
|
|
|
NOT_FOR_ARCHS= ${NO_SHARED_ARCHS}
|
2005-02-28 02:36:49 -05:00
|
|
|
.if ${MACHINE_ARCH} == "alpha"
|
|
|
|
BROKEN= "smpeg"
|
|
|
|
.endif
|
2003-08-08 17:48:58 -04:00
|
|
|
|
|
|
|
COMMENT= "set of Python modules designed for writing games"
|
|
|
|
|
2004-04-10 19:08:11 -04:00
|
|
|
DISTNAME= pygame-1.6
|
2005-03-14 10:12:56 -05:00
|
|
|
PKGNAME= ${DISTNAME}p0
|
2003-08-08 17:48:58 -04:00
|
|
|
CATEGORIES= devel games
|
|
|
|
HOMEPAGE= http://www.pygame.org/
|
|
|
|
|
2004-01-30 03:39:48 -05:00
|
|
|
MAINTAINER= Xavier Santolaria <xsa@openbsd.org>
|
2003-08-08 17:48:58 -04:00
|
|
|
|
|
|
|
# LGPL
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2004-11-23 19:11:03 -05:00
|
|
|
WANTLIB= SDL X11 Xext m smpeg usbhid
|
2003-08-08 17:48:58 -04:00
|
|
|
|
|
|
|
MASTER_SITES= ${HOMEPAGE}ftp/
|
|
|
|
|
2004-08-03 10:27:33 -04:00
|
|
|
MODULES= lang/python
|
2003-08-08 17:48:58 -04:00
|
|
|
|
|
|
|
BUILD_DEPENDS+= :py-Numeric-*:math/py-Numeric
|
|
|
|
|
|
|
|
LIB_DEPENDS= SDL_ttf::devel/sdl-ttf \
|
|
|
|
SDL_image::devel/sdl-image \
|
|
|
|
SDL_mixer::devel/sdl-mixer
|
|
|
|
|
|
|
|
MAKE_ENV+= LOCALBASE="${LOCALBASE}" \
|
|
|
|
SDL_CONFIG="${LOCALBASE}/bin/sdl-config"
|
|
|
|
|
|
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/pygame
|
|
|
|
DOCDIR= ${PREFIX}/share/doc/pygame
|
|
|
|
DOCSUBDIRS= ref tut tut/chimp tut/surfarray \
|
|
|
|
tut/tom util
|
|
|
|
|
|
|
|
do-configure:
|
|
|
|
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MODPY_BIN} config.py
|
|
|
|
|
|
|
|
post-build:
|
|
|
|
@perl -pi -e 's,/usr/bin/env python,/usr/bin/env python${MODPY_VERSION},g' \
|
|
|
|
${WRKSRC}/examples/*.py
|
|
|
|
@perl -pi -e 's,%%PYTHON%%,python${MODPY_VERSION},g' ${WRKSRC}/examples/*.py
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${EXAMPLESDIR}
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/examples/*.py ${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/readme.txt ${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA_DIR} ${EXAMPLESDIR}/data
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/examples/data/* ${EXAMPLESDIR}/data
|
|
|
|
${INSTALL_DATA_DIR} ${DOCDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/readme.* ${DOCDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/*.{gif,html} ${DOCDIR}
|
|
|
|
.for i in ${DOCSUBDIRS}
|
|
|
|
${INSTALL_DATA_DIR} ${DOCDIR}/$i
|
|
|
|
${INSTALL_DATA} `find ${WRKSRC}/docs/$i -maxdepth 1 -type f` \
|
|
|
|
${DOCDIR}/$i
|
|
|
|
.endfor
|
|
|
|
|
2004-04-10 19:08:11 -04:00
|
|
|
do-regress: fake
|
|
|
|
@cd ${WRKSRC} && ${MAKE_ENV} \
|
|
|
|
PYTHONPATH=${WRKINST}${MODPY_SITEPKG} \
|
|
|
|
${MODPY_BIN} ./run_tests.py
|
2003-08-08 17:48:58 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|