1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
|
#!/usr/bin/make -f
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-z,defs -Wl,--as-needed
auto_build_cmd = \
cat debian/autoreconf | while read path; do \
$(1) -D"$$path"; \
done
override_dh_autoreconf:
dh_autoreconf --as-needed
override_dh_auto_configure:
$(call auto_build_cmd,dh_auto_configure)
override_dh_auto_build:
$(call auto_build_cmd,dh_auto_build)
override_dh_auto_install:
$(call auto_build_cmd,dh_auto_install)
override_dh_auto_clean:
$(call auto_build_cmd,dh_auto_clean)
override_dh_installchangelogs:
dh_installchangelogs -p mediainfo History_CLI.txt
dh_installchangelogs -p mediainfo-gui History_GUI.txt
override_dh_install:
dh_install
find debian/mediainfo-gui \
-name MediaInfo\* \
-exec file-rename 's/MediaInfo\.(png|svg|xpm)$$/mediainfo.$$1/g' '{}' '+'
find debian/mediainfo-gui \
-name \*.desktop \
-exec file-rename 's/\.kde[34]\.desktop$$/.desktop/' '{}' '+'
find debian/mediainfo-gui/usr/share -type f -exec chmod 0644 '{}' '+'
override_dh_installdocs:
dh_installdocs
file-rename 's/ReadMe_.*\.txt$$/README/' debian/*/usr/share/doc/*/ReadMe*
%.1: %.pod
pod2man --center "User Commands" --release=MediaInfo\ 0.7.52 $< > $@
override_dh_installman: debian/mediainfo.1 debian/mediainfo-gui.1
dh_installman
override_dh_missing:
dh_missing --fail-missing
clean:
rm -f debian/*.1
dh clean
%:
dh $@
|