2015-01-04 04:32:37 +00:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
|
2016-05-21 12:47:45 +00:00
|
|
|
include /usr/share/dpkg/architecture.mk
|
2016-08-28 13:52:00 +00:00
|
|
|
include /usr/share/dpkg/pkg-info.mk
|
2016-05-21 12:47:45 +00:00
|
|
|
|
2016-02-23 23:30:24 +00:00
|
|
|
export DEB_LDFLAGS_MAINT_APPEND=-Wl,--as-needed
|
2019-07-27 13:19:10 +00:00
|
|
|
export DEB_CPPFLAGS_MAINT_APPEND=-DFFMPEG_MUX_FIXED=\"/usr/lib/$(DEB_HOST_MULTIARCH)/obs-plugins/obs-ffmpeg/obs-ffmpeg-mux\"
|
2016-02-24 00:11:49 +00:00
|
|
|
|
2015-01-04 04:32:37 +00:00
|
|
|
%:
|
2017-04-15 19:17:42 +00:00
|
|
|
dh $@
|
2015-01-04 04:32:37 +00:00
|
|
|
|
|
|
|
override_dh_auto_configure:
|
|
|
|
dh_auto_configure -- \
|
2016-02-23 23:30:24 +00:00
|
|
|
-DOBS_MULTIARCH_SUFFIX=/$(DEB_HOST_MULTIARCH) \
|
2017-04-15 19:15:02 +00:00
|
|
|
-DUNIX_STRUCTURE=1 \
|
2018-12-16 16:30:56 +00:00
|
|
|
-DDISABLE_UPDATE_MODULE=TRUE \
|
2019-11-18 19:19:04 +00:00
|
|
|
-DBUILD_CAPTIONS=0 \
|
|
|
|
-DOBS_VERSION_OVERRIDE=${DEB_VERSION}
|
2015-01-04 04:32:37 +00:00
|
|
|
|
2016-08-28 14:04:54 +00:00
|
|
|
override_dh_auto_build:
|
|
|
|
dh_auto_build
|
|
|
|
rst2man debian/obs.rst > debian/obs.1
|
|
|
|
|
2015-01-04 04:32:37 +00:00
|
|
|
override_dh_install:
|
2016-02-24 00:11:49 +00:00
|
|
|
mkdir -p debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/obs-plugins/obs-ffmpeg
|
2019-07-27 13:19:10 +00:00
|
|
|
mv debian/tmp/usr/bin/obs-ffmpeg-mux \
|
|
|
|
debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/obs-plugins/obs-ffmpeg/obs-ffmpeg-mux
|
2015-01-04 04:32:37 +00:00
|
|
|
dh_install
|
2016-02-24 00:11:49 +00:00
|
|
|
rm -rf debian/obs-studio/usr/share/obs/obs-studio/license
|
2016-08-28 13:52:00 +00:00
|
|
|
|
|
|
|
override_dh_shlibdeps:
|
|
|
|
echo "libobs 0 libobs0 (= ${DEB_VERSION})" > debian/shlibs.local
|
|
|
|
dh_shlibdeps
|