diff options
author | Cecil Hugh Watson <knoppmyth@gmail.com> | 2009-09-26 01:57:08 (GMT) |
---|---|---|
committer | Cecil Hugh Watson <knoppmyth@gmail.com> | 2009-09-26 01:57:08 (GMT) |
commit | 7b29169fff9e7c624890c5edffe85def8a293136 (patch) | |
tree | 47753889faa3a2063b66d1c7e7681e703eb1b39a /abs/core/mesa/PKGBUILD | |
parent | c491dea779dac29afff3578bf8245943817c2339 (diff) | |
download | linhes_pkgbuild-7b29169fff9e7c624890c5edffe85def8a293136.zip linhes_pkgbuild-7b29169fff9e7c624890c5edffe85def8a293136.tar.gz linhes_pkgbuild-7b29169fff9e7c624890c5edffe85def8a293136.tar.bz2 |
LinHES 6.01.00
Diffstat (limited to 'abs/core/mesa/PKGBUILD')
-rw-r--r-- | abs/core/mesa/PKGBUILD | 73 |
1 files changed, 28 insertions, 45 deletions
diff --git a/abs/core/mesa/PKGBUILD b/abs/core/mesa/PKGBUILD index 9d36715..72d100e 100644 --- a/abs/core/mesa/PKGBUILD +++ b/abs/core/mesa/PKGBUILD @@ -1,63 +1,46 @@ -# $Id: PKGBUILD 3486 2008-06-22 21:12:34Z jgc $ +# $Id: PKGBUILD 12996 2008-09-25 18:06:12Z jgc $ # Maintainer: Alexander Baldeck <alexander@archlinux.org> # Contributor: Jan de Groot <jgc@archlinux.org> pkgname=mesa -pkgver=7.0.3 -pkgrel=3 +pkgver=7.2 +pkgrel=1 pkgdesc="Mesa OpenGL library" arch=(i686 x86_64) license=('LGPL') url="http://mesa3d.sourceforge.net" -depends=('libgl' 'glproto>=1.4.9' 'gcc-libs' 'libxt') -makedepends=('imake' 'pkgconfig') +depends=('libgl' 'libx11>=1.1.4-3' 'libxt' 'glproto>=1.4.9' 'gcc-libs>=4.3.1') +makedepends=('pkgconfig' 'dri2proto>=1.1' 'libdrm>=2.3.1') conflicts=('mesa-apps') replaces=('mesa-apps') -source=(http://downloads.sourceforge.net/sourceforge/mesa3d/MesaLib-${pkgver}.tar.bz2 - http://downloads.sourceforge.net/sourceforge/mesa3d/MesaDemos-${pkgver}.tar.bz2 - ftp://ftp.archlinux.org/other/mesa/gl-manpages-1.0.1.tar.bz2 - mesa-6.5-apps-noglut.patch) -md5sums=('e6e6379d7793af40a6bc3ce1bace572e' - '47fd6863621d3c9c7dbb870ab7f0c303' - '6ae05158e678f4594343f32c2ca50515' - 'cc5a4ea4ea8de4425997fcda2a9d8648') +source=(http://downloads.sourceforge.net/mesa3d/MesaLib-${pkgver}.tar.bz2 + http://downloads.sourceforge.net/mesa3d/MesaDemos-${pkgver}.tar.bz2 + ftp://ftp.archlinux.org/other/mesa/gl-manpages-1.0.1.tar.bz2) +md5sums=('04d379292e023df0b0266825cb0dbde5' + '22e03dc4038cd63f32c21eb60994892b' + '6ae05158e678f4594343f32c2ca50515') build() { - cd ${startdir}/src/Mesa-${pkgver} - patch -Np0 -i ${startdir}/src/mesa-6.5-apps-noglut.patch || return 1 - - unset CFLAGS - unset CXXFLAGS - - CONFIG="linux-dri-x86" - if [ "${CARCH}" = "x86_64" ]; then - CONFIG="linux-dri-x86-64" - sed -i -e "s/lib64/lib/g" configs/${CONFIG} - fi - echo "EXTRA_LIB_PATH =" >> configs/${CONFIG} - echo "SRC_DIRS = glx/x11 glu glw" >> configs/${CONFIG} - rm -f include/GL/glut*h - echo "USING_EGL = 0" >> configs/${CONFIG} - echo "PROGRAM_DIRS =" >> configs/${CONFIG} - echo "MKDEP = makedepend" >> configs/${CONFIG} - echo "DRI_DIRS =" >> configs/${CONFIG} - echo "DRI_DRIVER_SEARCH_DIR = /usr/lib/xorg/modules/dri" >> configs/${CONFIG} - echo "ARCH_FLAGS += -DGLX_USE_TLS" >> configs/${CONFIG} - echo "X11_INCLUDES = `pkg-config --cflags-only-I x11`" >> configs/${CONFIG} + cd ${srcdir}/Mesa-${pkgver} + ./configure --prefix=/usr \ + --with-dri-driverdir=/usr/lib/xorg/modules/dri \ + --with-dri-drivers=swrast \ + --enable-glx-tls \ + --disable-ttm-api \ + --with-driver=dri \ + --enable-xcb \ + --disable-glut || return 1 + make || return 1 + make DESTDIR=${pkgdir} install || return 1 - make ${CONFIG} || return 1 - install -m755 -d ${startdir}/pkg/usr - make INSTALL_DIR=${startdir}/pkg/usr install || return 1 - install -m644 include/GL/*.h ${startdir}/pkg/usr/include/GL/ || return 1 + install -m755 -d ${pkgdir}/usr/bin + install -m755 progs/xdemos/glx{gears,info} ${pkgdir}/usr/bin/ || return 1 - rm -f ${startdir}/pkg/usr/lib/libGL.so* - cd progs/xdemos - make CFLAGS+="-I${startdir}/pkg/usr/include" glxinfo glxgears || return 1 - install -m755 -d ${startdir}/pkg/usr/bin || return 1 - install -m755 glxinfo glxgears ${startdir}/pkg/usr/bin/ || return 1 + rm -f ${pkgdir}/usr/lib/libGL.so* + rm -rf ${pkgdir}/usr/lib/xorg - cd ${startdir}/src/gl-manpages-1.0.1 + cd ${srcdir}/gl-manpages-1.0.1 ./configure --prefix=/usr || return 1 make || return 1 - make DESTDIR=${startdir}/pkg install || return 1 + make DESTDIR=${pkgdir} install || return 1 } |