yolobs-studio/debian/rules
Simon Chopin 53176e97fa Refresh the use-path-in-usr-lib patch and the exec name and location
Upstream has decided to now ship the ffmpeg-mux executable as a binary
in /usr/bin. In order to keep the -plugins package Multiarch: Same, we
still need to ship it in /usr/lib/x86_64, although we now use the new
name to not diverge too much from upstream.
2019-07-28 20:31:41 +02:00

32 lines
932 B
Makefile
Executable file

#!/usr/bin/make -f
include /usr/share/dpkg/architecture.mk
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\"
%:
dh $@
override_dh_auto_configure:
dh_auto_configure -- \
-DOBS_MULTIARCH_SUFFIX=/$(DEB_HOST_MULTIARCH) \
-DUNIX_STRUCTURE=1 \
-DDISABLE_UPDATE_MODULE=TRUE \
-DBUILD_CAPTIONS=0
override_dh_auto_build:
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
override_dh_shlibdeps:
echo "libobs 0 libobs0 (= ${DEB_VERSION})" > debian/shlibs.local
dh_shlibdeps