Magellan Linux

Contents of /branches/R11-unstable/extras/libofa/libofa-0.9.3-r9.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 32660 - (show annotations) (download)
Mon Apr 29 13:22:10 2019 UTC (5 years ago) by niro
File size: 1361 byte(s)
-release branches/R11-unstable
1 # $Id$
2
3 PNAME="libofa"
4 PVER="0.9.3"
5 PBUILD="r9"
6
7 PCAT="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 >= sys-libs/libstdc++-5.3"
16
17 SDEPEND=">= dev-util/pkgconfig-0.25
18 >= virtual/sed"
19
20 SRCFILE="${PNAME}-${PVER}.tar.gz"
21 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
22
23 sminclude mbuild
24
25 SRC_URI=(
26 http://musicip-libofa.googlecode.com/files/${SRCFILE}
27 mirror://${PNAME}/${SRCFILE}
28 mirror://${PNAME}/${PNAME}-${PVER}-gcc4.patch
29 mirror://${PNAME}/${PNAME}-${PVER}-gcc43.patch
30 mirror://${PNAME}/${PNAME}-${PVER}-gcc45.patch
31 mirror://${PNAME}/${PNAME}-${PVER}-gcc47.patch
32 )
33
34 UP2DATE="updatecmd http://code.google.com/p/musicip-libofa/downloads/list | grep ${PNAME}- | lasttarball gz"
35
36 src_prepare()
37 {
38 munpack ${SRCFILE} || die
39 cd ${SRCDIR}
40
41 # fixes compilation with gcc4
42 mpatch ${PNAME}-${PVER}-gcc4.patch || die
43
44 # fixes compilation with gcc4.3
45 mpatch ${PNAME}-${PVER}-gcc43.patch || die
46
47 # fixes compilation with gcc4.5
48 mpatch ${PNAME}-${PVER}-gcc45.patch || die
49
50 # fixes compilation with gcc4.7
51 mpatch ${PNAME}-${PVER}-gcc47.patch || die
52
53 # fix build with newer curl
54 sed -i '/#include <curl\/types.h>/d' examples/protocol.cpp || die
55 }