summaryrefslogtreecommitdiff
path: root/graphics/linux_mesa3/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/linux_mesa3/Makefile')
-rw-r--r--graphics/linux_mesa3/Makefile87
1 files changed, 19 insertions, 68 deletions
diff --git a/graphics/linux_mesa3/Makefile b/graphics/linux_mesa3/Makefile
index dce45088e8ec..f993e307793b 100644
--- a/graphics/linux_mesa3/Makefile
+++ b/graphics/linux_mesa3/Makefile
@@ -5,76 +5,27 @@
# $FreeBSD$
#
-PORTNAME= mesa
-PORTVERSION= 3.4.2
-PORTREVISION= 4
-CATEGORIES= graphics linux
-MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
- ftp://ftp.fu-berlin.de/pub/unix/X11/graphics/Mesa/
-MASTER_SITE_SUBDIR= mesa3d
-PKGNAMEPREFIX= linux_
-DISTFILES= MesaLib-${PORTVERSION}${EXTRACT_SUFX} \
- MesaDemos-${PORTVERSION}${EXTRACT_SUFX}
-
-MAINTAINER= freebsd-emulation@FreeBSD.org
+PORTNAME= mesa
+PORTVERSION= 3.4.2
+PORTREVISION= 5
+MASTER_SITES= ftp://ftp.leo.org/pub/comp/os/unix/linux/redhat/redhat/updates/7.2/en/os/i386/ \
+ ftp://ftp.uni-kl.de/pub/linux/redhat/redhat/updates/7.2/en/os/i386/ \
+ ftp://ftp.icm.edu.pl/mirrors/ftp.redhat.com/pub/redhat/linux/updates/7.2/en/os/i386/ \
+ ftp://ftp.rediris.es/pub/linux/distributions/redhat/redhat/linux/updates/7.2/en/os/i386/ \
+ ftp://sunsite.cnlab-switch.ch/mirror/redhat/linux/updates/7.2/en/os/i386/ \
+ ftp://ftp.dulug.duke.edu/pub/redhat/linux/updates/7.2/en/os/i386/ \
+ ftp://mirror.sit.wisc.edu/mirrors/linux/distributions/redhat/updates/7.2/en/os/i386/
+CATEGORIES= graphics linux
+
+MAINTAINER= freebsd-emulation@FreeBSD.org
COMMENT= A graphics library similar to SGI's OpenGL, used from Linux programs
-USE_BZIP2= yes
-ONLY_FOR_ARCHS= i386
-USE_LINUX_PREFIX= yes
-WRKSRC= ${WRKDIR}/Mesa-${PORTVERSION}
-NO_FILTER_SHLIBS= yes
-NO_MTREE= yes
-
-INSTALL= ${LINUXBASE}/usr/bin/install
-
-GNU_CONFIGURE= yes
-CONFIGURE_TARGET= #
-CONFIGURE_ARGS+= --x-libraries="${LINUXBASE}/usr/X11R6/lib" \
- --x-includes="${LINUXBASE}/usr/X11R6/include" \
- --libdir="${PREFIX}/usr/X11R6/lib" \
- --includedir="${PREFIX}/usr/X11R6/include"
-CONFIGURE_ENV= PATH="${LINUXBASE}/bin:${LINUXBASE}/usr/bin:${PATH}" \
- GL_MAJOR_VER="${GL_MAJOR_VER}" \
- GL_MINOR_VER="${GL_MINOR_VER}" \
- GLUT_MAJOR_VER="${GLUT_MAJOR_VER}" \
- GLUT_MINOR_VER="${GLUT_MINOR_VER}"
-GL_MAJOR_VER= 1
-GL_MINOR_VER= 3
-GLUT_MAJOR_VER= 3
-GLUT_MINOR_VER= 8
-LIBMESA_MAJOR_VER= 3
-
-MAKE_ENV= PATH=${LINUXBASE}/usr/bin:${PATH}
-STRIP_CMD= ${LINUXBASE}/usr/bin/strip
-
-PLIST_SUB+= GL_MAJOR_VER=${GL_MAJOR_VER} \
- GL_MINOR_VER=${GL_MINOR_VER} \
- GLUT_MAJOR_VER=${GLUT_MAJOR_VER} \
- GLUT_MINOR_VER=${GLUT_MINOR_VER} \
- LIBMESA_MAJOR_VER=${LIBMESA_MAJOR_VER}
-
-.include <bsd.port.pre.mk>
-
-.if exists(${LINUXBASE}/lib/ld-2.1.3.so)
-BUILD_DEPENDS+= ${LINUXBASE}/lib/ld-linux.so.2:${PORTSDIR}/emulators/linux_base-6 \
- ${LINUXBASE}/usr/bin/gcc:${PORTSDIR}/devel/linux_devtools-6
-.elifdef(WITH_LINUX6)
-BUILD_DEPENDS+= ${LINUXBASE}/lib/ld-linux.so.2:${PORTSDIR}/emulators/linux_base-6 \
- ${LINUXBASE}/usr/bin/gcc:${PORTSDIR}/devel/linux_devtools-6
-.else
-BUILD_DEPENDS+= ${LINUXBASE}/lib/ld-linux.so.2:${PORTSDIR}/emulators/linux_base-8 \
- ${LINUXBASE}/usr/X11R6/lib/libXrender.so.1:${PORTSDIR}/x11/linux-XFree86-libs \
- ${LINUXBASE}/usr/bin/gcc:${PORTSDIR}/devel/linux_devtools
RUN_DEPENDS+= ${LINUXBASE}/usr/X11R6/lib/libXrender.so.1:${PORTSDIR}/x11/linux-XFree86-libs
-.endif
-post-install:
- ${STRIP_CMD} ${PREFIX}/usr/X11R6/lib/libglut.so.${GLUT_MAJOR_VER}.${GLUT_MINOR_VER}.0
- @for R in GL GLU; do \
- ${STRIP_CMD} ${PREFIX}/usr/X11R6/lib/lib$$R.so.${GL_MAJOR_VER}.${GL_MINOR_VER}.0; \
- ${LN} -s lib$$R.so.${GL_MAJOR_VER} ${PREFIX}/usr/X11R6/lib/libMesa$$R.so.${LIBMESA_MAJOR_VER}; \
- done
- ${LINUXBASE}/sbin/ldconfig
+BASEVERSION=7.2
+ONLY_FOR_ARCHS= i386
+PLIST= ${PKGDIR}/pkg-plist
+MD5_FILE= ${PKGDIR}/distinfo
+RPM_SET= Mesa-3.4.2-10.i386.rpm
-.include <bsd.port.post.mk>
+.include "../../x11-toolkits/linux-gtk/Makefile"