Magellan Linux

Contents of /branches/magellan-next/core/libofa/libofa-0.9.3-r6.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7170 - (show annotations) (download)
Thu Sep 30 10:00:24 2010 UTC (13 years, 7 months ago) by niro
File size: 1174 byte(s)
-fix compilation with gcc-4.5
1 # $Id: libofa-0.9.3-r5.smage2 3509 2009-10-22 22:41:58Z niro $
2
3 PNAME="libofa"
4 PVER="0.9.3"
5 PBUILD="r6"
6
7 PCATEGORIE="media-libs"
8 STATE="unstable"
9
10 DESCRIPTION="LibOFA (Library Open Fingerprint Architecture) is an open-source audio fingerprint created and provided by MusicIP."
11 HOMEPAGE="http://code.google.com/p/musicip-libofa/"
12
13 DEPEND=">= dev-libs/expat-2
14 >= sci-libs/fftw3-3.2
15 >= net-misc/curl-7"
16
17 SDEPEND=">= dev-util/pkgconfig-0.25"
18
19 SRCFILE="${PNAME}-${PVER}.tar.gz"
20 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
21
22 sminclude mbuild
23
24 SRC_URI=(
25 http://musicip-libofa.googlecode.com/files/${SRCFILE}
26 mirror://${PNAME}/${SRCFILE}
27 mirror://${PNAME}/${PNAME}-${PVER}-gcc4.patch
28 mirror://${PNAME}/${PNAME}-${PVER}-gcc43.patch
29 mirror://${PNAME}/${PNAME}-${PVER}-gcc45.patch
30 )
31
32 UP2DATE="updatecmd http://code.google.com/p/musicip-libofa/downloads/list | grep ${PNAME}- | lasttarball gz"
33
34 src_prepare()
35 {
36 munpack ${SRCFILE} || die
37 cd ${SRCDIR}
38
39 # fixes compilation with gcc4
40 mpatch ${PNAME}-${PVER}-gcc4.patch || die
41
42 # fixes compilation with gcc4.3
43 mpatch ${PNAME}-${PVER}-gcc43.patch || die
44
45 # fixes compilation with gcc4.5
46 mpatch ${PNAME}-${PVER}-gcc45.patch || die
47 }