Commit | Line | Data |
---|---|---|
603a4b9c VM |
1 | # Description: Free Lossless Audio Codec |
2 | # URL: http://flac.sourceforge.net/ | |
3 | # Maintainer: Tilman Sauerbeck, tilman at crux dot nu | |
4 | # Packager: Matt Housh, jaeger at morpheus dot net | |
38b50d66 | 5 | # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu |
603a4b9c VM |
6 | # Depends on: libogg |
7 | ||
8 | name=flac | |
9 | version=1.2.1 | |
10 | release=1 | |
11 | source=(http://dl.sourceforge.net/sourceforge/$name/$name-$version.tar.gz | |
12 | $name.diff) | |
13 | ||
14 | build() { | |
1a2141c4 | 15 | cd $name-$version |
603a4b9c | 16 | |
1a2141c4 VM |
17 | # fix compilation with gcc 4.3 |
18 | patch -Np1 -i $SRC/$name.diff | |
603a4b9c | 19 | |
1a2141c4 | 20 | ./configure --build=$CHOST \ |
603a4b9c VM |
21 | --host=$CTARGET \ |
22 | --prefix=/usr \ | |
23 | --with-ogg=$CLFS/usr/lib | |
1a2141c4 VM |
24 | make |
25 | make DESTDIR=$PKG install | |
26 | rm -rf $PKG/usr/share/doc | |
603a4b9c | 27 | } |