wok view flac/receipt @ rev 4217

flac: fix build with gcc 4.x
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Thu Sep 24 10:21:35 2009 +0000 (2009-09-24)
parents 1ed1357f1ef2
children fb8aceda65ff
line source
1 # SliTaz package receipt.
3 PACKAGE="flac"
4 VERSION="1.2.1"
5 CATEGORY="multimedia"
6 SHORT_DESC="FLAC stands for Free Lossless Audio Codec."
7 MAINTAINER="pankso@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 DEPENDS="libogg"
10 BUILD_DEPENDS="libogg-dev"
11 WEB_SITE="http://flac.sourceforge.net/"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 # gcc4 fix: http://bugs.gentoo.org/199579
18 busybox patch -p0 -i stuff/flac-1.2.1_gcc4.u
19 cd $src
20 ./configure \
21 --prefix=/usr \
22 --mandir=/usr/share/man \
23 $CONFIGURE_ARGS &&
24 make &&
25 make DESTDIR=$PWD/_pkg install
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/usr/lib
32 cp -a $_pkg/usr/bin $fs/usr
33 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
34 }