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