use the packaged libsimde-dev

* debian/patches:
   - Use the SIMD Everywhere headers from libsimde-dev, instead of upstream's
     code copy
* debian/control
   - Build-dep on libsimde-dev
   - Add "Built-Using: ${simde:Built-Using}" to all the binary packages to
     document the version of libsimde-dev used, as required to keep that
     version in the Debian archive, which is needed to fulfill the GPL
* debian/copyright:
   - exclude libobs/util/simde/* as we will use the files from libsimde-dev
* debian/rules:
   - Include the recommended flags for SIMDe, especially important for
     non-X86 architectures
This commit is contained in:
Michael R. Crusoe 2020-04-24 20:12:29 +02:00
parent 5240f0b1eb
commit 103fad448f
No known key found for this signature in database
GPG key ID: 3C26763F6C67E6E2
6 changed files with 44 additions and 18 deletions

5
debian/rules vendored
View file

@ -5,6 +5,8 @@ include /usr/share/dpkg/pkg-info.mk
export DEB_LDFLAGS_MAINT_APPEND=-Wl,--as-needed
export DEB_CPPFLAGS_MAINT_APPEND=-DFFMPEG_MUX_FIXED=\"/usr/lib/$(DEB_HOST_MULTIARCH)/obs-plugins/obs-ffmpeg/obs-ffmpeg-mux\"
export DEB_CFLAGS_MAINT_APPEND+=-DSIMDE_ENABLE_OPENMP -fopenmp-simd -O3
export DEB_CXXFLAGS_MAINT_APPEND+=-DSIMDE_ENABLE_OPENMP -fopenmp-simd -O3
%:
dh $@
@ -35,3 +37,6 @@ override_dh_shlibdeps:
override_dh_python3:
dh_python3 -p obs-plugins usr/share/obs/obs-plugins/frontend-tools/scripts
dh_python3 -p obs-studio usr/lib/$(DEB_HOST_MULTIARCH)/obs-scripting
override_dh_gencontrol:
dh_gencontrol -- -Vsimde:Built-Using="$(shell dpkg-query -f '$${source:Package} (= $${source:Version}), ' -W "libsimde-dev")"