File: Makefile.am

package info (click to toggle)
lsdvd 0.21-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 568 kB
  • sloc: sh: 1,398; ansic: 1,342; makefile: 60; xml: 23
file content (72 lines) | stat: -rw-r--r-- 2,674 bytes parent folder | download | duplicates (2)
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
62
63
64
65
66
67
68
69
70
71
72
bin_PROGRAMS = lsdvd
lsdvd_SOURCES = lsdvd.c ocode.c ohuman.c oxml.c lsdvd.h oxml.h ocode.h lsdvd.1
lsdvd_CFLAGS = $(DVDREAD_CFLAGS) $(LIBXML2_CFLAGS)
lsdvd_LDADD = $(DVDREAD_LIBS) $(LIBXML2_LIBS)
man_MANS = lsdvd.1

# Test lsdvd on trivial generated DVD ISO.
# Based on https://wiki.archlinux.org/title/Convert_any_Movie_to_DVD_Video
# and https://binaryimpulse.com/2016/02/encode-dvd-video-linux-cli/ .
#
# Debian packages needed: dvdauthor ffmpeg genisoimage make k3b

TESTS = \
 testsuite/output-complete \
 testsuite/output-debug \
 testsuite/output-json \
 testsuite/output-perl \
 testsuite/output-python \
 testsuite/output-ruby \
 testsuite/output-xml

EXTRA_DIST = \
 $(TESTS) \
 testsuite/testdvd-template.xml

check_DATA = \
 testsuite/dvd-pal.iso \
 testsuite/dvd-ntsc.iso

CLEANFILES = \
 testsuite/dvd-ntsc.iso \
 testsuite/dvd-pal.iso \
 testsuite/lsdvd-ntsc.pl \
 testsuite/lsdvd-pal.pl \
 testsuite/lsdvd.debug \
 testsuite/lsdvd-ntsc.json \
 testsuite/lsdvd-pal.json \
 testsuite/lsdvd-ntsc.py \
 testsuite/lsdvd-pal.py \
 testsuite/lsdvd-ntsc.r \
 testsuite/lsdvd-pal.r \
 testsuite/lsdvd-ntsc.xml \
 testsuite/lsdvd-pal.xml \
 testsuite/testdvd-ntsc.mpeg \
 testsuite/testdvd-ntsc.xml \
 testsuite/testdvd-pal.xml \
 testsuite/testdvd-pal.mpeg

testsuite/dvd-pal.iso: testsuite/dvd-pal
	mkisofs -dvd-video -udf -o testsuite/dvd-pal.iso testsuite/dvd-pal/

testsuite/dvd-pal: testsuite/testdvd-pal.mpeg
	sed s/-format/-pal/ < $(srcdir)/testsuite/testdvd-template.xml > testsuite/testdvd-pal.xml
	VIDEO_FORMAT=PAL dvdauthor -o testsuite/dvd-pal -x testsuite/testdvd-pal.xml

# Using random video already packaged in Debian
testsuite/testdvd-pal.mpeg: /usr/share/k3b/extra/k3bphotovcd.mpg
	mkdir -p testsuite && ffmpeg -i /usr/share/k3b/extra/k3bphotovcd.mpg -filter:v "scale='if(gt(a,720/480),720,-1)':'if(gt(a,720/480),-1,480)',pad=w=720:h=480:x=(ow-iw)/2:y=(oh-ih)/2" -target pal-dvd testsuite/testdvd-pal.mpeg

testsuite/dvd-ntsc.iso: testsuite/dvd-ntsc
	mkisofs -dvd-video -udf -o testsuite/dvd-ntsc.iso testsuite/dvd-ntsc/

testsuite/dvd-ntsc: testsuite/testdvd-ntsc.mpeg
	sed s/-format/-ntsc/ < $(srcdir)/testsuite/testdvd-template.xml > testsuite/testdvd-ntsc.xml
	VIDEO_FORMAT=NTSC dvdauthor -o testsuite/dvd-ntsc -x testsuite/testdvd-ntsc.xml

# Using random video already packaged in Debian
testsuite/testdvd-ntsc.mpeg: /usr/share/k3b/extra/k3bphotovcd.mpg
	mkdir -p testsuite && ffmpeg -i /usr/share/k3b/extra/k3bphotovcd.mpg -filter:v "scale='if(gt(a,720/480),720,-1)':'if(gt(a,720/480),-1,480)',pad=w=720:h=480:x=(ow-iw)/2:y=(oh-ih)/2"  -target ntsc-dvd testsuite/testdvd-ntsc.mpeg

clean-local:
	-rm -rf testsuite/dvd-pal testsuite/dvd-ntsc