2023-08-07 18:05:10 +02:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
# debian/rules for the Debian mesa package
|
|
|
|
# Copyright © 2006 Thierry Reding <thierry@gilfi.de>
|
|
|
|
|
|
|
|
# Uncomment this to turn on verbose mode.
|
|
|
|
#export DH_VERBOSE=1
|
|
|
|
|
|
|
|
include /usr/share/dpkg/pkg-info.mk
|
|
|
|
|
|
|
|
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
|
|
|
|
DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
|
|
|
|
DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
|
|
|
|
DEB_HOST_ARCH_CPU ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU)
|
|
|
|
|
|
|
|
# for finding the correct llvm-config when meson doesn't know about it yet
|
2024-07-29 17:38:10 +02:00
|
|
|
LLVM_VERSION = 18
|
2024-09-15 20:20:51 +02:00
|
|
|
RUST_VERSION = 1.80
|
2023-08-07 18:05:10 +02:00
|
|
|
export PATH:=/usr/lib/llvm-$(LLVM_VERSION)/bin/:$(PATH)
|
2024-09-15 20:20:51 +02:00
|
|
|
export PATH:=/usr/lib/rust-$(RUST_VERSION)/bin/:$(PATH)
|
2023-08-07 18:05:10 +02:00
|
|
|
|
2024-07-29 17:38:10 +02:00
|
|
|
ifneq (,$(filter $(DEB_HOST_ARCH), amd64))
|
|
|
|
export DEB_BUILD_MAINT_OPTIONS=optimize=+lto
|
|
|
|
else
|
|
|
|
export DEB_BUILD_MAINT_OPTIONS=optimize=-lto
|
|
|
|
endif
|
2024-09-15 20:20:51 +02:00
|
|
|
export MESON_PACKAGE_CACHE_DIR=/usr/share/cargo/registry/
|
2023-08-07 18:05:10 +02:00
|
|
|
|
2024-09-15 20:20:51 +02:00
|
|
|
DEB_CFLAGS_MAINT_APPEND := -Wall
|
|
|
|
DEB_CXXFLAGS_MAINT_APPEND := -Wall
|
|
|
|
ifneq (,$(filter $(DEB_HOST_ARCH), armhf))
|
2023-08-07 18:05:10 +02:00
|
|
|
# Workaround for a variant of LP: #725126
|
2024-09-15 20:20:51 +02:00
|
|
|
DEB_CFLAGS_MAINT_APPEND += -fno-optimize-sibling-calls
|
|
|
|
DEB_CXXFLAGS_MAINT_APPEND += -fno-optimize-sibling-calls
|
|
|
|
else ifneq (,$(filter $(DEB_HOST_ARCH), m68k))
|
|
|
|
# This library has huge jump tables: Debian #1067207
|
|
|
|
DEB_CFLAGS_MAINT_APPEND += -mlong-jump-table-offsets
|
|
|
|
DEB_CXXFLAGS_MAINT_APPEND += -mlong-jump-table-offsets
|
|
|
|
else ifneq (,$(filter $(DEB_HOST_ARCH), sh4))
|
|
|
|
# Workaround for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83143
|
|
|
|
DEB_CFLAGS_MAINT_APPEND += -freorder-blocks-algorithm=simple
|
|
|
|
DEB_CXXFLAGS_MAINT_APPEND += -freorder-blocks-algorithm=simple
|
2023-08-07 18:05:10 +02:00
|
|
|
endif
|
2024-09-15 20:20:51 +02:00
|
|
|
buildflags = $(shell \
|
|
|
|
DEB_CFLAGS_MAINT_APPEND='$(DEB_CFLAGS_MAINT_APPEND)' \
|
|
|
|
DEB_CXXFLAGS_MAINT_APPEND='$(DEB_CXXFLAGS_MAINT_APPEND)' \
|
|
|
|
dpkg-buildflags --export=configure)
|
2023-08-07 18:05:10 +02:00
|
|
|
|
|
|
|
EGL_PLATFORMS = x11
|
2024-09-15 20:20:51 +02:00
|
|
|
GALLIUM_DRIVERS =
|
2023-08-07 18:05:10 +02:00
|
|
|
VULKAN_DRIVERS =
|
|
|
|
VULKAN_LAYERS =
|
|
|
|
|
2023-11-22 17:22:20 +01:00
|
|
|
confflags_OSMESA = -Dosmesa=true
|
2023-08-07 18:05:10 +02:00
|
|
|
confflags_SSE2 = -Dsse2=true
|
2024-09-15 20:20:51 +02:00
|
|
|
confflags_TEFLON = -Dteflon=false
|
2023-08-07 18:05:10 +02:00
|
|
|
|
2024-09-15 21:12:43 +02:00
|
|
|
LLVM_ARCHS = amd64 arm64 armel armhf loong64 mips64el powerpc ppc64 ppc64el riscv64 s390x sparc64 x32
|
2024-09-15 20:20:51 +02:00
|
|
|
RUSTICL_ARCHS = amd64 arm64 armel armhf loong64 mips64el powerpc ppc64 ppc64el riscv64 s390x x32
|
|
|
|
NVK_ARCHS = amd64 arm64 armhf ppc64 riscv64 x32
|
2024-07-29 17:38:10 +02:00
|
|
|
VALGRIND_ARCHS = amd64 arm64 armhf i386 mips64el powerpc ppc64 ppc64el s390x
|
|
|
|
WINE_ARCHS = amd64 arm64 armel armhf i386
|
2023-11-22 17:22:20 +01:00
|
|
|
WSL_ARCHS = amd64 arm64
|
2023-08-07 18:05:10 +02:00
|
|
|
|
|
|
|
# hurd doesn't do direct rendering
|
|
|
|
ifeq ($(DEB_HOST_ARCH_OS), hurd)
|
2024-09-15 20:20:51 +02:00
|
|
|
GALLIUM_DRIVERS += softpipe
|
2024-07-29 17:38:10 +02:00
|
|
|
confflags_DIRECT_RENDERING = -Dglx-direct=false
|
|
|
|
confflags_GBM = -Dgbm=disabled
|
2023-08-07 18:05:10 +02:00
|
|
|
else
|
2024-07-29 17:38:10 +02:00
|
|
|
# Non-Linux ports lack epoll, so wayland isn't ready yet:
|
|
|
|
# https://gitlab.freedesktop.org/wayland/wayland/-/issues/72
|
|
|
|
# hurd also lacks *_CLOEXEC
|
|
|
|
EGL_PLATFORMS += wayland
|
|
|
|
|
|
|
|
GALLIUM_DRIVERS += nouveau r300 r600 virgl
|
|
|
|
confflags_DIRECT_RENDERING = -Dglx-direct=true
|
|
|
|
confflags_GBM = -Dgbm=enabled
|
|
|
|
confflags_GALLIUM += -Dgallium-extra-hud=true
|
|
|
|
confflags_GALLIUM += -Dgallium-vdpau=enabled
|
|
|
|
confflags_GALLIUM += -Dlmsensors=enabled
|
|
|
|
|
|
|
|
# Freedreno requires arm in addition
|
|
|
|
ifneq (,$(filter arm arm64,$(DEB_HOST_ARCH_CPU)))
|
|
|
|
GALLIUM_DRIVERS += freedreno
|
2024-09-15 20:20:51 +02:00
|
|
|
# XXX - broken
|
|
|
|
#GALLIUM_DRIVERS += asahi
|
2023-08-07 18:05:10 +02:00
|
|
|
endif
|
|
|
|
|
2024-07-29 17:38:10 +02:00
|
|
|
# etnaviv, tegra, vc4 and v3d kernel support are only available on armhf and arm64
|
|
|
|
ifneq (,$(filter $(DEB_HOST_ARCH), armhf arm64))
|
|
|
|
GALLIUM_DRIVERS += etnaviv panfrost svga tegra vc4 v3d
|
|
|
|
VULKAN_DRIVERS += broadcom freedreno panfrost
|
2023-08-07 18:05:10 +02:00
|
|
|
endif
|
|
|
|
|
2024-07-29 17:38:10 +02:00
|
|
|
ifneq (,$(filter $(DEB_HOST_ARCH), armhf arm64 loong64 riscv64))
|
|
|
|
GALLIUM_DRIVERS += lima
|
|
|
|
endif
|
2023-08-07 18:05:10 +02:00
|
|
|
|
2024-07-29 17:38:10 +02:00
|
|
|
# Build intel drivers on archs where libdrm-intel is installed
|
|
|
|
ifneq (,$(filter $(DEB_HOST_ARCH), amd64 i386 x32))
|
|
|
|
GALLIUM_DRIVERS += crocus i915 iris svga
|
|
|
|
VULKAN_DRIVERS += intel intel_hasvk
|
|
|
|
# svga needs xa state tracker
|
|
|
|
confflags_GALLIUM += -Dgallium-xa=enabled
|
|
|
|
endif
|
2023-08-07 18:05:10 +02:00
|
|
|
|
2024-07-29 17:38:10 +02:00
|
|
|
ifneq (,$(filter $(DEB_HOST_ARCH), amd64))
|
|
|
|
confflags_GALLIUM += -Dintel-clc=enabled
|
2024-09-15 21:29:13 +02:00
|
|
|
else
|
|
|
|
confflags_GALLIUM += -Dintel-clc=disabled
|
2024-07-29 17:38:10 +02:00
|
|
|
endif
|
2023-08-07 18:05:10 +02:00
|
|
|
|
2024-07-29 17:38:10 +02:00
|
|
|
ifneq (,$(filter $(DEB_HOST_ARCH), $(VALGRIND_ARCHS)))
|
|
|
|
confflags_VALGRIND += -Dvalgrind=enabled
|
2023-08-07 18:05:10 +02:00
|
|
|
endif
|
|
|
|
|
2024-07-29 17:38:10 +02:00
|
|
|
# WSL supports only amd64 and arm64
|
|
|
|
ifneq (,$(filter $(DEB_HOST_ARCH), $(WSL_ARCHS)))
|
|
|
|
GALLIUM_DRIVERS += d3d12
|
|
|
|
VULKAN_DRIVERS += microsoft-experimental
|
2023-08-07 18:05:10 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
# LLVM is required for building r300g, radeonsi and llvmpipe drivers.
|
|
|
|
# It's also required for building OpenCL support.
|
|
|
|
ifneq (,$(filter $(DEB_HOST_ARCH), $(LLVM_ARCHS)))
|
2024-09-15 20:20:51 +02:00
|
|
|
GALLIUM_DRIVERS += radeonsi zink llvmpipe
|
2023-08-07 18:05:10 +02:00
|
|
|
|
2024-09-15 20:20:51 +02:00
|
|
|
# drop virtio from armel, it doesn't build
|
|
|
|
ifneq (,$(filter $(DEB_HOST_ARCH), armel))
|
2023-08-07 18:05:10 +02:00
|
|
|
VULKAN_DRIVERS += amd swrast
|
2024-09-15 20:20:51 +02:00
|
|
|
else
|
2024-07-29 17:38:10 +02:00
|
|
|
VULKAN_DRIVERS += amd swrast virtio
|
2023-08-07 18:05:10 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
VULKAN_LAYERS += device-select intel-nullhw overlay
|
|
|
|
confflags_GALLIUM += -Dllvm=enabled
|
|
|
|
confflags_GALLIUM += -Dgallium-opencl=icd
|
|
|
|
|
|
|
|
# Build rusticl for archs where rustc is available
|
|
|
|
ifneq (,$(filter $(DEB_HOST_ARCH), $(RUSTICL_ARCHS)))
|
2024-09-15 20:20:51 +02:00
|
|
|
ifneq ($(DEB_DISTRIBUTION), xxx)
|
|
|
|
confflags_GALLIUM += -Dgallium-rusticl=true
|
|
|
|
else
|
|
|
|
confflags_GALLIUM += -Dgallium-rusticl=false
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter $(DEB_HOST_ARCH), $(NVK_ARCHS)))
|
|
|
|
VULKAN_DRIVERS += nouveau
|
2023-08-07 18:05:10 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
# nine makes sense only on archs that build wine
|
|
|
|
ifneq (,$(filter $(DEB_HOST_ARCH), $(WINE_ARCHS)))
|
|
|
|
confflags_GALLIUM += -Dgallium-nine=true
|
|
|
|
endif
|
|
|
|
else
|
2024-09-15 20:20:51 +02:00
|
|
|
GALLIUM_DRIVERS += softpipe
|
2023-08-07 18:05:10 +02:00
|
|
|
confflags_GALLIUM += -Dllvm=disabled
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq (,$(filter pkg.mesa.nolibva,$(DEB_BUILD_PROFILES)))
|
|
|
|
confflags_GALLIUM += -Dgallium-va=enabled
|
2024-07-29 17:38:10 +02:00
|
|
|
confflags_GALLIUM += -Dvideo-codecs="all"
|
2023-08-07 18:05:10 +02:00
|
|
|
endif
|
2024-09-15 20:20:51 +02:00
|
|
|
|
|
|
|
# Teflon only supports arm64
|
|
|
|
ifneq (,$(filter $(DEB_HOST_ARCH), arm64))
|
|
|
|
confflags_TEFLON = -Dteflon=true
|
|
|
|
endif
|
2023-08-07 18:05:10 +02:00
|
|
|
endif
|
|
|
|
|
2024-07-29 17:38:10 +02:00
|
|
|
#ifeq ($(DEB_HOST_ARCH), i386)
|
|
|
|
# confflags_SSE2 = -Dsse2=false
|
|
|
|
#endif
|
|
|
|
|
2023-08-07 18:05:10 +02:00
|
|
|
empty:=
|
|
|
|
space := $(empty) $(empty)
|
|
|
|
comma := ,
|
2024-07-29 17:38:10 +02:00
|
|
|
EGL_PLATFORMS := $(patsubst %,'%',$(EGL_PLATFORMS))
|
|
|
|
EGL_PLATFORMS_LIST := $(subst $(space),$(comma),$(EGL_PLATFORMS))
|
2023-08-07 18:05:10 +02:00
|
|
|
GALLIUM_DRIVERS := $(patsubst %,'%',$(GALLIUM_DRIVERS))
|
|
|
|
GALLIUM_DRIVERS_LIST := $(subst $(space),$(comma),$(GALLIUM_DRIVERS))
|
|
|
|
VULKAN_DRIVERS := $(patsubst %,'%',$(VULKAN_DRIVERS))
|
|
|
|
VULKAN_DRIVERS_LIST := $(subst $(space),$(comma),$(VULKAN_DRIVERS))
|
|
|
|
VULKAN_LAYERS := $(patsubst %,'%',$(VULKAN_LAYERS))
|
|
|
|
VULKAN_LAYERS_LIST := $(subst $(space),$(comma),$(VULKAN_LAYERS))
|
|
|
|
|
|
|
|
confflags_GLES = -Dgles1=disabled -Dgles2=enabled
|
|
|
|
confflags_GALLIUM += -Dgallium-drivers="[$(GALLIUM_DRIVERS_LIST)]"
|
|
|
|
|
|
|
|
confflags += \
|
|
|
|
-Ddri-drivers-path=/usr/lib/$(DEB_HOST_MULTIARCH)/dri \
|
|
|
|
-Ddri-search-path='/usr/lib/$(DEB_HOST_MULTIARCH)/dri:\$$$${ORIGIN}/dri:/usr/lib/dri' \
|
2024-07-29 17:38:10 +02:00
|
|
|
-Dplatforms="[$(EGL_PLATFORMS_LIST)]" \
|
2023-08-07 18:05:10 +02:00
|
|
|
-Dvulkan-drivers="[$(VULKAN_DRIVERS_LIST)]" \
|
|
|
|
-Dvulkan-layers="[$(VULKAN_LAYERS_LIST)]" \
|
2024-09-15 20:20:51 +02:00
|
|
|
-Dglvnd=enabled \
|
2023-08-07 18:05:10 +02:00
|
|
|
-Dshared-glapi=enabled \
|
|
|
|
-Db_ndebug=true \
|
|
|
|
-Dbuild-tests=true \
|
|
|
|
-Dtools=drm-shim \
|
|
|
|
$(confflags_DIRECT_RENDERING) \
|
|
|
|
$(confflags_GBM) \
|
|
|
|
$(confflags_GALLIUM) \
|
|
|
|
$(confflags_GLES) \
|
|
|
|
$(confflags_OSMESA) \
|
|
|
|
$(confflags_SSE2) \
|
2024-09-15 20:20:51 +02:00
|
|
|
$(confflags_VALGRIND) \
|
|
|
|
$(confflags_TEFLON)
|
|
|
|
|
|
|
|
|
|
|
|
rewrite_wrap_files:
|
|
|
|
cp -r subprojects subprojects-save
|
|
|
|
for crate in paste proc-macro2 quote syn unicode-ident; \
|
|
|
|
do \
|
|
|
|
export crate_namever=`basename $$MESON_PACKAGE_CACHE_DIR/$$crate-*`; \
|
|
|
|
sed -e"/source.*/d" -e"s,$${crate}-.*,$${crate_namever}," -i subprojects/$${crate}.wrap; \
|
|
|
|
done
|
|
|
|
touch subprojects/rewrite
|
2023-08-07 18:05:10 +02:00
|
|
|
|
|
|
|
override_dh_clean: regen_control
|
2024-09-15 20:20:51 +02:00
|
|
|
dpkg-parsechangelog | awk '/^Version:/ {print $$2}' | sed 's/-.*//;s/~/-/' > VERSION
|
2023-08-07 18:05:10 +02:00
|
|
|
rm -rf .pc
|
|
|
|
rm -rf build
|
|
|
|
rm -rf configure bin/config.guess bin/config.sub config.h.in
|
|
|
|
rm -rf $$(find -name Makefile.in)
|
|
|
|
rm -rf bin/install-sh bin/ltmain.sh
|
2024-09-15 20:20:51 +02:00
|
|
|
rm -rf src/intel/vulkan/grl/parser.out
|
|
|
|
rm -rf src/intel/vulkan/grl/parsetab.py
|
2023-08-07 18:05:10 +02:00
|
|
|
for file in debian/*.links.in; do rm -f $${file%%.in}; done
|
|
|
|
find -name '*.pyc' -delete
|
|
|
|
find -name '__pycache__' -delete
|
2024-09-15 20:20:51 +02:00
|
|
|
if [ -f subprojects/rewrite ]; then \
|
|
|
|
rm -rf subprojects; \
|
|
|
|
mv subprojects-save subprojects; \
|
|
|
|
fi
|
2023-08-07 18:05:10 +02:00
|
|
|
dh_clean
|
|
|
|
|
2024-09-15 20:20:51 +02:00
|
|
|
override_dh_auto_configure: rewrite_wrap_files
|
2023-08-08 15:46:15 +02:00
|
|
|
dpkg-parsechangelog | awk '/^Version:/ {print $$2}' > VERSION
|
2023-08-07 18:05:10 +02:00
|
|
|
$(buildflags) dh_auto_configure -- \
|
|
|
|
$(confflags)
|
|
|
|
|
|
|
|
override_dh_auto_install:
|
|
|
|
dh_auto_install
|
|
|
|
for file in debian/*.links.in; \
|
|
|
|
do \
|
|
|
|
sed -e"s,\$${DEB_HOST_MULTIARCH},$(DEB_HOST_MULTIARCH),g" \
|
|
|
|
$${file} > $${file%%.in}; \
|
|
|
|
done
|
|
|
|
|
|
|
|
# some tests are expected to fail for now, drop this when upstream has
|
|
|
|
# better cross-build testing in place and expected failures fixed
|
|
|
|
override_dh_auto_test:
|
|
|
|
-dh_auto_test
|
|
|
|
|
|
|
|
allpkg = $(shell dh_listpackages -a)
|
|
|
|
|
|
|
|
override_dh_installchangelogs:
|
|
|
|
dh_installchangelogs -a
|
2023-08-11 17:20:02 +02:00
|
|
|
dh_installchangelogs -pmesa-common-git-dev
|
2023-08-07 18:05:10 +02:00
|
|
|
|
|
|
|
override_dh_install:
|
|
|
|
# purge .la files
|
|
|
|
find debian/tmp/ -name '*.la' -exec rm '{}' ';'
|
|
|
|
|
|
|
|
# Get rid of some files which aren't installed. Do not
|
|
|
|
# use -f to ensure we notice disappearing files:
|
|
|
|
rm debian/tmp/usr/lib/*/libglapi.so
|
|
|
|
rm debian/tmp/usr/lib/*/libEGL_mesa.so
|
|
|
|
rm debian/tmp/usr/lib/*/libGLX_mesa.so
|
2024-09-15 20:20:51 +02:00
|
|
|
ifneq (,$(filter $(DEB_HOST_ARCH), $(NVK_ARCHS)))
|
|
|
|
rm debian/tmp/usr/bin/mme_fermi_sim_hw_test
|
|
|
|
rm debian/tmp/usr/bin/mme_tu104_sim_hw_test
|
|
|
|
endif
|
2023-08-07 18:05:10 +02:00
|
|
|
# use -f here though
|
|
|
|
rm -f debian/tmp/usr/lib/*/libgrl.a
|
|
|
|
|
|
|
|
# Copy the hardlinked *_dri.so correctly.
|
2023-08-11 17:20:02 +02:00
|
|
|
install -m755 -d debian/libgl1-mesa-dri-git/usr/lib/${DEB_HOST_MULTIARCH}/dri/
|
2023-08-07 18:05:10 +02:00
|
|
|
mv debian/tmp/usr/lib/${DEB_HOST_MULTIARCH}/dri/*_dri.so \
|
2023-08-11 17:20:02 +02:00
|
|
|
debian/libgl1-mesa-dri-git/usr/lib/${DEB_HOST_MULTIARCH}/dri/
|
2023-08-07 18:05:10 +02:00
|
|
|
|
|
|
|
ifneq ($(DEB_HOST_ARCH_OS), hurd)
|
|
|
|
# Copy the hardlinked vdpau drivers correctly.
|
2023-08-11 17:20:02 +02:00
|
|
|
install -m755 -d debian/mesa-vdpau-drivers-git/usr/lib/${DEB_HOST_MULTIARCH}/vdpau/
|
2023-08-07 18:05:10 +02:00
|
|
|
mv debian/tmp/usr/lib/${DEB_HOST_MULTIARCH}/vdpau/libvdpau*.so* \
|
2023-08-11 17:20:02 +02:00
|
|
|
debian/mesa-vdpau-drivers-git/usr/lib/${DEB_HOST_MULTIARCH}/vdpau/
|
2023-08-07 18:05:10 +02:00
|
|
|
|
|
|
|
ifeq (,$(filter pkg.mesa.nolibva,$(DEB_BUILD_PROFILES)))
|
|
|
|
# Copy the hardlinked va drivers correctly.
|
2023-08-11 17:20:02 +02:00
|
|
|
install -m755 -d debian/mesa-va-drivers-git/usr/lib/${DEB_HOST_MULTIARCH}/dri/
|
2023-08-07 18:05:10 +02:00
|
|
|
mv debian/tmp/usr/lib/${DEB_HOST_MULTIARCH}/dri/*_drv_video.so \
|
2023-08-11 17:20:02 +02:00
|
|
|
debian/mesa-va-drivers-git/usr/lib/${DEB_HOST_MULTIARCH}/dri/
|
2023-08-07 18:05:10 +02:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2024-07-29 21:45:04 +02:00
|
|
|
ifneq (,$(filter $(DEB_HOST_ARCH), $(RUSTICL_ARCHS)))
|
2023-08-11 17:20:02 +02:00
|
|
|
install -m755 -d debian/mesa-opencl-icd-git/etc/OpenCL/vendors
|
2023-08-07 18:05:10 +02:00
|
|
|
mv debian/tmp/etc/OpenCL/vendors/rusticl.icd \
|
2023-08-11 17:20:02 +02:00
|
|
|
debian/mesa-opencl-icd-git/etc/OpenCL/vendors
|
|
|
|
install -m755 -d debian/mesa-opencl-icd-git/usr/lib/${DEB_HOST_MULTIARCH}/
|
2023-08-07 18:05:10 +02:00
|
|
|
mv debian/tmp/usr/lib/${DEB_HOST_MULTIARCH}/libRusticlOpenCL* \
|
2023-08-11 17:20:02 +02:00
|
|
|
debian/mesa-opencl-icd-git/usr/lib/${DEB_HOST_MULTIARCH}/
|
2024-07-29 21:45:04 +02:00
|
|
|
endif
|
2023-08-07 18:05:10 +02:00
|
|
|
|
2024-07-29 21:45:04 +02:00
|
|
|
# Copy spirv2dxil and its dependencies on architectures that support WSL/Dozen (dzn)
|
|
|
|
ifneq (,$(filter $(DEB_HOST_ARCH), $(WSL_ARCHS)))
|
2023-11-27 19:17:35 +01:00
|
|
|
install -m755 -d debian/mesa-vulkan-drivers-git/usr/bin
|
2023-11-27 18:49:34 +01:00
|
|
|
mv debian/tmp/usr/bin/spirv2dxil \
|
2024-07-29 21:45:04 +02:00
|
|
|
debian/mesa-vulkan-drivers-git/usr/bin
|
2023-11-27 19:17:35 +01:00
|
|
|
install -m755 -d debian/mesa-vulkan-drivers-git/usr/lib/${DEB_HOST_MULTIARCH}/
|
2023-11-27 18:49:34 +01:00
|
|
|
mv debian/tmp/usr/lib/${DEB_HOST_MULTIARCH}/libspirv_to_dxil.* \
|
2024-07-29 21:45:04 +02:00
|
|
|
debian/mesa-vulkan-drivers-git/usr/lib/${DEB_HOST_MULTIARCH}/
|
|
|
|
endif
|
2023-11-27 18:49:34 +01:00
|
|
|
|
2023-08-07 18:05:10 +02:00
|
|
|
dh_install -a
|
|
|
|
|
|
|
|
# Install bug control and script:
|
|
|
|
set -e; for p in $(allpkg); do \
|
|
|
|
install -d debian/$$p/usr/share/bug/$$p && \
|
|
|
|
install -m 644 debian/local/control debian/$$p/usr/share/bug/$$p && \
|
|
|
|
install -m 755 debian/local/script debian/$$p/usr/share/bug/$$p; \
|
|
|
|
done
|
|
|
|
|
|
|
|
override_dh_makeshlibs:
|
2023-08-08 15:46:15 +02:00
|
|
|
dh_makeshlibs -a -- -c0
|
2023-08-07 18:05:10 +02:00
|
|
|
|
|
|
|
%:
|
|
|
|
dh $@ --with quilt \
|
|
|
|
--builddirectory=build/ \
|
|
|
|
--buildsystem=meson
|
|
|
|
|
|
|
|
# For maintainer use only, generate a tarball:
|
|
|
|
gentarball:
|
|
|
|
git archive --format=tar upstream-experimental --prefix=$(DEB_SOURCE)-$(DEB_VERSION_UPSTREAM)/ \
|
|
|
|
| gzip -9 > ../$(DEB_SOURCE)_$(DEB_VERSION_UPSTREAM).orig.tar.gz
|
|
|
|
|
|
|
|
regen_control:
|
|
|
|
sed -e"s,@LLVM_VERSION@,$(LLVM_VERSION),g" \
|
2024-09-15 20:20:51 +02:00
|
|
|
-e"s,@RUST_VERSION@,$(RUST_VERSION),g" \
|
2023-08-07 18:05:10 +02:00
|
|
|
-e"s,@LLVM_ARCHS@,$(LLVM_ARCHS),g" \
|
|
|
|
-e"s,@RUSTICL_ARCHS@,$(RUSTICL_ARCHS),g" \
|
2024-09-15 20:20:51 +02:00
|
|
|
-e"s,@NVK_ARCHS@,$(NVK_ARCHS),g" \
|
2023-08-07 18:05:10 +02:00
|
|
|
-e"s,@VALGRIND_ARCHS@,$(VALGRIND_ARCHS),g" \
|
|
|
|
-e"s,@WINE_ARCHS@,$(WINE_ARCHS),g" \
|
2024-07-29 21:45:04 +02:00
|
|
|
debian/control.in > debian/control
|