39 lines
1.3 KiB
Makefile
Executable file
39 lines
1.3 KiB
Makefile
Executable file
#!/usr/bin/make -f
|
|
|
|
include /usr/share/dpkg/architecture.mk
|
|
include /usr/share/dpkg/pkg-info.mk
|
|
|
|
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 $@
|
|
|
|
override_dh_auto_configure:
|
|
dh_auto_configure -- \
|
|
-DOBS_MULTIARCH_SUFFIX=/$(DEB_HOST_MULTIARCH) \
|
|
-DUNIX_STRUCTURE=TRUE \
|
|
-DDISABLE_UPDATE_MODULE=TRUE \
|
|
-DBUILD_CAPTIONS=ON \
|
|
-DOBS_VERSION_OVERRIDE=${DEB_VERSION}
|
|
|
|
execute_after_dh_auto_build:
|
|
rst2man debian/obs.rst > debian/obs.1
|
|
|
|
override_dh_install:
|
|
mkdir -p debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/obs-plugins/obs-ffmpeg
|
|
mv debian/tmp/usr/bin/obs-ffmpeg-mux \
|
|
debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/obs-plugins/obs-ffmpeg/obs-ffmpeg-mux
|
|
dh_install
|
|
rm -rf debian/obs-studio/usr/share/obs/obs-studio/license
|
|
|
|
execute_before_dh_shlibdeps:
|
|
echo "libobs 0 libobs0 (= ${DEB_VERSION})" > debian/shlibs.local
|
|
|
|
override_dh_python3:
|
|
dh_python3 -p obs-studio 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")"
|