aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/py-opengl/Makefile
blob: 56999d717772a4065a6651441601deb32b662f84 (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
59
60
61
62
63
64
65
66
67
68
# New ports collection makefile for:    PyOpenGL
# Date created:     Wed Aug 18 18:49:17 EDT 1999
# Whom:         Randall Hopper <aa8vb@ipass.net>
#
# $FreeBSD$
#

PORTNAME=   opengl
PORTVERSION=    1.5.5
CATEGORIES= graphics python
MASTER_SITES=   http://www.ipass.net/~dbhopper/aa8vb/TMP/ \
        http://starship.python.net/crew/da/
PKGNAMEPREFIX=  py-
DISTNAME=   PyOpenGL-${PORTVERSION}

MAINTAINER= aa8vb@ipass.net

BUILD_DEPENDS=  python:${PORTSDIR}/lang/python \
        ${NUMPYDIR}/Numeric.py:${PORTSDIR}/math/numpy
RUN_DEPENDS=    python:${PORTSDIR}/lang/python \
        ${NUMPYDIR}/Numeric.py:${PORTSDIR}/math/numpy
LIB_DEPENDS=    GL.14:${PORTSDIR}/graphics/Mesa3

ALL_TARGET= default

WRKSRC=     ${WRKDIR}/${DISTNAME}/src

OSMAJOR!=   /usr/bin/uname -r | sed -e 's/\..*//'
PLIST_SUB+= OSMAJOR=${OSMAJOR}

#
# Support for Numeric is compiled in by default.
#
NUMPYDIR=   ${LOCALBASE}/lib/python1.5/site-packages/Numeric

#
# The standard setup file
#
SETUP_FILES=    ${FILESDIR}/Setup.base

#
# Support for Togl is compiled in by default.
#
.if !defined(WITHOUT_TOGL)
SETUP_FILES+=   ${FILESDIR}/Setup.add.togl
LIB_DEPENDS+=   tk82.1:${PORTSDIR}/x11-toolkits/tk82
.endif

.include <bsd.port.pre.mk>

do-configure:
    ${CAT} ${SETUP_FILES} \
      | ${SED} -e 's|X11BASE|${X11BASE}|g' \
            -e 's|LOCALBASE|${LOCALBASE}|g' \
      > ${WRKSRC}/Setup.proto

do-build:
    @(cd ${WRKSRC} && ${CONFIGURE_ENV} python BUILD.py)

pre-install:
    @# Remove togl.so so we don't install it; that's the Togl pkg's job
    ${RM} -f ${WRKSRC}/togl.so
    find ${WRKDIR} -name '*.so*' | xargs strip

do-install:
    @(cd ${WRKSRC} && ${CONFIGURE_ENV} python INSTALL.py)

.include <bsd.port.post.mk>