Name shaderc
Description
Version
Package Base
Homepage
Maintainers ['Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>']
Contributors []
Distro-repo https://git.launchpad.net/ubuntu/+source/shaderc/tree/?h=ubuntu/noble
Sources ['https://git.launchpad.net/ubuntu/+source/shaderc/plain/debian/patches/../?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/shaderc/plain/debian/patches/fix-cmake-python_executable.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/shaderc/plain/debian/patches/fix-manpage.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/shaderc/plain/debian/patches/fix-python-interpreter.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/shaderc/plain/debian/patches/rename-libshaderc.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/shaderc/plain/debian/patches/series?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/shaderc/plain/debian/patches/use-system-thirdparties.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/shaderc/plain/debian/watch?h=ubuntu/noble']
Dependencies []
Optional-Dependencies []
Build-Dependencies ['debhelper-compat', 'spirv-headers', 'pkgconf', 'cmake', 'asciidoctor', 'glslang-dev', 'ruby-pygments.rb']
Provides []
Builddate
Architecture amd64
Distro-Version noble
Licenses []
Hash
#!/usr/bin/make -f

BUILT_USING := $(shell dpkg-query -f '$${source:Package} (= $${source:Version}), ' -W spirv-tools glslang-dev)
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

include /usr/share/dpkg/pkg-info.mk

%:
	dh $@

override_dh_auto_configure:
	# CMAKE_BUILD_RPATH_USE_ORIGIN=ON is for reproducibility:
	dh_auto_configure -- \
		-Dglslang_SOURCE_DIR=/usr/include/glslang/ \
		-DSHADERC_SKIP_TESTS=ON \
		-DSHADERC_SKIP_EXAMPLES=ON \
		-DCMAKE_BUILD_RPATH_USE_ORIGIN=ON

override_dh_auto_build:
	# Use printf instead of echo to make it work regardless the shell (see #1058397)
	printf "\"shaderc $(DEB_VERSION)\\\n\"" > obj-${DEB_HOST_GNU_TYPE}/build-version.inc
	dpkg-query -f '"spirv-tools $${Version}\\n"\n' -W spirv-tools >> obj-${DEB_HOST_GNU_TYPE}/build-version.inc
	dpkg-query -f '"glslang $${Version}\\n"' -W glslang-dev >> obj-${DEB_HOST_GNU_TYPE}/build-version.inc
	dh_auto_build

override_dh_installman:
	mkdir -p $(CURDIR)/debian/tmp/usr/share/man/man1/
	asciidoctor -b manpage glslc/README.asciidoc -o $(CURDIR)/debian/tmp/usr/share/man/man1/glslc.1
	dh_installman

override_dh_auto_clean:
	dh_auto_clean
	rm -rf glslc/test/__pycache__

override_dh_gencontrol:
	dh_gencontrol -- -V"built-using=$(BUILT_USING)"