switch from autotools to meson for building
This commit is contained in:
parent
5c15ca2fea
commit
fe7f8b319e
3
.SRCINFO
3
.SRCINFO
@ -1,6 +1,6 @@
|
|||||||
pkgbase = mesa-git
|
pkgbase = mesa-git
|
||||||
pkgdesc = an open-source implementation of the OpenGL specification, git version
|
pkgdesc = an open-source implementation of the OpenGL specification, git version
|
||||||
pkgver = 18.2.0_devel.102754.4d08c1e7d1
|
pkgver = 18.2.0_devel.103089.ff6db94c18
|
||||||
pkgrel = 1
|
pkgrel = 1
|
||||||
url = http://mesa3d.sourceforge.net
|
url = http://mesa3d.sourceforge.net
|
||||||
arch = x86_64
|
arch = x86_64
|
||||||
@ -33,6 +33,7 @@ pkgbase = mesa-git
|
|||||||
depends = libglvnd
|
depends = libglvnd
|
||||||
depends = libclc
|
depends = libclc
|
||||||
depends = wayland
|
depends = wayland
|
||||||
|
depends = lm_sensors
|
||||||
optdepends = opengl-man-pages: for the OpenGL API man pages
|
optdepends = opengl-man-pages: for the OpenGL API man pages
|
||||||
provides = mesa
|
provides = mesa
|
||||||
provides = vulkan-intel
|
provides = vulkan-intel
|
||||||
|
111
PKGBUILD
111
PKGBUILD
@ -12,14 +12,14 @@
|
|||||||
pkgbase=mesa-git
|
pkgbase=mesa-git
|
||||||
pkgname=('mesa-git')
|
pkgname=('mesa-git')
|
||||||
pkgdesc="an open-source implementation of the OpenGL specification, git version"
|
pkgdesc="an open-source implementation of the OpenGL specification, git version"
|
||||||
pkgver=18.2.0_devel.102754.4d08c1e7d1
|
pkgver=18.2.0_devel.103089.ff6db94c18
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
makedepends=('git' 'python2-mako' 'llvm-svn' 'clang-svn' 'xorgproto'
|
makedepends=('git' 'python2-mako' 'llvm-svn' 'clang-svn' 'xorgproto'
|
||||||
'libxml2' 'libx11' 'libvdpau' 'libva' 'elfutils' 'libomxil-bellagio'
|
'libxml2' 'libx11' 'libvdpau' 'libva' 'elfutils' 'libomxil-bellagio'
|
||||||
'ocl-icd' 'vulkan-icd-loader' 'libgcrypt' 'libclc' 'wayland' 'wayland-protocols')
|
'ocl-icd' 'vulkan-icd-loader' 'libgcrypt' 'libclc' 'wayland' 'wayland-protocols')
|
||||||
depends=('libdrm' 'libxxf86vm' 'libxdamage' 'libxshmfence' 'libelf'
|
depends=('libdrm' 'libxxf86vm' 'libxdamage' 'libxshmfence' 'libelf'
|
||||||
'libomxil-bellagio' 'llvm-libs-svn' 'libunwind' 'libglvnd' 'libclc' 'wayland')
|
'libomxil-bellagio' 'llvm-libs-svn' 'libunwind' 'libglvnd' 'libclc' 'wayland' 'lm_sensors')
|
||||||
optdepends=('opengl-man-pages: for the OpenGL API man pages')
|
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' 'opencl-driver' 'opengl-driver')
|
provides=('mesa' 'vulkan-intel' 'vulkan-radeon' 'libva-mesa-driver' 'mesa-vdpau' 'vulkan-driver' 'opencl-mesa' 'opencl-driver' 'opengl-driver')
|
||||||
conflicts=('mesa' 'opencl-mesa' 'vulkan-intel' 'vulkan-radeon' 'libva-mesa-driver' 'mesa-vdpau')
|
conflicts=('mesa' 'opencl-mesa' 'vulkan-intel' 'vulkan-radeon' 'libva-mesa-driver' 'mesa-vdpau')
|
||||||
@ -32,11 +32,6 @@ sha512sums=('SKIP'
|
|||||||
'25da77914dded10c1f432ebcbf29941124138824ceecaf1367b3deedafaecabc082d463abcfa3d15abff59f177491472b505bcb5ba0c4a51bb6b93b4721a23c2'
|
'25da77914dded10c1f432ebcbf29941124138824ceecaf1367b3deedafaecabc082d463abcfa3d15abff59f177491472b505bcb5ba0c4a51bb6b93b4721a23c2'
|
||||||
)
|
)
|
||||||
|
|
||||||
prepare() {
|
|
||||||
cd mesa
|
|
||||||
autoreconf -vfi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkgver() {
|
pkgver() {
|
||||||
cd mesa
|
cd mesa
|
||||||
read -r _ver <VERSION
|
read -r _ver <VERSION
|
||||||
@ -44,80 +39,52 @@ pkgver() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
build () {
|
build () {
|
||||||
cd mesa
|
if [ -d _build ]; then
|
||||||
./configure \
|
rm -rf _build
|
||||||
--prefix=/usr \
|
fi
|
||||||
--sysconfdir=/etc \
|
meson setup mesa _build \
|
||||||
--with-gallium-drivers=r300,r600,radeonsi,nouveau,svga,swrast,virgl \
|
-D b_ndebug=true \
|
||||||
--with-dri-drivers=i915,i965,r200,radeon,nouveau \
|
-D buildtype=plain \
|
||||||
--with-platforms=x11,drm,surfaceless,wayland \
|
--wrap-mode=nofallback \
|
||||||
--with-vulkan-drivers=intel,radeon \
|
-D prefix=/usr \
|
||||||
--enable-gallium-osmesa \
|
-D sysconfdir=/etc \
|
||||||
--enable-xa \
|
-D platforms=x11,wayland,drm,surfaceless \
|
||||||
--enable-nine \
|
-D dri-drivers=i915,i965,r200,r100,nouveau \
|
||||||
--disable-xvmc \
|
-D gallium-drivers=r300,r600,radeonsi,nouveau,svga,swrast,virgl \
|
||||||
--enable-vdpau \
|
-D vulkan-drivers=amd,intel \
|
||||||
--enable-omx-bellagio \
|
-D dri3=true \
|
||||||
--enable-opencl \
|
-D egl=true \
|
||||||
--enable-opencl-icd \
|
-D gallium-extra-hud=true \
|
||||||
--enable-glx-tls \
|
-D gallium-nine=true \
|
||||||
--enable-libglvnd
|
-D gallium-omx=bellagio \
|
||||||
|
-D gallium-opencl=icd \
|
||||||
|
-D gallium-va=true \
|
||||||
|
-D gallium-vdpau=true \
|
||||||
# Used configure settings
|
-D gallium-xa=true \
|
||||||
#
|
-D gallium-xvmc=false \
|
||||||
# --prefix=PREFIX install architecture-independent files in PREFIX
|
-D gbm=true \
|
||||||
# --sysconfdir=DIR read-only single-machine data
|
-D gles1=true \
|
||||||
# [PREFIX/etc]
|
-D gles2=true \
|
||||||
# --with-gallium-drivers[=DIRS...] comma delimited Gallium drivers list, e.g. "i915,ilo,nouveau,r300,r600,radeonsi,freedreno,svga,swrast,vc4,virgl"
|
-D glvnd=true \
|
||||||
# [default=r300,r600,svga,swrast]
|
-D glx=dri \
|
||||||
# --with-dri-drivers[=DIRS...] comma delimited classic DRI drivers list, e.g. "swrast,i965,radeon"
|
-D libunwind=true \
|
||||||
# [default=auto]
|
-D llvm=true \
|
||||||
# --with-platforms[=DIRS...] comma delimited native platforms libEGL/Vulkan/other
|
-D lmsensors=true \
|
||||||
# supports, e.g. "x11,drm,wayland,surfaceless..."
|
-D osmesa=gallium \
|
||||||
# [default=auto]
|
-D shared-glapi=true \
|
||||||
# --with-vulkan-drivers[=DIRS...] comma delimited Vulkan drivers list, e.g. "intel"
|
-D valgrind=false
|
||||||
# [default=no]
|
meson configure _build
|
||||||
# --enable-gallium-osmesa enable Gallium implementation of the OSMesa library
|
ninja -C _build
|
||||||
# [default=disabled]
|
|
||||||
# --enable-xa enable build of the XA X Acceleration API
|
|
||||||
# [default=disabled]
|
|
||||||
# --enable-nine enable build of the nine Direct3D9 API
|
|
||||||
# [default=no]
|
|
||||||
# --disable-xvmc enable xvmc library
|
|
||||||
# [default=auto]
|
|
||||||
# --enable-vdpau enable vdpau library
|
|
||||||
# [default=auto]
|
|
||||||
# --enable-omx-bellagio enable OpenMAX Bellagio library
|
|
||||||
# [default=disabled]
|
|
||||||
# --enable-opencl enable OpenCL library
|
|
||||||
# [default=disabled]
|
|
||||||
# --enable-opencl-icd Build an OpenCL ICD library to be loaded by an ICD implementation
|
|
||||||
# [default=disabled]
|
|
||||||
# --enable-glx-tls enable TLS support in GLX
|
|
||||||
# [default=disabled]
|
|
||||||
# --enable-libglvnd Build GLX and EGL for libglvnd
|
|
||||||
# [default=disabled]
|
|
||||||
|
|
||||||
make
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
package_mesa-git() {
|
package_mesa-git() {
|
||||||
|
|
||||||
cd mesa
|
DESTDIR="$pkgdir" ninja -C _build install
|
||||||
make DESTDIR="$pkgdir" install
|
|
||||||
|
|
||||||
# remove files provided by libglvnd
|
# remove files provided by libglvnd
|
||||||
rm "$pkgdir"/usr/lib/libGLESv{1_CM,2}.so*
|
rm "$pkgdir"/usr/lib/libGLESv{1_CM,2}.so*
|
||||||
|
|
||||||
# remove files provided by wayland
|
|
||||||
# rm "$pkgdir"/usr/lib/libwayland-egl.so*
|
|
||||||
# rm "$pkgdir"/usr/lib/pkgconfig/wayland-egl.pc
|
|
||||||
|
|
||||||
|
|
||||||
# indirect rendering
|
# indirect rendering
|
||||||
ln -s /usr/lib/libGLX_mesa.so.0 ${pkgdir}/usr/lib/libGLX_indirect.so.0
|
ln -s /usr/lib/libGLX_mesa.so.0 ${pkgdir}/usr/lib/libGLX_indirect.so.0
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user