blob: cda834d649fa660f906463dd05687af6b53a9f27 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Created by: Maxim Sobolev <sobomax@FreeBSD.org>
# $FreeBSD$
PORTNAME= game
DISTVERSION= 1.9.6
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
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= jpeg python sdl
USE_SDL= ttf image mixer
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-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 -
.include <bsd.port.mk>
|