[Frugalware-devel] FB esperanza review and split xmms2

Gabriel C crazy at frugalware.org
Fri Mar 28 00:26:26 CET 2008


gaetan (bouleetbil) wrote:
> Hello

Hi,

> I don't know if it's possible and correct but I would like split xmms2 with all features for can compile any client.
> the patch git is attached
> FS#2899 - [REQ] bindings for XMMS2
>

For that kind stuff you'll need to send 2 patches , also the Maintainer of xmms2 has to agree on first one first.

Still some comments :)

 
> --- a/source/multimedia-extra/xmms2/FrugalBuild
+++ b/source/multimedia-extra/xmms2/FrugalBuild
@@ -4,28 +4,43 @@
 pkgname=xmms2
 pkgver=20071115
 origname=0.4DrKosmos
-pkgrel=1
+pkgrel=2
 pkgdesc="A complete rewrite of the popular music player."
 _F_sourceforge_ext=".tar.bz2"
 Finclude sourceforge
 url="http://xmms2.xmms.org/"
 depends=('gtk+2' 'alsa-lib' 'libmad' 'libvorbis' 'curl>=7.16.0' 'faad2' \
-	'libmms' 'mac' 'ruby' 'gamin' 'flac>=1.1.3' 'libmpcdec' 'jack' \
-	'libmodplug' 'libofa' 'pyrex' 'libcdio' 'libshout' 'libsmbclient' \
+	'libmms' 'mac' 'gamin' 'flac>=1.1.3' 'libmpcdec' 'jack' \
+	'libmodplug' 'libofa'  'libcdio' 'libshout' 'libsmbclient' \
 	'libsamplerate' 'libsidplay2')
-makedepends=('glib2' 'sqlite3')
+makedepends=('glib2' 'sqlite3' 'libboost' 'boost' 'perl' 'pyrex' 'ruby')
 groups=('multimedia-extra')
 archs=('i686' 'x86_64')
 up2date=$pkgver
 source=(${source/$pkgver/$origname})
 sha1sums=('ac009af5e2802135bbde82d6a59c67da750f580e')
 
+#subpkg
+subpkgs=("xmms2-libs-c++" "xmms2-libs-perl" "xmms2-libs-python" "xmms2-libs-ruby")
+subdescs=('xmms2 C++ bindings' 'Library xmms2 for perl' 'Library xmms2 for python' 'Library xmms2 for ruby')
+subdepends=("$pkgname=$pkgver libboost" "$pkgname=$pkgver perl" "$pkgname=$pkgver pyrex" "$pkgname=$pkgver ruby")
+subgroups=('multimedia-extra' 'multimedia-extra' 'multimedia-extra' 'multimedia-extra')
+subarchs=('i686' 'i686' 'i686' 'i686')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Since the main package is already packaged for 64bit you cannot do that.


 build()
 {
 	Fcd $pkgname-$origname
 	./waf configure --prefix=/usr --nocache -p || Fdie
 	./waf build || Fdie
 	./waf install --destdir=$Fdestdir
+	#split libs c++
+	Fsplit xmms2-libs-c++ usr/include/xmms2/xmmsclient/xmmsclient++*
+	Fsplit xmms2-libs-c++ usr/lib/libxmmsclient++*
+	#for client perl
+	Fsplit xmms2-libs-perl usr/lib/perl*

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Before you are going to do that you'll need some magic manually. ( see the subversion package as example )

+	#for client python
+	Fsplit xmms2-libs-python usr/lib/python*
+	#for ruby client
+	Fsplit xmms2-libs-ruby usr/lib/ruby*
 }
 
-# optimization OK
+# optimization OK

rest looks fine for me , but as said I'm not the maintainer

crazy


More information about the Frugalware-devel mailing list