Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=xfcetesting.git;a=commitdiff;h=ece93e22e3b3130f7cfc6c842ba66e91a31fd5b4
commit ece93e22e3b3130f7cfc6c842ba66e91a31fd5b4 Author: Devil505 <[email protected]> Date: Thu Oct 27 22:33:55 2011 +0200 sndlib-20111027-1-i686 * new package diff --git a/source/multimedia-extra/sndlib/FrugalBuild b/source/multimedia-extra/sndlib/FrugalBuild new file mode 100644 index 0000000..1ab16de --- /dev/null +++ b/source/multimedia-extra/sndlib/FrugalBuild @@ -0,0 +1,58 @@ +# Compiling Time: 0.23 SBU +# Maintainer: Devil505 <[email protected]> + +pkgname=sndlib +pkgver=20111027 +pkgrel=1 +pkgdesc="The Snd/CLM sound library" +url="http://ccrma-ftp.stanford.edu/" +depends=('alsa-lib' 'jack' 'portaudio' 'esd' 'gsl') +groups=('multimedia-extra') +archs=('i686' 'x86_64') +options=('noversrc') +up2date="$pkgver" +source=(ftp://ccrma-ftp.stanford.edu/pub/Lisp/$pkgname.tar.gz) +sha1sums=('5aef06ca269921021931ddde9a2cfe9c0f433b0b') + +build() { + Fcd $pkgname + + # x86_64 fPIC + export CFLAGS="$CFLAGS -fPIC" + + # add missing LDFLAGS + export LDFLAGS="$LDFLAGS `pkg-config --libs alsa jack esound portaudio-2.0`" + + # use gcc -shared instead of ld + sed -i "s|@SO_LD@|gcc -shared|" makefile.in || Fdie + + # replace repeated -lm with missing -lesd in sndlib-config + sed -i "s|lm|lesd|" sndlib-config.in || Fdie + + # enable most + Fmake --prefix=/usr \ + --with-esd \ + --with-alsa \ + --with-oss \ + --with-jack \ + --with-doubles \ + --with-gsl \ + --with-s7 \ + --with-portaudio + + # prepare dirs + Fmkdir /usr/{bin,include,lib} + + # config tool + Fexerel sndlib-config usr/bin/ + + # shared lib + Fexerel libsndlib.so usr/lib/ + + # static lib + Finstallrel 644 libsndlib.a usr/lib/ + + # headers + Finstallrel 644 [^_]*.h usr/include/ +} +# optimization OK _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
