2002-06-07 08:12:02 +02:00
|
|
|
# New ports collection makefile for: glide3
|
2001-04-01 05:38:41 +02:00
|
|
|
# Date created: 31 Mar 2001
|
|
|
|
# Whom: Nick Sayer <nsayer@freebsd.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2002-06-07 08:12:02 +02:00
|
|
|
PORTNAME= glide3
|
|
|
|
PORTVERSION= 20020113
|
2010-09-15 20:35:24 +02:00
|
|
|
PORTREVISION= 6
|
2001-04-01 05:38:41 +02:00
|
|
|
CATEGORIES= graphics
|
2002-07-30 23:04:00 +02:00
|
|
|
MASTER_SITES= http://people.freebsd.org/~anholt/dri/files/
|
2002-06-07 08:12:02 +02:00
|
|
|
DISTNAME= Glide3-FreeBSD-${PORTVERSION}
|
|
|
|
#The distfile is CVS Glide3-FreeBSD branch with */glide3/tests/* removed
|
|
|
|
|
2004-01-10 22:04:29 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= Library to support 3dfx Voodoo3/4/5/Banshee with the DRI
|
2002-06-07 08:12:02 +02:00
|
|
|
|
2007-07-02 08:15:22 +02:00
|
|
|
USE_BZIP2= yes
|
2007-07-02 21:48:18 +02:00
|
|
|
USE_GMAKE= yes
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
USE_XORG= x11 xxf86dga xxf86vm
|
2006-08-15 01:06:39 +02:00
|
|
|
USE_LDCONFIG= yes
|
2011-03-06 23:57:14 +01:00
|
|
|
USE_AUTOTOOLS= automake autoconf libtool
|
2007-07-02 08:15:22 +02:00
|
|
|
AUTOMAKE_ARGS= -a
|
2007-07-02 21:48:18 +02:00
|
|
|
|
2007-07-02 08:15:22 +02:00
|
|
|
MAKEFILE= makefile.autoconf
|
2007-07-02 21:48:18 +02:00
|
|
|
WRKSRC= ${WRKDIR}/Glide3
|
2002-06-07 08:12:02 +02:00
|
|
|
|
2003-05-12 03:30:29 +02:00
|
|
|
# This Glide3 does not work on alpha, and I don't expect it to work right
|
|
|
|
# on other non-i386 without patches. Further development is going on in
|
|
|
|
# x11-servers/driglide.
|
|
|
|
ONLY_FOR_ARCHS= i386
|
|
|
|
|
|
|
|
# Glide3 DOES NOT work with CFLAGS greater than -O2
|
2004-04-10 19:26:55 +02:00
|
|
|
CFLAGS+= -O
|
2001-04-01 05:38:41 +02:00
|
|
|
|
2004-08-21 01:08:03 +02:00
|
|
|
OPTIONS= VOODOO3 "Enable this if you have a Voodoo3 or Banshee card" off
|
|
|
|
|
2003-12-12 11:43:49 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2011-08-29 05:53:02 +02:00
|
|
|
.if ${OSVERSION} >= 900035
|
|
|
|
BROKEN= Does not compile on recent FreeBSD-9
|
|
|
|
.endif
|
|
|
|
|
2004-08-21 01:08:03 +02:00
|
|
|
.if defined(WITH_VOODOO3)
|
|
|
|
PKGNAMESUFFIX= -v3
|
2001-04-01 05:38:41 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-fx-glide-hw=h3
|
2002-06-07 08:12:02 +02:00
|
|
|
.else
|
2004-08-21 01:08:03 +02:00
|
|
|
PKGNAMESUFFIX= -v5
|
2001-04-01 05:38:41 +02:00
|
|
|
.endif
|
|
|
|
|
2004-05-15 17:31:03 +02:00
|
|
|
pre-configure:
|
2006-02-23 11:40:44 +01:00
|
|
|
@cd ${WRKSRC} && ${ACLOCAL} -I ${LOCALBASE}/share/aclocal
|
|
|
|
@${REINPLACE_CMD} -e '/^_LT_AC_SHELL_INIT/d' ${WRKSRC}/aclocal.m4
|
2007-07-02 08:15:22 +02:00
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|(float \*)pointers +=|pointers += sizeof(float *) *|' \
|
|
|
|
${WRKSRC}/h5/glide3/src/gaa.c \
|
|
|
|
${WRKSRC}/h5/glide3/src/gdraw.c \
|
|
|
|
${WRKSRC}/h5/glide3/src/distrip.c
|
2001-04-01 05:38:41 +02:00
|
|
|
|
2003-12-12 11:43:49 +01:00
|
|
|
.include <bsd.port.post.mk>
|