1995-02-07 16:58:10 -05:00
|
|
|
# New ports collection makefile for: Mesa
|
1998-09-30 22:17:49 -04:00
|
|
|
# Version required: 3.0
|
1997-09-30 15:20:06 -04:00
|
|
|
# Date created: Tue Feb 7 12:02:49 1995
|
|
|
|
# Whom: hsu
|
1995-02-07 16:58:10 -05:00
|
|
|
#
|
1999-08-25 02:16:32 -04:00
|
|
|
# $FreeBSD$
|
1995-02-07 16:58:10 -05:00
|
|
|
#
|
1996-12-06 18:28:02 -05:00
|
|
|
|
1998-09-30 22:17:49 -04:00
|
|
|
DISTNAME= MesaLib-3.0
|
|
|
|
PKGNAME= Mesa-3.0
|
1996-11-18 06:44:27 -05:00
|
|
|
CATEGORIES= graphics
|
1998-09-30 22:17:49 -04:00
|
|
|
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
|
1996-12-06 18:28:02 -05:00
|
|
|
|
1997-11-01 08:46:11 -05:00
|
|
|
MAINTAINER= jseger@FreeBSD.ORG
|
1997-11-21 21:06:47 -05:00
|
|
|
|
1998-07-25 09:08:38 -04:00
|
|
|
WRKSRC= ${WRKDIR}/Mesa-3.0
|
1998-07-20 06:14:24 -04:00
|
|
|
|
1998-08-05 05:31:52 -04:00
|
|
|
USE_X_PREFIX= yes
|
1998-07-25 09:08:38 -04:00
|
|
|
LIBS= libMesaGL libMesaGLU
|
1997-09-30 15:20:06 -04:00
|
|
|
|
1998-11-11 00:37:39 -05:00
|
|
|
.include <bsd.port.pre.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
|
|
|
|
|
1997-09-30 15:20:06 -04:00
|
|
|
do-install:
|
|
|
|
.for file in ${LIBS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/lib/${file}.a ${PREFIX}/lib
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/lib/${file}.so.${SHLIB_VERSION} ${PREFIX}/lib
|
1998-09-26 19:33:15 -04:00
|
|
|
${LN} -fs ${file}.so.${SHLIB_VERSION} ${PREFIX}/lib/${file}.so
|
1997-09-30 15:20:06 -04:00
|
|
|
.endfor
|
1997-11-21 21:06:47 -05:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/lib/libglut.a ${PREFIX}/lib
|
1998-09-26 19:33:15 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/lib/libglut.so.${GLUT_VERSION} ${PREFIX}/lib
|
|
|
|
${LN} -fs libglut.so.${GLUT_VERSION} ${PREFIX}/lib/libglut.so
|
1997-09-30 15:20:06 -04:00
|
|
|
.for file in GL GLU
|
1998-09-26 19:33:15 -04:00
|
|
|
@${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
|
1997-09-30 15:20:06 -04:00
|
|
|
.endfor
|
|
|
|
@${MKDIR} ${PREFIX}/include/GL
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/include/GL/* ${PREFIX}/include/GL
|
1998-09-26 19:33:15 -04:00
|
|
|
${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib
|
1995-02-07 16:58:10 -05:00
|
|
|
|
1998-11-11 00:37:39 -05:00
|
|
|
.include <bsd.port.post.mk>
|