2003-04-21 15:40:58 +00:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
|
2015-12-02 09:39:12 +00:00
|
|
|
.PHONY: override_dh_clean override_dh_auto_configure override_dh_auto_build override_dh_install override_dh_strip override_dh_installchangelogs override_dh_builddeb
|
|
|
|
|
2011-10-08 13:33:00 +00:00
|
|
|
LDFLAGS += -Wl,-z,defs -Wl,--as-needed
|
2003-04-21 15:40:58 +00:00
|
|
|
|
2014-12-12 20:02:10 +00:00
|
|
|
# uncomment line to turn verbose mode on
|
|
|
|
#export V=1
|
2014-12-12 19:07:50 +00:00
|
|
|
|
|
|
|
|
2011-10-08 13:33:00 +00:00
|
|
|
%:
|
2014-12-12 19:07:50 +00:00
|
|
|
dh $@ --parallel
|
2003-04-21 15:40:58 +00:00
|
|
|
|
2015-08-15 21:28:22 +00:00
|
|
|
override_dh_clean:
|
|
|
|
[ ! -f build-config ] || ./drake clean:dist
|
2011-10-08 13:33:00 +00:00
|
|
|
|
2015-08-15 21:28:22 +00:00
|
|
|
dh_clean src/mkvinfo-gui config.status config.log \
|
|
|
|
rake.d/dependecy.d/*.rb src/input/*.d config.h build-config
|
2014-08-04 19:49:40 +00:00
|
|
|
|
2015-08-15 21:28:22 +00:00
|
|
|
override_dh_auto_configure:
|
2015-12-02 09:39:12 +00:00
|
|
|
dh_auto_configure -- --docdir='$${datarootdir}/doc/mkvtoolnix-gui' \
|
|
|
|
--enable-debug --enable-optimization
|
2011-10-08 13:33:00 +00:00
|
|
|
|
2015-08-15 21:28:22 +00:00
|
|
|
override_dh_auto_build:
|
|
|
|
./drake
|
2011-10-08 13:33:00 +00:00
|
|
|
|
2015-08-15 21:28:22 +00:00
|
|
|
mv src/mkvinfo src/mkvinfo-gui
|
|
|
|
rm src/info/*.o
|
2011-10-08 13:33:00 +00:00
|
|
|
|
2015-08-15 21:28:22 +00:00
|
|
|
cp -a config.h config.h.ref
|
|
|
|
sed -i -e '/#define.*HAVE_QT/d' config.h
|
|
|
|
touch -r config.h.ref config.h
|
|
|
|
rm config.h.ref
|
2003-04-21 15:40:58 +00:00
|
|
|
|
2015-08-15 21:28:22 +00:00
|
|
|
./drake apps:mkvinfo USE_QT=no QT_LIBS=' ' QT_INCLUDES=' '
|
2003-04-21 15:40:58 +00:00
|
|
|
|
2015-08-15 21:28:22 +00:00
|
|
|
touch src/info/qt_ui.o
|
|
|
|
touch src/mkvinfo
|
2003-04-21 15:40:58 +00:00
|
|
|
|
2011-10-08 13:33:00 +00:00
|
|
|
override_dh_install:
|
2015-08-15 21:28:22 +00:00
|
|
|
./drake install DESTDIR=$(CURDIR)/debian/tmp
|
2014-08-04 19:49:40 +00:00
|
|
|
|
2015-06-20 20:30:17 +00:00
|
|
|
dh_install --list-missing -Xmkvtoolnix.xml
|
2008-03-01 17:16:54 +00:00
|
|
|
|
|
|
|
mv debian/mkvtoolnix/usr/bin/mkvinfo debian/mkvtoolnix/usr/bin/mkvinfo-text
|
|
|
|
|
|
|
|
dh_link -pmkvtoolnix usr/share/man/man1/mkvinfo.1.gz usr/share/man/man1/mkvinfo-text.1.gz
|
|
|
|
dh_link -pmkvtoolnix-gui usr/share/man/man1/mkvinfo.1.gz usr/share/man/man1/mkvinfo-gui.1.gz
|
|
|
|
|
2015-12-02 09:39:12 +00:00
|
|
|
override_dh_strip:
|
|
|
|
dh_strip -pmkvtoolnix --dbg-package=mkvtoolnix-dbg
|
|
|
|
dh_strip -pmkvtoolnix-gui --dbg-package=mkvtoolnix-gui-dbg
|
|
|
|
|
2014-09-13 17:52:52 +00:00
|
|
|
override_dh_installchangelogs:
|
|
|
|
dh_installchangelogs ChangeLog
|
|
|
|
|
2011-10-08 13:33:00 +00:00
|
|
|
override_dh_builddeb:
|
2014-08-05 20:14:41 +00:00
|
|
|
dh_builddeb -- -Zxz -z9
|