Magellan Linux

Annotation of /trunk/extras/liblastfm/liblastfm-0.3.0-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4597 - (hide annotations) (download)
Fri Dec 25 20:21:20 2009 UTC (14 years, 5 months ago) by niro
File size: 1014 byte(s)
-fixed ruby-1.9
1 niro 4592 # $Id$
2    
3     PNAME="liblastfm"
4     PVER="0.3.0"
5     PBUILD="r1"
6    
7     PCATEGORIE="media-libs"
8     STATE="unstable"
9    
10     DESCRIPTION="A Qt C++ library for the Last.fm webservices."
11     HOMEPAGE="http://github.com/mxcl/liblastfm/"
12    
13     DEPEND=">= x11-libs/qt4-core-4.5
14     >= media-libs/libsamplerate-0.1.4
15     >= sci-libs/fftw3-3.2.2"
16    
17     SDEPEND=">= dev-lang/ruby-1.9"
18    
19     SRCFILE="${PNAME}-${PVER}.tar.bz2"
20     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
21    
22 niro 4593 sminclude mbuild qt4
23 niro 4592
24     SRC_URI=(
25     http://cdn.last.fm/src/${SRCFILE}
26     mirror://${PNAME}/${SRCFILE}
27     )
28    
29     UP2DATE="updatecmd_sourceforge ${PNAME/lib/} ${PNAME/lib/}-src - ${PNAME/lib/}"
30    
31     src_prepare()
32     {
33     munpack ${SRCFILE} || die
34     cd ${SRCDIR}
35    
36     # fix multilib pathes
37     find . -name *.pro -exec sed -i -e "/target.path/s/lib/$(mlibdir)/g" {} + || die
38 niro 4594
39     # fix qmake
40 niro 4596 sed -i "s:qmake-qt4:${QMAKE}:g" admin/which_qmake.rb || die
41 niro 4597
42     # fix ruby-1.9; do not require ftools
43     sed -i "s/require 'ftools'//g" admin/* || die
44 niro 4592 }
45    
46     src_compile()
47     {
48     cd ${SRCDIR}
49    
50     ./configure --prefix "/usr" --no-strip --release || die
51     mmake || die
52     }

Properties

Name Value
svn:keywords Id