aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/mesagl/Makefile
blob: 8923de91b682b748d00f1101bf20dfece4a4881b (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
# New ports collection makefile for:    Mesa
# Date created:         Tue Feb  7 12:02:49  1995
# Whom:                 hsu
#
# $FreeBSD$
#

PORTNAME=   Mesa
PORTVERSION=    3.1
CATEGORIES= graphics
MASTER_SITES=   http://download.sourceforge.net/mesa3d/ \
        ftp://iris.ssec.wisc.edu/pub/Mesa/ \
        ftp://ftp.fu-berlin.de/pub/unix/X11/graphics/Mesa/
DISTFILES=  MesaLib-${PORTVERSION}${EXTRACT_SUFX} \
        MesaDemos-${PORTVERSION}${EXTRACT_SUFX}

MAINTAINER= jseger@FreeBSD.org

.if defined(WANT_GGI)
LIB_DEPENDS=    ggi.2:${PORTSDIR}/graphics/libggi
CONFIGURE_ARGS+=--with-ggi=${LOCALBASE}
.endif

GLVER=      14
GLUTVER=    3
WRKSRC=     ${WRKDIR}/${PKGNAME}
USE_X_PREFIX=   yes
GNU_CONFIGURE=  yes
USE_LIBTOOL=    yes
CONFIGURE_ENV+= GLVER="${GLVER}" GLUTVER="${GLUTVER}"
PLIST_SUB=  GLVER="${GLVER}" GLUTVER="${GLUTVER}"

post-install:
.for lib in GL GLU
    @${LN} -sf ${PREFIX}/lib/lib${lib}.so ${PREFIX}/lib/libMesa${lib}.so
.endfor

.include <bsd.port.mk>