Annotation of /branches/magellan-next/core/libofa/libofa-0.9.3-r7.smage2
Parent Directory | Revision Log
Revision 8726 -
(hide annotations)
(download)
Thu Jul 28 08:27:41 2011 UTC (12 years, 11 months ago) by niro
File size: 1217 byte(s)
Thu Jul 28 08:27:41 2011 UTC (12 years, 11 months ago) by niro
File size: 1217 byte(s)
-fixed build against newer curl versions
1 | niro | 8725 | # $Id$ |
2 | |||
3 | PNAME="libofa" | ||
4 | PVER="0.9.3" | ||
5 | PBUILD="r7" | ||
6 | |||
7 | PCATEGORIE="media-libs" | ||
8 | |||
9 | DESCRIPTION="LibOFA (Library Open Fingerprint Architecture) is an open-source audio fingerprint created and provided by MusicIP." | ||
10 | HOMEPAGE="http://code.google.com/p/musicip-libofa/" | ||
11 | |||
12 | DEPEND=">= dev-libs/expat-2 | ||
13 | >= sci-libs/fftw3-3.3 | ||
14 | >= net-misc/curl-7" | ||
15 | |||
16 | niro | 8726 | SDEPEND=">= dev-util/pkgconfig-0.25 |
17 | >= sys-apps/sed-4" | ||
18 | niro | 8725 | |
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 | niro | 8726 | |
48 | # fix build with newer curl | ||
49 | sed -i '/#include <curl\/types.h>/d' examples/protocol.cpp || die | ||
50 | niro | 8725 | } |