1999-11-07 16:59:55 +00:00
|
|
|
# New ports collection makefile for: PyOpenGL
|
|
|
|
# Date created: Wed Aug 18 18:49:17 EDT 1999
|
|
|
|
# Whom: Randall Hopper <aa8vb@ipass.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-04-14 10:48:02 +00:00
|
|
|
PORTNAME= opengl
|
|
|
|
PORTVERSION= 1.5.5
|
1999-11-07 16:59:55 +00:00
|
|
|
CATEGORIES= graphics python
|
2000-05-16 09:07:56 +00:00
|
|
|
MASTER_SITES= http://www.ipass.net/~dbhopper/aa8vb/TMP/ \
|
|
|
|
http://starship.python.net/crew/da/
|
2000-04-14 10:48:02 +00:00
|
|
|
PKGNAMEPREFIX= py-
|
|
|
|
DISTNAME= PyOpenGL-${PORTVERSION}
|
1999-11-07 16:59:55 +00:00
|
|
|
|
|
|
|
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
|
2000-03-20 23:25:21 +00:00
|
|
|
LIB_DEPENDS= GL.14:${PORTSDIR}/graphics/Mesa3
|
1999-11-07 16:59:55 +00:00
|
|
|
|
|
|
|
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.
|
|
|
|
#
|
2000-05-16 09:07:56 +00:00
|
|
|
NUMPYDIR= ${LOCALBASE}/lib/python1.5/site-packages/Numeric
|
1999-11-07 16:59:55 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# The standard setup file
|
|
|
|
#
|
|
|
|
SETUP_FILES= ${FILESDIR}/Setup.base
|
|
|
|
|
|
|
|
#
|
|
|
|
# Support for Togl is compiled in by default.
|
|
|
|
#
|
2000-04-17 00:18:05 +00:00
|
|
|
.if !defined(WITHOUT_TOGL)
|
1999-11-07 16:59:55 +00:00
|
|
|
SETUP_FILES+= ${FILESDIR}/Setup.add.togl
|
1999-11-28 18:32:45 +00:00
|
|
|
LIB_DEPENDS+= tk82.1:${PORTSDIR}/x11-toolkits/tk82
|
1999-11-07 16:59:55 +00:00
|
|
|
.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>
|