Lines 3-8
Link Here
|
3 |
|
3 |
|
4 |
PORTNAME= pyglet |
4 |
PORTNAME= pyglet |
5 |
PORTVERSION= 1.1.4 |
5 |
PORTVERSION= 1.1.4 |
|
|
6 |
PORTREVISION= 1 |
6 |
CATEGORIES= graphics multimedia x11-toolkits python |
7 |
CATEGORIES= graphics multimedia x11-toolkits python |
7 |
MASTER_SITES= GOOGLE_CODE |
8 |
MASTER_SITES= GOOGLE_CODE |
8 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
9 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
Lines 10-17
Link Here
|
10 |
MAINTAINER= amdmi3@FreeBSD.org |
11 |
MAINTAINER= amdmi3@FreeBSD.org |
11 |
COMMENT= Cross-platform windowing and multimedia library for Python |
12 |
COMMENT= Cross-platform windowing and multimedia library for Python |
12 |
|
13 |
|
13 |
LIB_DEPENDS= freetype:${PORTSDIR}/print/freetype2 \ |
14 |
LICENSE= BSD |
14 |
fontconfig:${PORTSDIR}/x11-fonts/fontconfig |
15 |
|
|
|
16 |
LIB_DEPENDS= libfreetype.so:${PORTSDIR}/print/freetype2 \ |
17 |
libfontconfig.so:${PORTSDIR}/x11-fonts/fontconfig |
18 |
RUN_DEPENDS= avbin>=0:${PORTSDIR}/multimedia/avbin |
15 |
|
19 |
|
16 |
USE_PYTHON= yes |
20 |
USE_PYTHON= yes |
17 |
USE_PYDISTUTILS= yes |
21 |
USE_PYDISTUTILS= yes |
Lines 19-41
Link Here
|
19 |
USE_OPENAL= al |
23 |
USE_OPENAL= al |
20 |
|
24 |
|
21 |
PORTDOCS= * |
25 |
PORTDOCS= * |
|
|
26 |
|
27 |
DOCSRCDIR1= ${WRKSRC} |
28 |
DOC_FILES1= CHANGELOG NOTICE README |
29 |
|
30 |
DOCSRCDIR2= ${WRKSRC}/doc |
31 |
DOCSDIR2= ${DOCSDIR}/doc |
32 |
|
22 |
PORTEXAMPLES= * |
33 |
PORTEXAMPLES= * |
23 |
|
34 |
|
24 |
NO_STAGE= yes |
35 |
OPTIONS_DEFINE= DOCS |
|
|
36 |
OPTIONS_GROUP= DEMOS_EXAMPLES |
37 |
OPTIONS_GROUP_DEMOS_EXAMPLES= DEMOS EXAMPLES |
38 |
OPTIONS_DEFAULT= DEMOS |
39 |
DEMOS_DESC= Install Demos programs, requires EXAMPLES |
40 |
|
41 |
OPTIONS_SUB= yes |
42 |
|
25 |
.include <bsd.port.options.mk> |
43 |
.include <bsd.port.options.mk> |
26 |
|
44 |
|
27 |
.if ${ARCH} != "i386" |
45 |
.if ${PORT_OPTIONS:MDEMOS} && ${PORT_OPTIONS:MEXAMPLES} |
28 |
IGNORE= crashes or doesn't work on !i386 |
46 |
SUB_FILES+= pkg-message pyglet-astraea pyglet-noisy |
|
|
47 |
DESKTOP_ENTRIES+="Astraea" "A sprite-based game loosely based on the classic Asteroids" "pyglet-astraea" \ |
48 |
"pyglet-astraea" "Game;ArcadeGame;" false |
49 |
DESKTOP_ENTRIES+="Noisy" "Bounces balls around a window and plays noises" "pyglet-noisy" \ |
50 |
"pyglet-noisy" "Game;ArcadeGame;" false |
51 |
# Sound Space not works, needs working AVbin |
29 |
.endif |
52 |
.endif |
30 |
|
53 |
|
|
|
54 |
post-patch: |
55 |
@${FIND} ${WRKSRC} -name '*.py' | ${XARGS} \ |
56 |
${REINPLACE_CMD} -e 's|/usr/include|${PREFIX}/include|g' |
57 |
@${FIND} ${WRKSRC} -name "*.bak" -delete |
58 |
|
31 |
post-install: |
59 |
post-install: |
32 |
.if ${PORT_OPTIONS:MDOCS} |
60 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |
33 |
${MKDIR} ${DOCSDIR} |
61 |
${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${STAGEDIR}${DOCSDIR} |
34 |
cd ${WRKSRC}/doc && ${COPYTREE_SHARE} \* ${DOCSDIR} |
62 |
@${MKDIR} ${STAGEDIR}${DOCSDIR2} |
35 |
.endif |
63 |
@(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR2}) |
36 |
.if ${PORT_OPTIONS:MEXAMPLES} |
64 |
|
37 |
${MKDIR} ${EXAMPLESDIR} |
65 |
@(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}) |
38 |
cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \* ${EXAMPLESDIR} |
66 |
|
|
|
67 |
.if ${PORT_OPTIONS:MDEMOS} && ${PORT_OPTIONS:MEXAMPLES} |
68 |
${INSTALL_SCRIPT} ${WRKDIR}/pyglet-astraea ${STAGEDIR}${PREFIX}/bin/ |
69 |
${INSTALL_SCRIPT} ${WRKDIR}/pyglet-noisy ${STAGEDIR}${PREFIX}/bin/ |
70 |
${LN} -sf ${EXAMPLESDIR}/astraea/res/asteroid2.png ${STAGEDIR}${PREFIX}/share/pixmaps/pyglet-astraea.png |
71 |
${LN} -sf ${EXAMPLESDIR}/noisy/ball.png ${STAGEDIR}${PREFIX}/share/pixmaps/pyglet-noisy.png |
39 |
.endif |
72 |
.endif |
40 |
|
73 |
|
41 |
.include <bsd.port.mk> |
74 |
.include <bsd.port.mk> |