diff options
author | Márcio Alexandre Silva Delgado <coadde@adinet.com.uy> | 2012-09-09 17:00:36 -0300 |
---|---|---|
committer | Márcio Alexandre Silva Delgado <coadde@adinet.com.uy> | 2012-09-09 17:00:36 -0300 |
commit | c1bdb51abaa5f646407bb54c4b8f302967b9812a (patch) | |
tree | 461fd8d0f3e5fe42055a5dc7e78a74dfc8ab717b /pcr/libdrm-libre-git/PKGBUILD | |
parent | 99f979239dd697e6d4e4c50b60636eb71c2634f1 (diff) | |
download | abslibre-c1bdb51abaa5f646407bb54c4b8f302967b9812a.tar.gz abslibre-c1bdb51abaa5f646407bb54c4b8f302967b9812a.tar.bz2 abslibre-c1bdb51abaa5f646407bb54c4b8f302967b9812a.zip |
libdrm-libre{-git}: add packages to {libre,pcr}, lib{egl,drm}-git: drop old packages
Diffstat (limited to 'pcr/libdrm-libre-git/PKGBUILD')
-rw-r--r-- | pcr/libdrm-libre-git/PKGBUILD | 113 |
1 files changed, 113 insertions, 0 deletions
diff --git a/pcr/libdrm-libre-git/PKGBUILD b/pcr/libdrm-libre-git/PKGBUILD new file mode 100644 index 000000000..37c7066fc --- /dev/null +++ b/pcr/libdrm-libre-git/PKGBUILD @@ -0,0 +1,113 @@ +# Maintainer: Jan de Groot <jgc@archlinux.org> +# Maintainer (Parabola): Márcio Silva <coadde@lavabit.com> + +pkgname=libdrm-libre-git +pkgver=20120909 +_pkgver=2.4.39 +pkgrel=1 +pkgdesc='Userspace interface to kernel DRM services, without VMWare Graphics KMS API (vmwgfx)' +arch=( + i686 + x86_64 + mips64el +) +license=( + MIT +) +depends=( + libpciaccess + ) +makedepends=( + cairo + git + valgrind +) +options=( + !libtool +) +url=http://dri.freedesktop.org/ +provides=( + ${pkgname%-libre-git}=$_pkgver + ${pkgname%-libre-git}-libre=$_pkgver + ${pkgname%-libre-git}-git + ${pkgname%-libre-git}-nouveau1 +) +conflicts=( + ${pkgname%-libre-git} + ${pkgname%-libre-git}-libre + ${pkgname%-libre-git}-git + ${pkgname%-libre-git}-new + ${pkgname%-libre-git}-nouveau + ${pkgname%-libre-git}-nouveau1 + ${pkgname%-libre-git}-old +) +replaces=( + ${pkgname%-libre-git} + ${pkgname%-libre-git}-git + ${pkgname%-libre-git}-new + ${pkgname%-libre-git}-nouveau +) +source=( + COPYING +) +sha512sums=( + b0ca349b882a4326b19f81f22804fabdb6fb7aef31cdc7b16b0a7ae191bfbb50c7daddb2fc4e6c33f1136af06d060a273de36f6f3412ea326f16fa4309fda660 +) + +_gitroot=git://git.freedesktop.org/git/mesa/drm +_gitname=drm + +build() { + cd $srcdir + msg 'Connecting to GIT server....' + + if [[ -d $_gitname ]]; then + cd $_gitname && git pull origin + msg 'The local files are updated.' + else + git clone $_gitroot $_gitname + fi + + msg 'GIT checkout done or server timeout' + msg 'Starting build...' + + rm -rf $srcdir}/$_gitname-build + git clone $srcdir/$_gitname $srcdir/$_gitname-build + cd $srcdir/$_gitname-build + + sed -i '/PKG_CHECK_MODULES(PTHREADSTUBS, pthread-stubs)/d;/AC_SUBST(PTHREADSTUBS_CFLAGS)/d;/AC_SUBST(PTHREADSTUBS_LIBS)/d' \ + configure.ac + sed -i '/ $(PTHREADSTUBS_CFLAGS) /d;s/ @PTHREADSTUBS_LIBS@//' \ + exynos/Makefile.am + sed -i '/ $(PTHREADSTUBS_CFLAGS) /d;/ @PTHREADSTUBS_LIBS@ /d' \ + intel/Makefile.am + sed -i '/ $(PTHREADSTUBS_CFLAGS) /d;s/ @PTHREADSTUBS_LIBS@//' \ + nouveau/Makefile.am + sed -i '/ $(PTHREADSTUBS_CFLAGS) /d;s/ @PTHREADSTUBS_LIBS@//' \ + omap/Makefile.am + sed -i '/ $(PTHREADSTUBS_CFLAGS) /d;s/ @PTHREADSTUBS_LIBS@//' \ + radeon/Makefile.am + + ./autogen.sh + ./configure --prefix=/usr \ + --disable-vmwgfx \ + --enable-exynos-experimental-api \ + --enable-intel \ + --enable-nouveau \ + --enable-omap-experimental-api \ + --enable-radeon \ + --enable-udev + make V=0 +} + +check() { + cd $srcdir/$_gitname-build + make -k check +} + +package() { + cd $srcdir/$_gitname-build + make DESTDIR=$pkgdir install + install -m755 -d $pkgdir/usr/share/licenses/${pkgname%-libre-git} + install -m644 ../COPYING $pkgdir/usr/share/licenses/${pkgname%-libre-git} +} |