use environment variable to select llvm package to build against
This commit is contained in:
parent
00bd919161
commit
551d1aaf9f
25
.SRCINFO
25
.SRCINFO
@ -1,14 +1,12 @@
|
||||
pkgbase = mesa-git
|
||||
pkgdesc = an open-source implementation of the OpenGL specification, git version
|
||||
pkgver = 19.1.0_devel.110690.80dc78407d0
|
||||
pkgver = 19.2.0_devel.110857.8b3baa27440
|
||||
pkgrel = 1
|
||||
url = https://www.mesa3d.org
|
||||
arch = x86_64
|
||||
license = custom
|
||||
makedepends = git
|
||||
makedepends = python-mako
|
||||
makedepends = llvm-git
|
||||
makedepends = clang-git
|
||||
makedepends = xorgproto
|
||||
makedepends = libxml2
|
||||
makedepends = libx11
|
||||
@ -23,27 +21,30 @@ pkgbase = mesa-git
|
||||
makedepends = wayland
|
||||
makedepends = wayland-protocols
|
||||
makedepends = meson
|
||||
makedepends = ninja
|
||||
makedepends = lone_wolf-llvm-git
|
||||
makedepends = lone_wolf-clang-git
|
||||
depends = libdrm
|
||||
depends = libxxf86vm
|
||||
depends = libxdamage
|
||||
depends = libxshmfence
|
||||
depends = libelf
|
||||
depends = libomxil-bellagio
|
||||
depends = llvm-libs-git
|
||||
depends = libunwind
|
||||
depends = libglvnd
|
||||
depends = wayland
|
||||
depends = lm_sensors
|
||||
depends = libclc
|
||||
depends = glslang
|
||||
depends = lone_wolf-llvm-libs-git
|
||||
optdepends = opengl-man-pages: for the OpenGL API man pages
|
||||
provides = mesa
|
||||
provides = vulkan-intel
|
||||
provides = vulkan-radeon
|
||||
provides = libva-mesa-driver
|
||||
provides = mesa-vdpau
|
||||
provides = vulkan-driver
|
||||
provides = opencl-mesa
|
||||
provides = mesa=19.2.0_devel.110857.8b3baa27440-1
|
||||
provides = vulkan-intel=19.2.0_devel.110857.8b3baa27440-1
|
||||
provides = vulkan-radeon=19.2.0_devel.110857.8b3baa27440-1
|
||||
provides = libva-mesa-driver=19.2.0_devel.110857.8b3baa27440-1
|
||||
provides = mesa-vdpau=19.2.0_devel.110857.8b3baa27440-1
|
||||
provides = vulkan-driver=19.2.0_devel.110857.8b3baa27440-1
|
||||
provides = opencl-mesa=19.2.0_devel.110857.8b3baa27440-1
|
||||
provides = opengl-driver
|
||||
provides = opencl-driver
|
||||
conflicts = mesa
|
||||
@ -54,6 +55,8 @@ pkgbase = mesa-git
|
||||
conflicts = mesa-vdpau
|
||||
source = mesa::git://anongit.freedesktop.org/mesa/mesa
|
||||
source = LICENSE
|
||||
md5sums = SKIP
|
||||
md5sums = 5c65a0fe315dd347e09b1f2826a1df5a
|
||||
sha512sums = SKIP
|
||||
sha512sums = 25da77914dded10c1f432ebcbf29941124138824ceecaf1367b3deedafaecabc082d463abcfa3d15abff59f177491472b505bcb5ba0c4a51bb6b93b4721a23c2
|
||||
|
||||
|
61
PKGBUILD
61
PKGBUILD
@ -9,28 +9,66 @@
|
||||
# Contributor: Antti "Tera" Oja <antti.bofh@gmail.com>
|
||||
# Contributor: Diego Jose <diegoxter1006@gmail.com>
|
||||
|
||||
pkgbase=mesa-git
|
||||
pkgname=('mesa-git')
|
||||
pkgname=mesa-git
|
||||
pkgdesc="an open-source implementation of the OpenGL specification, git version"
|
||||
pkgver=19.1.0_devel.110690.80dc78407d0
|
||||
pkgver=19.2.0_devel.110857.8b3baa27440
|
||||
pkgrel=1
|
||||
arch=('x86_64')
|
||||
makedepends=('git' 'python-mako' 'llvm-git' 'clang-git' 'xorgproto'
|
||||
makedepends=('git' 'python-mako' 'xorgproto'
|
||||
'libxml2' 'libx11' 'libvdpau' 'libva' 'elfutils' 'libomxil-bellagio' 'libxrandr'
|
||||
'ocl-icd' 'vulkan-icd-loader' 'libgcrypt' 'wayland' 'wayland-protocols' 'meson')
|
||||
'ocl-icd' 'vulkan-icd-loader' 'libgcrypt' 'wayland' 'wayland-protocols' 'meson' 'ninja')
|
||||
depends=('libdrm' 'libxxf86vm' 'libxdamage' 'libxshmfence' 'libelf'
|
||||
'libomxil-bellagio' 'llvm-libs-git' 'libunwind' 'libglvnd' 'wayland' 'lm_sensors' 'libclc' 'glslang')
|
||||
'libomxil-bellagio' 'libunwind' 'libglvnd' 'wayland' 'lm_sensors' 'libclc' 'glslang')
|
||||
optdepends=('opengl-man-pages: for the OpenGL API man pages')
|
||||
provides=('mesa' 'vulkan-intel' 'vulkan-radeon' 'libva-mesa-driver' 'mesa-vdpau' 'vulkan-driver' 'opencl-mesa' 'opengl-driver' 'opencl-driver')
|
||||
provides=(mesa=$pkgver-$pkgrel vulkan-intel=$pkgver-$pkgrel vulkan-radeon=$pkgver-$pkgrel libva-mesa-driver=$pkgver-$pkgrel mesa-vdpau=$pkgver-$pkgrel vulkan-driver=$pkgver-$pkgrel opencl-mesa=$pkgver-$pkgrel opengl-driver opencl-driver)
|
||||
conflicts=('mesa' 'opencl-mesa' 'vulkan-intel' 'vulkan-radeon' 'libva-mesa-driver' 'mesa-vdpau')
|
||||
url="https://www.mesa3d.org"
|
||||
license=('custom')
|
||||
source=('mesa::git://anongit.freedesktop.org/mesa/mesa'
|
||||
'LICENSE'
|
||||
)
|
||||
'LICENSE')
|
||||
md5sums=('SKIP'
|
||||
'5c65a0fe315dd347e09b1f2826a1df5a')
|
||||
sha512sums=('SKIP'
|
||||
'25da77914dded10c1f432ebcbf29941124138824ceecaf1367b3deedafaecabc082d463abcfa3d15abff59f177491472b505bcb5ba0c4a51bb6b93b4721a23c2')
|
||||
|
||||
# mesa_which_llvm is an evironment variable used to determine which llvm package tree is used to built mesa-git against
|
||||
# 1: lone_wolf-llvm-git (aur) Default value
|
||||
# 2: llvm-git (aur)
|
||||
# 3 llvm-svn (lordheavy unoffical repo)
|
||||
# 4 llvm (stable from extra)
|
||||
#
|
||||
if [[ ! $mesa_which_llvm ]] ; then
|
||||
mesa_which_llvm=1
|
||||
fi
|
||||
|
||||
case $mesa_which_llvm in
|
||||
1)
|
||||
# aur lone_wolf-llvm-git
|
||||
makedepends+=('lone_wolf-llvm-git' 'lone_wolf-clang-git')
|
||||
depends+=('lone_wolf-llvm-libs-git')
|
||||
;;
|
||||
2)
|
||||
# aur llvm-git
|
||||
makedepends+=('llvm-git' 'clang-git')
|
||||
depends+=('llvm-libs-git')
|
||||
;;
|
||||
3)
|
||||
# mesa-git/llvm-svn (lordheavy unofficial repo)
|
||||
makedepends+=('llvm-svn' 'clang-svn')
|
||||
depends+=('llvm-libs-svn')
|
||||
;;
|
||||
4)
|
||||
# extra/llvm
|
||||
makedepends+=(llvm=8.0.0 clang=8.0.0)
|
||||
depends+=(llvm-libs=8.0.0)
|
||||
;;
|
||||
*)
|
||||
esac
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
pkgver() {
|
||||
cd mesa
|
||||
read -r _ver <VERSION
|
||||
@ -74,16 +112,17 @@ build () {
|
||||
-D valgrind=false \
|
||||
-D vulkan-overlay-layer=true \
|
||||
-D tools=[]
|
||||
|
||||
meson configure _build
|
||||
if [[ ! $NINJAFLAGS ]]; then
|
||||
ninja -C _build
|
||||
ninja -C _build
|
||||
else
|
||||
ninja "$NINJAFLAGS" -C _build
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
package_mesa-git() {
|
||||
package() {
|
||||
|
||||
DESTDIR="$pkgdir" ninja -C _build install
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user