2000-05-22 14:43:22 +00:00
|
|
|
# New ports collection makefile for: utah-glx
|
|
|
|
# Date created: 13 September 1999
|
|
|
|
# Whom: Marc E E van Woerkom <van.woerkom@netcologne.de>
|
1999-12-04 22:54:47 +00:00
|
|
|
#
|
1999-12-06 02:25:19 +00:00
|
|
|
# $FreeBSD$
|
1999-12-04 22:54:47 +00:00
|
|
|
#
|
|
|
|
|
2000-05-22 14:43:22 +00:00
|
|
|
PORTNAME= utah-glx
|
2000-12-05 17:48:03 +00:00
|
|
|
PORTVERSION= 0.9.20001128
|
1999-12-04 22:54:47 +00:00
|
|
|
CATEGORIES= graphics
|
2000-06-21 16:24:14 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL}
|
|
|
|
MASTER_SITE_SUBDIR= sobomax
|
1999-12-04 22:54:47 +00:00
|
|
|
|
2000-05-22 14:43:22 +00:00
|
|
|
MAINTAINER= 3d@FreeBSD.org
|
1999-12-04 22:54:47 +00:00
|
|
|
|
2000-11-06 08:18:46 +00:00
|
|
|
BUILD_DEPENDS= tclsh8.3:${PORTSDIR}/lang/tcl83 \
|
2000-05-22 14:43:22 +00:00
|
|
|
autoconf:${PORTSDIR}/devel/autoconf \
|
|
|
|
nonexistent:${PORTSDIR}/graphics/Mesa3:patch
|
1999-12-04 22:54:47 +00:00
|
|
|
|
2000-05-22 14:43:22 +00:00
|
|
|
USE_X_PREFIX= yes
|
|
|
|
USE_GMAKE= yes
|
1999-12-04 22:54:47 +00:00
|
|
|
USE_BZIP2= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
|
2000-05-22 14:43:22 +00:00
|
|
|
GLVER?= 14
|
|
|
|
GLUTVER?= 3
|
1999-12-04 22:54:47 +00:00
|
|
|
|
2000-06-26 13:45:28 +00:00
|
|
|
AGP_DEVICE= /dev/agpgart
|
|
|
|
|
|
|
|
CFLAGS+= -DAGP_DEVICE=\\\"${AGP_DEVICE}\\\"
|
2000-05-22 14:43:22 +00:00
|
|
|
CONFIGURE_SCRIPT=autogen.sh
|
|
|
|
CONFIGURE_ARGS= --enable-extra \
|
2000-08-25 09:27:55 +00:00
|
|
|
--with-mesa=${WRKDIRPREFIX}${.CURDIR}/../../graphics/Mesa3/work/Mesa-3.2.1 \
|
2000-05-22 14:43:22 +00:00
|
|
|
--sysconfdir=${PREFIX}/etc \
|
|
|
|
--with-moduledir=${PREFIX}/lib/modules
|
2000-11-06 08:18:46 +00:00
|
|
|
CONFIGURE_ENV= TCLSH="tclsh8.3"
|
2000-05-22 14:43:22 +00:00
|
|
|
MAKE_ENV= GLVER="${GLVER}" GLUTVER="${GLUTVER}"
|
|
|
|
PLIST_SUB= GLVER="${GLVER}" GLUTVER="${GLUTVER}"
|
1999-12-04 22:54:47 +00:00
|
|
|
|
2000-05-22 14:43:22 +00:00
|
|
|
.if defined(DEBUG)
|
|
|
|
CFLAGS+= -g
|
|
|
|
CONFIGURE_ARGS+=--enable-debug
|
1999-12-04 22:54:47 +00:00
|
|
|
.endif
|
|
|
|
|
2000-05-22 14:43:22 +00:00
|
|
|
ALL_TARGET= depend all
|
1999-12-04 22:54:47 +00:00
|
|
|
|
2000-05-22 14:43:22 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
1999-12-04 22:54:47 +00:00
|
|
|
|
2000-09-04 12:32:19 +00:00
|
|
|
.if ${XFREE86_VERSION} > 3
|
|
|
|
BROKEN= "Requires XFree86 3.3.* - will not work with XFree86 4.*"
|
|
|
|
.endif
|
1999-12-04 22:54:47 +00:00
|
|
|
|
2000-06-26 13:45:28 +00:00
|
|
|
pre-build:
|
|
|
|
@find ${WRKSRC} -type f | xargs grep -l linux/agpgart | \
|
|
|
|
xargs perl -pi -e "s|linux/agpgart|sys/agpio|"
|
|
|
|
|
1999-12-04 22:54:47 +00:00
|
|
|
pre-install:
|
2000-09-04 12:32:19 +00:00
|
|
|
.if exists(${PREFIX}/lib/libGL.so.${GLVER}) && !defined(GL_CHECK_OVERRIDE) && !defined(PACKAGE_BUILDING)
|
2000-05-22 14:43:22 +00:00
|
|
|
@${ECHO_MSG}
|
|
|
|
@${ECHO_MSG} "ERROR: It seems that another GL implementation currently installed in"
|
|
|
|
@${ECHO_MSG} " ${PREFIX}/lib/libGL.so.${GLVER}"
|
|
|
|
@${ECHO_MSG}
|
|
|
|
@${ECHO_MSG} " You have to deinstall it prior to Utah-Glx installation."
|
|
|
|
@${ECHO_MSG}
|
|
|
|
@false
|
|
|
|
.endif
|
1999-12-04 22:54:47 +00:00
|
|
|
|
|
|
|
post-install:
|
2000-06-26 13:45:28 +00:00
|
|
|
.if exists(/usr/include/sys/agpio.h)
|
|
|
|
@${ECHO_MSG}
|
|
|
|
@${ECHO_MSG} "The module has been built with experimental AGP support. To use it you should"
|
2000-09-04 12:32:19 +00:00
|
|
|
@${ECHO_MSG} "create device node for agp driver (cd /dev ; sh MAKEDEV agpgart) and enable"
|
2000-06-26 13:45:28 +00:00
|
|
|
@${ECHO_MSG} "AGP support in ${PREFIX}/etc/glx.conf file."
|
|
|
|
@${ECHO_MSG}
|
|
|
|
.endif
|
2000-05-22 14:43:22 +00:00
|
|
|
${MKDIR} ${PREFIX}/share/doc/utah-glx
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/docs/README.* ${PREFIX}/share/doc/utah-glx
|
1999-12-04 22:54:47 +00:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|