#!/bin/sh

NAME="libshout"
DESC="Library for accessing a shoutcast/icecast server"

MAKEDEPS="speex libtheora libvorbis "

PKG_VER=2.4.6
SOURCE="http://downloads.xiph.org/releases/libshout/libshout-$PKG_VER.tar.gz"

build() {
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--with-openssl
	make LDFLAGS+=-lspeex
}

check() {
	make check
}

package() {
	make DESTDIR="$PKG_DEST" install
}