# HG changeset patch # User David Demelier # Date 1565087634 -7200 # Node ID 6b5548acde9c8bfbd620ff7b833845be07562b5d # Parent b1007943ebf56935ca1aedd5c737477ca9172ebb audio/faad2: initial import, closes #1739 diff -r b1007943ebf5 -r 6b5548acde9c audio/faad2/faad2.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/audio/faad2/faad2.sh Tue Aug 06 12:33:54 2019 +0200 @@ -0,0 +1,58 @@ +#!/bin/sh +# +# Copyright (c) 2019 David Demelier +# +# Permission to use, copy, modify, and/or distribute this software for any +# purpose with or without fee is hereby granted, provided that the above +# copyright notice and this permission notice appear in all copies. +# +# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +# + +PKGNAME=faad2 +PKGVERSION=2.8.8 +PKGREVISION=1 +PKGLICENSE="GPLv2 CUSTOM" +PKGSUMMARY="AAC audio decoder" +PKGDOWNLOAD="https://downloads.sourceforge.net/sourceforge/faac/$PKGNAME-$PKGVERSION.tar.gz" + +: ${CHOST:=$(uname -m)-linux-musl} +: ${CBUILD:=$(uname -m)-linux-musl} +: ${CC:=clang} +: ${CFLAGS:=-O2} +: ${CXX:=clang++} +: ${CXXFLAGS:=-O2} +: ${LDFLAGS:=} +: ${LIBS:=} + +build() +{ + rm -rf $PKGNAME-$PKGVERSION + tar xvf $PKGNAME-$PKGVERSION.tar.gz + cd $PKGNAME-$PKGVERSION + + CC="$CC" \ + CFLAGS="$CFLAGS" \ + CXX="$CXX" \ + CXXFLAGS="$CXXFLAGS" \ + LDFLAGS="$LDFLAGS" \ + LIBS="$LIBS" \ + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix= \ + --disable-static \ + --enable-shared + make + make install DESTDIR=$DESTDIR + rm -f $DESTDIR/lib/libfaad*.la + + cd .. + rm -rf $PKGNAME-$PKGVERSION +} diff -r b1007943ebf5 -r 6b5548acde9c audio/faad2/faad2.sha1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/audio/faad2/faad2.sha1 Tue Aug 06 12:33:54 2019 +0200 @@ -0,0 +1,1 @@ +0d49c516d4a83c39053a9bd214fddba72cbc34ad faad2-2.8.8.tar.gz