# Compiling Time: 0.23 SBU # Maintainer: Devil505 pkgname=sndlib pkgver=20160821 pkgrel=1 pkgdesc="The Snd/CLM sound library" url="http://ccrma-ftp.stanford.edu/" depends=('alsa-lib' 'jack' 'portaudio' 'esd>=0.2.41' 'gsl>=2.1' 'libsamplerate') groups=('multimedia-extra') archs=('i686' 'x86_64') options=('noversrc') up2date="$pkgver" source=(ftp://ccrma-ftp.stanford.edu/pub/Lisp/$pkgname.tar.gz) sha1sums=('e80298b8a8702e6ce9af4e4c3e8ca06d930dc304') 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/ # headers Finstallrel 644 [^_]*.h usr/include/ } # optimization OK