Magellan Linux

Contents of /trunk/deprecated/libtunepimp/libtunepimp-0.5.3-r10.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 15900 - (show annotations) (download)
Wed Jan 16 10:28:21 2013 UTC (11 years, 4 months ago) by niro
File size: 1818 byte(s)
-moved to 'deprecated'
1 # $Id$
2
3 PNAME="libtunepimp"
4 PVER="0.5.3"
5 PBUILD="r10"
6
7 PCAT="media-libs"
8
9 DESCRIPTION="The TunePimp library is a development library geared towards developers who wish to create MusicBrainz enabled tagging applications."
10 HOMEPAGE="http://musicbrainz.org/doc/libtunepimp"
11
12 DEPEND=">= media-libs/musicbrainz-2.1
13 >= media-libs/flac-1.2
14 >= media-libs/libvorbis-1.3
15 >= media-libs/libmad-0.15.1b
16 >= media-libs/libmp4v2-2
17 >= media-libs/libofa-0.9.3
18 >= sys-libs/readline-6.2"
19
20 SDEPEND=">= dev-util/pkgconfig-0.25
21 >= sys-apps/sed-4"
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 # fix build against newer curl versions
61 sed -i '/#include <curl\/types.h>/d' lib/protocol.cpp || die
62
63 # do not try to link against obsolete libtermcap
64 sed -i 's:-ltermcap:-lncurses:' configure || die
65 sed -i 's:-lthr:-lpthread:g' lib/threads/posix/Makefile.in || die
66
67 autoreconf --verbose --install --force || die
68 }