#!/bin/sh

name="xmmsarts"
title="xmms-aRts"
package="xmmsarts"
version="0.4"
build="1"
noarch="n"
build_info="Standard build."

info="aRts output plug-in for XMMS."
desc="This plug-in allows XMMS to play sounds though aRts sound servers.
This is a must-have for KDE2 users, because aRts, which is by default
started in this environment, uses DSP, thus preventing OSS-plug-in
from working."
category="viewer/plugin"
environment="library"
contact="$name@packages.packware.gnu.pl"
vendor="The Packware Project"
vendor_id="pw"

requires=""
obsoletes=""
conflicts=""

docs_source="AUTHORS,COPYING,ChangeLog,INSTALL,NEWS,README"
docs_cwd=""

strip_bin="y"
reset_own="y"
reset_dir="y"
reset_fil="y"
delete_cat="y"

. /usr/src/tgz/lib/builder.defs

add_source http://home.earthlink.net/~bheath/xmms-arts/$name-$version.tar.gz xmms-arts-$version

apply_patch xmmsarts-nocmallocc.pw.patch

configure_option --prefix=/usr
# I don't see any reason to build static .a library. If you do, change this.
configure_option --disable-static
install_option DESTDIR=$pkg_main

parent_package="$package"
write_info main

cd $src1

do_configure
do_make
do_install

# This is not needed, too.
rm -f $pkg_main/usr/lib/xmms/Output/*.la

make_docs

make_package main

clean_up
