Created
August 7, 2014 18:17
-
-
Save anonymous/c56292049e61625832a1 to your computer and use it in GitHub Desktop.
Pkgfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Description: Mesa 3D Graphics Library | |
# URL: http://www.mesa3d.org | |
# Maintainer: CRUX Xorg Team, xorg-ports at crux dot nu | |
# Depends on: libdrm, xorg-makedepend, xorg-glproto, xorg-xextproto, xorg-dri2proto, xorg-libx11, xorg-xf86vidmodeproto, xorg-libxext, xorg-libxxf86vm, xorg-libxt, xorg-libxdamage, xorg-libpciaccess, expat, talloc, libxml2-python, xorg-presentproto, xorg-libxshmfence | |
name=mesa3d | |
version=git | |
release=si | |
source=() | |
build() { | |
cd $PKGMK_SOURCE_DIR | |
if cd mesa; then | |
git pull --rebase git://anongit.freedesktop.org/mesa/mesa master | |
else | |
git clone git://anongit.freedesktop.org/mesa/mesa | |
cd mesa | |
fi | |
cp -r $PKGMK_SOURCE_DIR/mesa $SRC | |
cd $SRC/mesa | |
sed -i 's/-Werror//' configure.ac | |
#autoreconf --install --symlink | |
./autogen.sh \ | |
--prefix=/usr \ | |
--enable-gallium-egl \ | |
--enable-gallium-gbm \ | |
--enable-gallium-llvm \ | |
--enable-gbm \ | |
--enable-gles1 \ | |
--enable-gles2 \ | |
--enable-glx-tls \ | |
--enable-osmesa \ | |
--enable-texture-float \ | |
--enable-xa \ | |
--with-egl-platforms=drm \ | |
--with-llvm-shared-libs \ | |
--with-gallium-drivers=r300,r600,svga,swrast,radeonsi,nouveau \ | |
--enable-vdpau | |
make | |
make DESTDIR=$PKG install | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment