wok-4.x view libmad-dev/receipt @ rev 2668

Patch libmad-dev for mad.pc
author Rohit Joshi <jozee@slitaz.org>
date Sun Apr 19 09:59:44 2009 +0000 (2009-04-19)
parents 21a9cf62405e
children 13da884d3629
line source
1 # SliTaz package receipt.
3 PACKAGE="libmad-dev"
4 VERSION="0.15.1b"
5 CATEGORY="development"
6 SHORT_DESC="MAD is a high-quality MPEG audio decoder devel files."
7 MAINTAINER="pankso@slitaz.org"
8 WANTED="libmad"
9 WEB_SITE="http://www.underbit.com/products/mad/"
11 # Rules to gen a SliTaz package suitable for Tazpkg.
12 genpkg_rules()
13 {
14 mkdir -p $fs/usr/lib
15 cp -a $_pkg/usr/include $fs/usr
16 cp -a $_pkg/usr/lib/*.*a $fs/usr/lib
18 # mad.pc patch
19 mkdir -p $fs/usr/lib/pkgconfig
20 cat > $fs/usr/lib/pkgconfig/mad.pc << "EOF"
21 prefix=/usr
22 exec_prefix=${prefix}
23 libdir=${exec_prefix}/lib
24 includedir=${prefix}/include
26 Name: mad
27 Description: MPEG audio decoder
28 Version: $VERSION
30 Libs: -L${libdir} -lmad
31 Cflags: -I${includedir}
32 EOF
34 }