summaryrefslogtreecommitdiffstats
path: root/graphics/mesagl/Makefile
blob: 5781bf2fc0dcdab6f637fe9b9482776637c13c48 (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:    Mesa
# Version required:     3.0
# Date created:         Tue Feb  7 12:02:49  1995
# Whom:                 hsu
#
# $Id: Makefile,v 1.28 1998/09/26 23:33:10 steve Exp $
#

DISTNAME=       MesaLib-3.0
PKGNAME=	Mesa-3.0
CATEGORIES=	graphics
MASTER_SITES= 	ftp://iris.ssec.wisc.edu/pub/Mesa/ \
		ftp://ftp.fu-berlin.de/pub/unix/X11/graphics/Mesa/
DISTFILES=	${DISTNAME}${EXTRACT_SUFX} MesaDemos-3.0.tar.gz

MAINTAINER=	jseger@FreeBSD.ORG

WRKSRC=		${WRKDIR}/Mesa-3.0

USE_X_PREFIX=	yes
LIBS=		libMesaGL libMesaGLU

do-install:
.for file in ${LIBS}
	${INSTALL_DATA} ${WRKSRC}/lib/${file}.a ${PREFIX}/lib
	${INSTALL_DATA} ${WRKSRC}/lib/${file}.so.${SHLIB_VERSION} ${PREFIX}/lib
	${LN} -fs ${file}.so.${SHLIB_VERSION} ${PREFIX}/lib/${file}.so
.endfor
	${INSTALL_DATA} ${WRKSRC}/lib/libglut.a ${PREFIX}/lib
	${INSTALL_DATA} ${WRKSRC}/lib/libglut.so.${GLUT_VERSION} ${PREFIX}/lib
	${LN} -fs libglut.so.${GLUT_VERSION} ${PREFIX}/lib/libglut.so
.for file in GL GLU
	@${LN} -fs libMesa${file}.a ${PREFIX}/lib/lib${file}.a
	@${LN} -fs libMesa${file}.so.${SHLIB_VERSION} ${PREFIX}/lib/lib${file}.so.${SHLIB_VERSION}
	@${LN} -fs libMesa${file}.so ${PREFIX}/lib/lib${file}.so
.endfor
	@${MKDIR} ${PREFIX}/include/GL
	${INSTALL_DATA} ${WRKSRC}/include/GL/* ${PREFIX}/include/GL
	${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib

.include <bsd.port.mk>

.if ${PORTOBJFORMAT} == "elf"
ALL_TARGET=	freebsd-elf
SHLIB_VERSION=	14
GLUT_VERSION=	3
.else
ALL_TARGET=	freebsd
SHLIB_VERSION=	14.0
GLUT_VERSION=	3.7
.endif
OpenPOWER on IntegriCloud