summaryrefslogtreecommitdiff
path: root/graphics/glide3/Makefile
blob: 63c42a6a8499ece503aca60f8a818d9a2b9406ec (plain)
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
# New ports collection makefile for:	glide3
# Date created:				31 Mar 2001
# Whom:					Nick Sayer <nsayer@freebsd.org>
#
# $FreeBSD$
#

PORTNAME=	glide3
PORTVERSION=	20020113
PORTREVISION=	1
CATEGORIES=	graphics
MASTER_SITES=	http://people.freebsd.org/~anholt/dri/files/
DISTNAME=	Glide3-FreeBSD-${PORTVERSION}
EXTRACT_SUFX=	.tar.bz2
#The distfile is CVS Glide3-FreeBSD branch with */glide3/tests/* removed

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Library to support 3dfx Voodoo3/4/5/Banshee with the DRI

USE_BZIP2=		yes
WRKSRC=			${WRKDIR}/Glide3
USE_X_PREFIX=		yes
INSTALLS_SHLIB=		yes
USE_AUTOTOOLS=	automake:14 autoconf:253 libtool:13:inc
AUTOMAKE_ARGS=		-a
USE_GMAKE=		yes
MAKEFILE=		makefile.autoconf

# 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
CFLAGS+=	-O

OPTIONS=	VOODOO3 "Enable this if you have a Voodoo3 or Banshee card" off

.include <bsd.port.pre.mk>

.if defined(WITH_VOODOO3)
PKGNAMESUFFIX=	-v3
CONFIGURE_ARGS+=	--enable-fx-glide-hw=h3
.else
PKGNAMESUFFIX=	-v5
.endif

pre-configure:
	cd ${WRKSRC} && ${ACLOCAL} -I ${LOCALBASE}/share/aclocal

.include <bsd.port.post.mk>