blob: 2bff34f450502aa0aee118e82dce558da5f518d8 (
plain)
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
|
#! /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
ffmpeg_config:
scripts/ffmpeg-config
ffmpeg_build:ffmpeg_config
scripts/ffmpeg-build
libass_config:
scripts/libass-config
libass_build:libass_config
scripts/libass-build
# 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
|