summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xdebian/rules32
-rwxr-xr-xscripts/libass-clean4
2 files changed, 32 insertions, 4 deletions
diff --git a/debian/rules b/debian/rules
index 9ad668a..2bff34f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,13 +1,39 @@
#! /usr/bin/make -f
+# make .PHONY all the targets that have name collisions with the scripts
+# see http://www.debian.org/doc/manuals/maint-guide/dreq.en.html#rules
+.PHONY: clean build install
+# Apparently, the above isn't enough because of the "%" target. Make the problematic targets explicit
+clean:
+ exec dh $@ --parallel
+build:
+ exec dh $@ --parallel
+install:
+ exec dh $@ --parallel
+# handle all other targets in the usual way
%:
exec dh $@ --parallel
-override_dh_auto_build:
+ffmpeg_config:
scripts/ffmpeg-config
- scripts/ffmpeg-build
+ffmpeg_build:ffmpeg_config
+ scripts/ffmpeg-build
+libass_config:
scripts/libass-config
+libass_build:libass_config
scripts/libass-build
- scripts/mpv-config --prefix=/usr
+
+# the dependencies must be built before mpv is configured
+override_dh_auto_configure:ffmpeg_build libass_build
+ scripts/mpv-config --prefix=/usr --confdir=/etc/mpv
+
+override_dh_auto_build:
scripts/mpv-build
+override_dh_auto_install:
+ (cd mpv;python ./waf -v install --destdir=../debian/mpv)
+
+override_dh_auto_clean:
+ scripts/mpv-clean
+ scripts/ffmpeg-clean
+ scripts/libass-clean
diff --git a/scripts/libass-clean b/scripts/libass-clean
index 2a2efce..d2a431c 100755
--- a/scripts/libass-clean
+++ b/scripts/libass-clean
@@ -1,3 +1,5 @@
#!/bin/sh
-make -C libass distclean
+if [ -f libass/Makefile ];then
+ make -C libass distclean
+fi