| Name |
sdl2-compat |
| Description |
|
| Version |
2.32.54+ds-1 |
| Package Base |
|
| Homepage |
|
| Maintainers |
['Debian SDL packages maintainers <pkg-sdl-maintainers@lists.alioth.debian.org>'] |
| Contributors |
['Simon McVittie <smcv@debian.org>', 'Stephen Kitt <skitt@debian.org>,'] |
| Distro-repo |
https://salsa.debian.org/sdl-team/sdl2-compat |
| Sources |
['https://sources.debian.org/data/main/s/sdl2-compat/2.32.54+ds-1/debian/watch', 'https://sources.debian.org/src/sdl2-compat/2.32.54+ds-1/debian/patches/debian', 'https://sources.debian.org/src/sdl2-compat/2.32.54+ds-1/debian/patches/series'] |
| Dependencies |
[] |
| Optional-Dependencies |
[] |
| Build-Dependencies |
['cmake', 'debhelper-compat', 'libgl-dev <!nocheck> <!noinsttest>', 'libgles-dev [!hurd-any] <!nocheck> <!noinsttest>', 'libsdl3-dev', 'libvulkan-dev <!nocheck> <!noinsttest>', 'libx11-dev <!nocheck> <!noinsttest>'] |
| Provides |
[] |
| Builddate |
|
| Architecture |
amd64 |
| Distro-Version |
trixie |
| Licenses |
[] |
| Hash |
|
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
# export DH_VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export SDL_AUDIODRIVER = dummy
export SDL_VIDEODRIVER = dummy
include /usr/share/dpkg/default.mk
built_binaries := $(shell dh_listpackages)
configure_options := \
-DSDL2COMPAT_STATIC=ON \
-DSDL2COMPAT_VENDOR_INFO="$(DEB_VENDOR) $(DEB_VERSION)" \
-DSDL2COMPAT_WERROR=OFF \
$(NULL)
ifneq ($(filter nocheck,$(DEB_BUILD_OPTIONS))$(filter %-tests,$(built_binaries)),nocheck)
configure_options += -DSDL2COMPAT_TESTS=ON
else
configure_options += -DSDL2COMPAT_TESTS=OFF
endif
ifneq ($(filter %-tests,$(built_binaries)),)
configure_options += -DSDL2COMPAT_INSTALL_TESTS=ON
else
configure_options += -DSDL2COMPAT_INSTALL_TESTS=OFF
endif
%:
dh $@ -Scmake
override_dh_auto_configure:
echo $(DEB_VERSION_UPSTREAM) > REVISION.txt
mkdir -p obj-$(DEB_HOST_GNU_TYPE)
echo '*' > obj-$(DEB_HOST_GNU_TYPE)/.gitignore
dh_auto_configure -- $(configure_options)
# Only run testtimer as an autopkgtest on machines that we're reasonably
# sure are both fast and set up to be usable for interactive use
# (currently only x86 and 64-bit ARM).
# There is an assertion that requesting a 1ms delay does not result in
# a delay of more than 100ms, and that's not going to be reliably true
# on slow machines like riscv64 or batch-processing-oriented machines
# like s390x.
ifeq (,$(filter amd64 arm64 i386,$(DEB_HOST_ARCH)))
execute_after_dh_auto_install:
rm -fv debian/tmp/usr/share/installed-tests/SDL2_compat/testtimer.test
endif
override_dh_strip:
dh_strip -plibsdl2-compat-shim --no-automatic-dbgsym
dh_strip --remaining-packages
override_dh_makeshlibs:
dh_makeshlibs -plibsdl2-compat -n
dh_makeshlibs --remaining-packages
library=$$(cd debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH) && ls -1 libSDL2-2.0.so.0.*) && \
ln -fns sdl2-compat/$$library debian/libsdl2-compat-shim/usr/lib/$(DEB_HOST_MULTIARCH)/
ln -fns sdl2-compat/libSDL2-2.0.so.0 debian/libsdl2-compat-shim/usr/lib/$(DEB_HOST_MULTIARCH)/
override_dh_shlibdeps:
dh_shlibdeps -lusr/lib/$(DEB_HOST_MULTIARCH)/sdl2-compat
# debhelper >= 13.4 makes all of /usr/libexec executable, which is not
# quite right for installed-tests
override_dh_fixperms:
dh_fixperms -Xusr/libexec/installed-tests
chmod --recursive a+rX,u+w,og-w debian/*-tests/usr/libexec/installed-tests