123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127 |
- set -e
- program=mesa
- version=21.2.5
- release=1
- pkgname=mesa-gallium-xa
- pkgcategory=xorg_mesa
- tarname=${program}-${version}.tar.xz
- fetch=https://archive.mesa3d.org/$tarname
- description="
- A Mesa build with XA support.
- This is mainly required for VMware supported architectures,
- for example, for the \"xf86-video-vmware\" package, but it
- also comes with the XA support.
- "
- homepage=https://www.mesa3d.org/
- license=MIT
- build()
- {
- unpack "${tardir}/$tarname"
- cd "$srcdir"
-
- patch -p1 < "${worktree}/patches/mesa/musl-fix-includes.patch"
- patch -p1 < "${worktree}/patches/mesa/add-use-elf-tls.patch"
-
- patch -p1 < "${worktree}/patches/mesa/mesa-21.2.4-add_xdemos-1.patch"
- MESA_GIT_SHA1_OVERRIDE='53b2b224dc2de982c37915a0ad218e33365ff75e'
- export MESA_GIT_SHA1_OVERRIDE
- python3 bin/git_sha1_gen.py --output include/git_sha1.h
-
- chmod -R u+w,go-w,a+rX-s .
- case $arch in
- amd64 | x32 | i?86 )
- _extra_options="-Dglx-read-only-text=true"
- ;;
- esac
- rm -rf BUILD
- mkdir BUILD
- cd BUILD
- CPPFLAGS="$QICPPFLAGS -D_XOPEN_SOURCE=700" \
- CFLAGS="$QICFLAGS" CXXFLAGS="$QICXXFLAGS" LDFLAGS="$QILDFLAGS" \
- meson setup $configure_args \
- --libdir /usr/lib${libSuffix} \
- --buildtype=release \
- --strip \
- -Dplatforms="" \
- -Ddri-drivers="" \
- -Dgallium-drivers="svga" \
- -Dvulkan-drivers="" \
- -Dglx=disabled \
- -Degl=disabled \
- -Dosmesa=false \
- -Dgallium-xvmc=disabled \
- -Dgallium-va=disabled \
- -Dgallium-vdpau=disabled \
- -Dgles1=disabled \
- -Dgles2=disabled \
- -Dopengl=false \
- -Dgallium-nine=false \
- -Dvalgrind=disabled \
- -Dgallium-xa=enabled \
- $_extra_options \
- ..
- ninja -j${jobs}
- DESTDIR="$destdir" ninja -j${jobs} install
- unset -v MESA_GIT_SHA1_OVERRIDE _extra_options
- cd ../
-
- rm -rf "${destdir}/usr/share/drirc.d"
-
- if test -d "${destdir}/$mandir"
- then
- (
- cd "${destdir}/$mandir"
- find . -type f -exec lzip -9 {} +
- find . -type l | while read -r file
- do
- ln -sf "$(readlink -- "$file").lz" "${file}.lz"
- rm -- "$file"
- done
- )
- fi
- }
|