1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00
freebsd-ports/graphics/Mesa3/Makefile
Ade Lovett 7e52725f2a Clear moonlight beckons.
Requiem mors pacem pkg-comment,
And be calm ports tree.

E Nomini Patri, E Fili, E Spiritu Sancti.
2003-03-07 06:14:21 +00:00

78 lines
1.8 KiB
Makefile

# New ports collection makefile for: Mesa
# Date created: Tue Feb 7 12:02:49 1995
# Whom: hsu
#
# $FreeBSD$
#
PORTNAME= Mesa
PORTVERSION= 3.4.2
PORTREVISION= 2
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
ftp://iris.ssec.wisc.edu/pub/Mesa/ \
ftp://ftp.fu-berlin.de/pub/unix/X11/graphics/Mesa/
MASTER_SITE_SUBDIR= mesa3d
DISTFILES= MesaLib-${PORTVERSION}${EXTRACT_SUFX} \
MesaDemos-${PORTVERSION}${EXTRACT_SUFX}
MAINTAINER= sobomax@FreeBSD.org
COMMENT= A graphics library similar to SGI's OpenGL
USE_BZIP2= yes
USE_REINPLACE= yes
INSTALLS_SHLIB= yes
.if defined(WANT_GGI)
LIB_DEPENDS= ggi.2:${PORTSDIR}/graphics/libggi
CONFIGURE_ARGS+=--with-ggi=${LOCALBASE}
.endif
GLUTVER= 3
USE_X_PREFIX= yes
USE_LIBTOOL= yes
USE_GMAKE= yes
CONFIGURE_ENV+= GLVER="${GLVER}" GLUTVER="${GLUTVER}" \
LIBS="-lm"
PLIST_SUB= GLVER="${GLVER}" GLUTVER="${GLUTVER}"
.include <bsd.port.pre.mk>
.if ${XFREE86_VERSION} == 3
SUB_GL= src src-glu
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}
.ifdef USE_MESA
.error You have `USE_MESA' variable defined either in environment or in make(1) arguments. Please undefine and try again.
.endif
pre-patch:
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
post-configure:
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/src/config.c
post-install:
.for lib in GL GLU
@${LN} -sf ${PREFIX}/lib/lib${lib}.so ${PREFIX}/lib/libMesa${lib}.so
.endfor
.if ${XFREE86_VERSION} > 3
${MKDIR} ${PREFIX}/include/GL
${INSTALL_DATA} ${WRKSRC}/include/GL/glut.h ${PREFIX}/include/GL
.endif
.include <bsd.port.post.mk>