mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-29 01:13:08 +00:00
59 lines
1.4 KiB
Makefile
59 lines
1.4 KiB
Makefile
# Created by: Maxim Sobolev <sobomax@FreeBSD.org>
|
|
|
|
PORTNAME= game
|
|
DISTVERSION= 2.0.1
|
|
CATEGORIES= devel python
|
|
MASTER_SITES= CHEESESHOP
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
DISTNAME= py${PORTNAME}-${PORTVERSION}
|
|
|
|
MAINTAINER= wen@FreeBSD.org
|
|
COMMENT= Module designed to write games in Python
|
|
|
|
LICENSE= LGPL21
|
|
LICENSE_FILE= ${WRKSRC}/docs/LGPL.txt
|
|
|
|
BUILD_DEPENDS= v4l_compat>0:multimedia/v4l_compat
|
|
LIB_DEPENDS= libfreetype.so:print/freetype2 \
|
|
libpng.so:graphics/png \
|
|
libsmpeg.so:multimedia/smpeg
|
|
RUN_DEPENDS= ${PYNUMPY} \
|
|
v4l_compat>0:multimedia/v4l_compat
|
|
|
|
USES= compiler:c11 jpeg pkgconfig python:3.6+ sdl xorg
|
|
USE_SDL= sdl2 ttf2 image2 mixer2
|
|
USE_PYTHON= autoplist distutils
|
|
USE_XORG= x11
|
|
|
|
SDLNOX11= sdl-nox11-[0-9]*
|
|
|
|
DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME}
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
|
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
|
|
|
PORTDOCS= *
|
|
PORTEXAMPLES= *
|
|
|
|
post-extract:
|
|
@${RM} -r ${WRKSRC}/examples/.editorconfig
|
|
|
|
post-install-EXAMPLES-on:
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
#Remove Un-needed macosx files
|
|
@${RM} -r ${WRKSRC}/examples/macosx
|
|
${TAR} -C ${WRKSRC}/examples -cf - . | \
|
|
${TAR} --unlink -C ${STAGEDIR}${EXAMPLESDIR} -xf -
|
|
|
|
post-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${TAR} -C ${WRKSRC}/docs -cf - . | \
|
|
${TAR} --unlink -C ${STAGEDIR}${DOCSDIR} -xf -
|
|
|
|
post-install:
|
|
${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/pygame/*.so
|
|
${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/pygame/_sdl2/*.so
|
|
|
|
.include <bsd.port.mk>
|