faad2: cross build and dbg support.

This commit is contained in:
Juan RP 2013-03-18 20:23:48 +01:00
parent 1bffdce776
commit d6ce18293b
2 changed files with 9 additions and 17 deletions

View File

@ -1,18 +1,10 @@
# Template file for 'faad2-devel'.
#
depends="glibc-devel faad2"
short_desc="${short_desc} (development files)"
long_desc="${long_desc}
depends="glibc-devel faad2>=${version}"
short_desc="${short_desc} - development files"
This package contains files for development, headers, static libs, etc."
do_install()
{
do_install() {
mkdir -p ${DESTDIR}/usr/lib
mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr
#mv ${SRCPKGDESTDIR}/usr/lib/pkgconfig ${DESTDIR}/usr/lib
mv ${SRCPKGDESTDIR}/usr/lib/*.*a ${DESTDIR}/usr/lib
#mv ${SRCPKGDESTDIR}/usr/share ${DESTDIR}/usr
}

View File

@ -1,13 +1,15 @@
# Template file for 'faad2'
pkgname=faad2
version=2.7
revision=3
distfiles="${SOURCEFORGE_SITE}/faac/$pkgname-$version.tar.bz2"
revision=4
build_style=gnu-configure
configure_args="CFLAGS=-fPIC"
make_install_args="manmdir=/usr/share/man/man1"
short_desc="AAC decoding library"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.audiocoding.com/"
license="Freeware, GPL-2"
distfiles="${SOURCEFORGE_SITE}/faac/$pkgname-$version.tar.bz2"
checksum=14561b5d6bc457e825bfd3921ae50a6648f377a9396eaf16d4b057b39a3f63b5
long_desc="
FAAD2 is the fastest ISO AAC audio decoder available. FAAD2 correctly
@ -16,11 +18,9 @@ long_desc="
subpackages="$pkgname-devel"
post_install()
{
cd ${wrksrc} || return 1
post_install() {
install -D -m644 common/mp4ff/mp4ff_int_types.h \
${DESTDIR}/usr/include/mp4ff_int_types.h || return 1
${DESTDIR}/usr/include/mp4ff_int_types.h
mv ${DESTDIR}/usr/share/man/man1/faad.man \
${DESTDIR}/usr/share/man/man1/faad.1
}