diff -r 645923d1e875 -r cada8e2b51a4 xmms/xmms.spec
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/xmms/xmms.spec Fri Jan 16 11:50:46 2009 +0100
@@ -0,0 +1,153 @@
+##
+## xmms.spec -- OpenPKG RPM Package Specification
+## Copyright (c) 2000-2008 OpenPKG Foundation e.V.
+##
+## Permission to use, copy, modify, and distribute this software for
+## any purpose with or without fee is hereby granted, provided that
+## the above copyright notice and this permission notice appear in all
+## copies.
+##
+## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
+## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+## SUCH DAMAGE.
+##
+
+# package information
+Name: xmms
+Summary: X Mulitmedia System
+URL: http://www.xmms.org/
+Vendor: Peter Alm
+Packager: OpenPKG Foundation e.V.
+Distribution: OpenPKG Community
+Class: EVAL
+Group: Audio
+License: GPL
+Version: 1.2.11
+Release: 20090106
+
+# list of sources
+Source0: http://xmms.org/files/1.2.x/xmms-%{version}.tar.bz2
+Source1: xmmsskins.tar
+Patch0: xmms.patch
+
+# build information
+Prefix: %{l_prefix}
+BuildRoot: %{l_buildroot}
+BuildPreReq: OpenPKG, openpkg >= 20040130, X11, gtk, libiconv
+BuildPreReq: infozip, glib, glib::with_threads = yes
+BuildPreReq: libxml, libmikmod, vorbis-libs
+PreReq: OpenPKG, openpkg >= 20040130, X11, gtk, libiconv
+PreReq: infozip, glib, glib::with_threads = yes
+PreReq: libxml, libmikmod, vorbis-libs
+AutoReq: no
+AutoReqProv: no
+
+%description
+ The X Multimedia System (XMMS) is a cross-platform Multimedia player
+ for Unix/X11 resembling the look & feel of the popular WinAmp.
+
+%track
+ prog xmms = {
+ version = %{version}
+ url = http://xmms.org/download.php
+ regex = xmms-(__VER__)\.tar\.bz2
+ }
+
+%prep
+ %setup -q
+ %patch -p1
+ %{l_shtool} subst \
+ -e 's;\(#include \);/*\1*/;' \
+ wmxmms/wmxmms.c
+ %{l_shtool} subst \
+ -e 's;@l_tar@;%{l_tar};g' \
+ -e 's;@l_gzip@;%{l_gzip};g' \
+ -e 's;@l_bzip2@;%{l_bzip2};g' \
+ -e 's;@l_unzip@;%{l_prefix}/bin/unzip;g' \
+ xmms/skin.c
+
+%build
+ # link main binaries statically
+ CC="%{l_cc}" \
+ CFLAGS="%{l_cflags}" \
+ CPPFLAGS="%{l_cppflags libxml2/libxml}" \
+ LDFLAGS="%{l_ldflags}" \
+ XML_CONFIG="%{l_prefix}/bin/xml2-config" \
+ ./configure \
+ --prefix=%{l_prefix} \
+ --with-x \
+ --x-includes=`%{l_rc} --query x11_incdir` \
+ --x-libraries=`%{l_rc} --query x11_libdir` \
+ --enable-static \
+ --disable-shared \
+ --with-glib-prefix=%{l_prefix} \
+ --with-gtk-prefix=%{l_prefix} \
+ --with-libxml-prefix=%{l_prefix} \
+ --with-libmikmod-prefix=%{l_prefix} \
+ --enable-vorbis \
+ --with-vorbis-prefix=%{l_prefix} \
+ --with-ogg-prefix=%{l_prefix} \
+ --with-gnome-includes=/usr/include/libgnomeui-2.0 \
+ --with-gnome-libs=/usr/lib \
+ --with-gnome=/usr \
+ --enable-esd \
+ --with-esd-prefix=/usr \
+ --disable-nls \
+ --enable-3dnow
+ %{l_make} %{l_mflags -O}
+
+ # link plugins as shared objects instead
+ CC="%{l_cc}" \
+ CFLAGS="%{l_cflags}" \
+ CPPFLAGS="%{l_cppflags libxml2/libxml}" \
+ LDFLAGS="%{l_ldflags}" \
+ XML_CONFIG="%{l_prefix}/bin/xml2-config" \
+ ./configure \
+ --prefix=%{l_prefix} \
+ --with-x \
+ --x-includes=`%{l_rc} --query x11_incdir` \
+ --x-libraries=`%{l_rc} --query x11_libdir` \
+ --disable-static \
+ --enable-shared \
+ --with-glib-prefix=%{l_prefix} \
+ --with-gtk-prefix=%{l_prefix} \
+ --with-libxml-prefix=%{l_prefix} \
+ --with-libmikmod-prefix=%{l_prefix} \
+ --enable-vorbis \
+ --with-vorbis-prefix=%{l_prefix} \
+ --with-ogg-prefix=%{l_prefix} \
+ --with-gnome-includes=/usr/include/libgnomeui-2.0 \
+ --with-gnome-libs=/usr/lib \
+ --with-gnome=/usr \
+ --enable-esd \
+ --with-esd-prefix=/usr \
+ --disable-nls \
+ --enable-3dnow
+ ( cd Input; %{l_make} %{l_mflags -O} clean all) || exit $?
+ ( cd Output; %{l_make} %{l_mflags -O} clean all) || exit $?
+ ( cd General; %{l_make} %{l_mflags -O} clean all) || exit $?
+ ( cd Effect; %{l_make} %{l_mflags -O} clean all) || exit $?
+ ( cd Visualization; %{l_make} %{l_mflags -O} clean all) || exit $?
+
+%install
+ rm -rf $RPM_BUILD_ROOT
+ %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
+ ( cd $RPM_BUILD_ROOT%{l_prefix}/share/xmms
+ %{l_tar} xf %{SOURCE xmmsskins.tar}
+ ) || exit $?
+ %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
+
+%files -f files
+
+%clean
+ rm -rf $RPM_BUILD_ROOT
+