2007-10-08 04:22:38 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.18 2007/10/08 08:22:40 steven Exp $
|
2004-01-29 12:13:37 -05:00
|
|
|
|
2006-06-03 05:19:52 -04:00
|
|
|
SHARED_ONLY= Yes
|
2003-08-08 17:48:58 -04:00
|
|
|
|
2007-09-15 22:52:56 -04:00
|
|
|
COMMENT= set of Python modules designed for writing games
|
2003-08-08 17:48:58 -04:00
|
|
|
|
2006-10-17 19:31:12 -04:00
|
|
|
DISTNAME= pygame-1.7.1release
|
2007-10-08 04:22:38 -04:00
|
|
|
PKGNAME= ${DISTNAME:S/release//}p1
|
2003-08-08 17:48:58 -04:00
|
|
|
CATEGORIES= devel games
|
|
|
|
HOMEPAGE= http://www.pygame.org/
|
|
|
|
|
|
|
|
# LGPL
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2006-10-18 20:35:03 -04: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
|
|
|
|
|
2006-11-11 16:04:27 -05:00
|
|
|
USE_X11= Yes
|
|
|
|
|
2003-08-08 17:48:58 -04:00
|
|
|
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:
|
2006-10-17 19:31:12 -04:00
|
|
|
@perl -pi -e "s,!!X11BASE!!,${X11BASE},g" ${WRKSRC}/Setup.in
|
2003-08-08 17:48:58 -04:00
|
|
|
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MODPY_BIN} config.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
|
2006-10-17 19:31:12 -04:00
|
|
|
@perl -pi -e 's,/usr/bin/env python,/usr/bin/env python${MODPY_VERSION},g' \
|
|
|
|
${PREFIX}/share/examples/pygame/*.py
|
2003-08-08 17:48:58 -04:00
|
|
|
|
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>
|