Magellan Linux

Contents of /branches/magellan-next/core/libtunepimp/libtunepimp-0.5.3-r7.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7172 - (show annotations) (download)
Thu Sep 30 10:16:50 2010 UTC (13 years, 7 months ago) by niro
File size: 1780 byte(s)
-fixed compilation with gcc-4.5
1 # $Id: libtunepimp-0.5.3-r6.smage2 3514 2009-10-22 22:51:30Z niro $
2
3 PNAME="libtunepimp"
4 PVER="0.5.3"
5 PBUILD="r7"
6
7 PCATEGORIE="media-libs"
8 STATE="unstable"
9
10 DESCRIPTION="The TunePimp library is a development library geared towards developers who wish to create MusicBrainz enabled tagging applications."
11 HOMEPAGE="http://musicbrainz.org/doc/libtunepimp"
12
13 DEPEND=">= media-libs/musicbrainz-2.1
14 >= media-libs/flac-1.2
15 >= media-libs/libvorbis-1.2
16 >= media-libs/libmad-0.15.1b
17 >= media-libs/libmp4v2-1.9
18 >= media-libs/libofa-0.9.3
19 >= sys-libs/readline-6.1"
20
21 SDEPEND=">= dev-util/pkgconfig-0.25"
22
23 SRCFILE="${PNAME}-${PVER}.tar.gz"
24 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
25
26 sminclude mbuild
27
28 SRC_URI=(
29 ftp://ftp.musicbrainz.org/pub/musicbrainz/${SRCFILE}
30 mirror://${PNAME}/${SRCFILE}
31 mirror://${PNAME}/${PNAME}-${PVER}-gcc43.patch
32 mirror://${PNAME}/${PNAME}-${PVER}-libtool.patch
33 mirror://${PNAME}/${PNAME}-${PVER}-build-fix.patch
34 mirror://${PNAME}/${PNAME}-${PVER}-libmp4v2.patch
35 mirror://${PNAME}/${PNAME}-${PVER}-gcc45.patch
36 )
37
38 UP2DATE="updatecmd ftp://ftp.musicbrainz.org/pub/musicbrainz/ | grep ${PNAME}- | lasttarball gz"
39
40 src_prepare()
41 {
42 munpack ${SRCFILE} || die
43 cd ${SRCDIR}
44
45 # fixes issues with gcc-4.3
46 mpatch ${PNAME}-${PVER}-gcc43.patch || die
47
48 # link issues with libtool-2.2
49 mpatch ${PNAME}-${PVER}-libtool.patch || die
50
51 # misc compile fixes
52 mpatch ${PNAME}-${PVER}-build-fix.patch || die
53
54 # support newer libmp4v2
55 mpatch ${PNAME}-${PVER}-libmp4v2.patch || die
56
57 # fixes issues with gcc-4.5
58 mpatch ${PNAME}-${PVER}-gcc45.patch || die
59
60 # do not try to link against obsolete libtermcap
61 sed -i 's:-ltermcap:-lncurses:' configure || die
62 sed -i 's:-lthr:-lpthread:g' lib/threads/posix/Makefile.in || die
63
64 autoreconf --verbose --install --force || die
65 }