blob: a6b86ca38741c3857b428c5cfdf1af635c4fd577 (
plain) (
blame)
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
53
54
55
56
57
58
|
# Created by: Rusmir Dusko <nemysis@FreeBSD.org>
# $FreeBSD$
PORTNAME= pyggel
PORTVERSION= 0.08
DISTVERSIONSUFFIX= -alpha4c
CATEGORIES= graphics python
MASTER_SITES= GOOGLE_CODE
DISTNAME= ${PORTNAME:tu}-V${DISTVERSION}${DISTVERSIONSUFFIX}
DIST_SUBDIR= python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= nemysis@FreeBSD.org
COMMENT= Python Graphical Game Engine and Libraries
LICENSE= LGPL3 Public_Domain
LICENSE_COMB= dual
LICENSE_NAME_Public_Domain= Public Domain
LICENSE_TEXT_Public_Domain= Public Domain
LICENSE_PERMS_Public_Domain=dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
RUN_DEPENDS= ${PYNUMPY} \
${PYGAME} \
${PYTHON_PKGNAMEPREFIX}opengl>=0:${PORTSDIR}/graphics/py-opengl \
${PYTHON_PKGNAMEPREFIX}imaging>=0:${PORTSDIR}/graphics/py-imaging
USES= dos2unix zip
DOS2UNIX_GLOB= *.mtl *.py *.txt
USE_PYTHON= 2
NO_BUILD= yes
USE_PYDISTUTILS=yes
PYDISTUTILS_AUTOPLIST= yes
PORTDOCS= Readme.txt
PORTEXAMPLES= *
OPTIONS_DEFINE= DOCS EXAMPLES
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e 's|data_files =|#data_files =|' \
${WRKSRC}/setup.py
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.if ${PORT_OPTIONS:MEXAMPLES}
@(cd ${WRKSRC}/examples_and_tutorials && ${COPYTREE_SHARE} . \
${STAGEDIR}${EXAMPLESDIR}/examples_and_tutorials)
@(cd ${WRKSRC} && ${COPYTREE_SHARE} data ${STAGEDIR}${EXAMPLESDIR})
. for f in test_FBO test_camera test_gui test_mesh test_particle test_texture_swap
@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${f}.py ${STAGEDIR}${EXAMPLESDIR})
. endfor
.endif
.include <bsd.port.mk>
|