milis/talimatname/genel/libmad/talimat

30 lines
799 B
Plaintext

# Description: Yüksek kaliteli bir MPEG ses dekoderi
# URL: http://www.underbit.com/products/mad/
# Packager: milisarge
# Depends on:
name=libmad
version=0.15.1b
release=2
source=(ftp://ftp.mars.org/pub/mpeg/$name-$version.tar.gz\
http://www.linuxfromscratch.org/patches/blfs/svn/libmad-$version-fixes-1.patch
mad.pc)
build() {
cd $name-$version
patch -Np1 -i ../libmad-$version-fixes-1.patch
sed "s@AM_CONFIG_HEADER@AC_CONFIG_HEADERS@g" -i configure.ac
touch NEWS AUTHORS ChangeLog
autoreconf -fi
./configure --prefix=/usr --disable-static
make
make DESTDIR=$PKG install
mkdir -p $PKG/usr/lib/pkgconfig
install -Dm644 $SRC/mad.pc $PKG/usr/lib/pkgconfig/mad.pc
sed -i "s/#version#/$version/" $PKG/usr/lib/pkgconfig/mad.pc
}