vcdimager-2.0.1.recipe revision c19dae8a
1SUMMARY="Author, disassemble and analyze Video CDs"
2DESCRIPTION="GNU VCDImager is a full-featured mastering suite for authoring, \
3disassembling and analyzing Video CDs and Super Video CDs.
4
5The following features are available so far (some features are only available \
6in the latest alpha snapshots):
7
8* Free software available under the GNU Public License
9* Support for Video CD 1.1 and 2.0 disc formats
10* Support for the Super Video CD 1.0 disc format
11* Full PBC (playback control) support (play lists, selection lists and end \
12lists)
13* Support for segment play items
14* Automatic padding of MPEG streams on the fly
15* Support for 99-minute (out-of-specification) CD-R media
16* Extraction of Video CDs into files (incl. the PBC information)
17* Runs on all major UNIX flavors and on Win32
18* Use of XML for the description of Video CDs"
19HOMEPAGE="http://www.vcdimager.org/"
20COPYRIGHT="2000-2004 Herbert Valerio Riedel
21	2001 Arnd Bergmann
22	2004-2011 Rocky Bernstein"
23LICENSE="GNU GPL v2"
24REVISION="4"
25SOURCE_URI="https://ftpmirror.gnu.org/vcdimager/vcdimager-$portVersion.tar.gz"
26CHECKSUM_SHA256="67515fefb9829d054beae40f3e840309be60cda7d68753cafdd526727758f67a"
27PATCHES="vcdimager-$portVersion.patchset"
28
29ARCHITECTURES="x86_gcc2 x86 x86_64"
30SECONDARY_ARCHITECTURES="x86_gcc2 x86"
31
32libVersion="0.2.0"
33libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
34
35PROVIDES="
36	vcdimager$secondaryArchSuffix = $portVersion
37	lib:libvcdinfo$secondaryArchSuffix = $libVersionCompat
38	"
39if [ -z "$secondaryArchSuffix" ]; then
40	PROVIDES="$PROVIDES
41		cmd:cdxa2mpeg = $portVersion
42		cmd:vcd_info = $portVersion
43		cmd:vcdimager = $portVersion
44		cmd:vcdxbuild = $portVersion
45		cmd:vcdxgen = $portVersion
46		cmd:vcdxminfo = $portVersion
47		cmd:vcdxrip = $portVersion
48		"
49fi
50REQUIRES="
51	haiku$secondaryArchSuffix
52	lib:libcdio$secondaryArchSuffix
53	lib:libxml2$secondaryArchSuffix
54	lib:libpopt$secondaryArchSuffix
55	lib:libiconv$secondaryArchSuffix
56	lib:libz$secondaryArchSuffix
57	"
58
59PROVIDES_devel="
60	vcdimager${secondaryArchSuffix}_devel = $portVersion
61	devel:libvcdinfo$secondaryArchSuffix = $libVersionCompat
62	"
63REQUIRES_devel="
64	vcdimager$secondaryArchSuffix == $portVersion base
65	"
66
67BUILD_REQUIRES="
68	haiku${secondaryArchSuffix}_devel
69	devel:libcdio$secondaryArchSuffix >= 19
70	devel:libxml2$secondaryArchSuffix
71	devel:libpopt$secondaryArchSuffix
72	devel:libiconv$secondaryArchSuffix
73	devel:libz$secondaryArchSuffix
74	"
75BUILD_PREREQUIRES="
76	cmd:libtool
77	cmd:aclocal
78	cmd:autoconf
79	cmd:automake
80	cmd:gcc$secondaryArchSuffix
81	cmd:ld$secondaryArchSuffix
82	cmd:make
83	cmd:pkg_config$secondaryArchSuffix
84	"
85
86PATCH()
87{
88	sed -i 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/g' configure.ac
89	sed -i 's/AM_PROG_CC_STDC//g' configure.ac
90}
91
92defineDebugInfoPackage vcdimager$secondaryArchSuffix \
93	"$libDir"/libvcdinfo.so.$libVersion
94
95BUILD()
96{
97	libtoolize --force --copy --install
98	aclocal
99	autoreconf -vfi
100
101	runConfigure ./configure
102	make $jobArgs
103}
104
105INSTALL()
106{
107	make install
108
109	if [ -n "$secondaryArchSuffix" ]; then
110		rm -rf $documentationDir $binDir
111	fi
112
113	rm "$libDir"/*.la
114
115	# prepare develop/lib
116	prepareInstalledDevelLibs libvcdinfo
117	fixPkgconfig
118
119	packageEntries devel \
120		$developDir
121}
122
123TEST()
124{
125	make check
126}
127