1995-02-07 21:58:10 +00:00
|
|
|
# New ports collection makefile for: Mesa
|
1997-09-30 19:20:06 +00:00
|
|
|
# Date created: Tue Feb 7 12:02:49 1995
|
|
|
|
# Whom: hsu
|
1995-02-07 21:58:10 +00:00
|
|
|
#
|
1999-08-25 06:16:32 +00:00
|
|
|
# $FreeBSD$
|
1995-02-07 21:58:10 +00:00
|
|
|
#
|
1996-12-06 23:28:02 +00:00
|
|
|
|
2000-04-13 06:28:28 +00:00
|
|
|
PORTNAME= Mesa
|
2000-08-24 09:53:11 +00:00
|
|
|
PORTVERSION= 3.2.1
|
2000-09-11 15:45:29 +00:00
|
|
|
PORTREVISION= 1
|
1996-11-18 11:44:27 +00:00
|
|
|
CATEGORIES= graphics
|
2000-06-14 13:21:38 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
|
2000-03-20 23:23:33 +00:00
|
|
|
ftp://iris.ssec.wisc.edu/pub/Mesa/ \
|
1998-10-01 02:17:49 +00:00
|
|
|
ftp://ftp.fu-berlin.de/pub/unix/X11/graphics/Mesa/
|
2000-06-14 13:21:38 +00:00
|
|
|
MASTER_SITE_SUBDIR= mesa3d
|
2000-04-14 04:12:38 +00:00
|
|
|
DISTFILES= MesaLib-${PORTVERSION}${EXTRACT_SUFX} \
|
|
|
|
MesaDemos-${PORTVERSION}${EXTRACT_SUFX}
|
1996-12-06 23:28:02 +00:00
|
|
|
|
2000-08-23 12:51:33 +00:00
|
|
|
MAINTAINER= sobomax@FreeBSD.org
|
1997-11-22 02:06:47 +00:00
|
|
|
|
2000-04-25 20:25:55 +00:00
|
|
|
USE_BZIP2= yes
|
|
|
|
|
2000-03-20 23:23:33 +00:00
|
|
|
.if defined(WANT_GGI)
|
|
|
|
LIB_DEPENDS= ggi.2:${PORTSDIR}/graphics/libggi
|
|
|
|
CONFIGURE_ARGS+=--with-ggi=${LOCALBASE}
|
1998-11-11 05:37:39 +00:00
|
|
|
.endif
|
|
|
|
|
2000-03-20 23:23:33 +00:00
|
|
|
GLUTVER= 3
|
|
|
|
USE_X_PREFIX= yes
|
|
|
|
USE_LIBTOOL= yes
|
2000-04-25 20:25:55 +00:00
|
|
|
USE_GMAKE= yes
|
2000-03-20 23:23:33 +00:00
|
|
|
CONFIGURE_ENV+= GLVER="${GLVER}" GLUTVER="${GLUTVER}"
|
|
|
|
PLIST_SUB= GLVER="${GLVER}" GLUTVER="${GLUTVER}"
|
|
|
|
|
2000-08-24 09:53:11 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${XFREE86_VERSION} == 3
|
|
|
|
SUB_GL= src
|
|
|
|
INCLUDE_GL= include
|
|
|
|
GLVER= 14
|
|
|
|
PLIST_SUB+= XFREE3:=""
|
|
|
|
.else
|
|
|
|
SUB_GL=
|
|
|
|
INCLUDE_GL=
|
|
|
|
GLVER= 1
|
|
|
|
PLIST_SUB+= XFREE3:="@comment "
|
|
|
|
MAKE_ENV= INCLUDES="-I${X11BASE}/include -I${WRKSRC}/include -DGLCALLBACKPCAST=\*"
|
|
|
|
MAKE_ARGS= -e
|
|
|
|
.endif
|
|
|
|
|
|
|
|
MAKE_ENV+= SUB_GL=${SUB_GL} \
|
|
|
|
INCLUDE_GL=${INCLUDE_GL}
|
|
|
|
|
|
|
|
pre-patch:
|
|
|
|
@${PERL} -pi -e 's|-lpthread|-pthread|g' ${WRKSRC}/configure
|
|
|
|
|
2000-09-11 12:58:15 +00:00
|
|
|
post-configure:
|
|
|
|
@${PERL} -pi -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/src/config.c
|
|
|
|
|
2000-03-20 23:23:33 +00:00
|
|
|
post-install:
|
|
|
|
.for lib in GL GLU
|
|
|
|
@${LN} -sf ${PREFIX}/lib/lib${lib}.so ${PREFIX}/lib/libMesa${lib}.so
|
1997-09-30 19:20:06 +00:00
|
|
|
.endfor
|
2000-08-24 09:53:11 +00:00
|
|
|
.if ${XFREE86_VERSION} > 3
|
|
|
|
@${MKDIR} ${PREFIX}/include/GL
|
|
|
|
@cd ${WRKSRC}/include/GL && \
|
|
|
|
${INSTALL_DATA} glu.h glut.h ${PREFIX}/include/GL
|
|
|
|
.endif
|
1995-02-07 21:58:10 +00:00
|
|
|
|
2000-08-24 09:53:11 +00:00
|
|
|
.include <bsd.port.post.mk>
|