| 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 |
| 5 | # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu |
| 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() { |
| 15 | cd $name-$version |
| 16 | |
| 17 | # fix compilation with gcc 4.3 |
| 18 | patch -Np1 -i $SRC/$name.diff |
| 19 | |
| 20 | ./configure --build=$CHOST \ |
| 21 | --host=$CTARGET \ |
| 22 | --prefix=/usr \ |
| 23 | --with-ogg=$CLFS/usr/lib |
| 24 | make |
| 25 | make DESTDIR=$PKG install |
| 26 | rm -rf $PKG/usr/share/doc |
| 27 | } |