aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/py-pyglet/Makefile
blob: 6bf37d3a579ee1472421a88bdf563ab825c18182 (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
# New ports collection makefile for:    pyglet
# Date created:     12 Aug 2008
# Whom:         Dmitry Marakasov <amdmi3@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   pyglet
PORTVERSION=    1.1.4
CATEGORIES= graphics multimedia x11-toolkits python
MASTER_SITES=   GOOGLE_CODE
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}

MAINTAINER= amdmi3@FreeBSD.org
COMMENT=    Cross-platform windowing and multimedia library for Python

LIB_DEPENDS=    freetype.9:${PORTSDIR}/print/freetype2 \
        fontconfig.1:${PORTSDIR}/x11-fonts/fontconfig

USE_PYTHON= yes
USE_PYDISTUTILS=    yes
USE_GL=     gl glu
USE_OPENAL= al

PORTDOCS=   *
PORTEXAMPLES=   *

.include <bsd.port.pre.mk>

.if ${ARCH} != "i386"
IGNORE=     crashes or doesn't work on !i386
.endif

post-install:
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
    cd ${WRKSRC}/doc && ${COPYTREE_SHARE} \* ${DOCSDIR}
.endif
.if !defined(NOPORTEXAMPLES)
    ${MKDIR} ${EXAMPLESDIR}
    cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \* ${EXAMPLESDIR}
.endif

.include <bsd.port.post.mk>