#Packager: Dimitris Tzemos <dijemos(at)gmail.com>

pkgname=chromaprint
pkgver=1.1
pkgrel=2dj
source=("https://bitbucket.org/acoustid/chromaprint/downloads/$pkgname-$pkgver.tar.gz")
sourcetemplate=http://people.salixos.org/djemos/salix/$pkgname
url="http://acoustid.org/chromaprint"
docs=("CHANGES.txt" "NEWS.txt" "COPYING.txt" "README.txt")

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"chromaprint (audio fingerprint library)"
"Chromaprint is the core component of the Acoustid project."
"It's a client-side library that implements a custom algorithm for"
"extracting fingerprints from any audio source."
""
"homepage: http://acoustid.org/chromaprint"
)

build() {
	cd $SRC/${pkgname}-${pkgver}
   
	mkdir build 
	cd build
	
	cmake \
	-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
    -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DLIB_SUFFIX=${LIBDIRSUFFIX} \
    -DWITH_AVFFT="OFF" \
    -DWITH_FFTW3="OFF" \
    -DBUILD_TOOLS="OFF" \
    -DCMAKE_BUILD_TYPE=Release ..

	make -j $numjobs || return 1
    make install DESTDIR=$PKG || return 1

}