Contents of /branches/R11-unstable/extras/libofa/libofa-0.9.3-r8.smage2
Parent Directory | Revision Log
Revision 25549 -
(show annotations)
(download)
Tue Nov 25 03:55:02 2014 UTC (9 years, 10 months ago) by niro
File size: 1334 byte(s)
Tue Nov 25 03:55:02 2014 UTC (9 years, 10 months ago) by niro
File size: 1334 byte(s)
-release branches/R11-unstable
1 | # $Id$ |
2 | |
3 | PNAME="libofa" |
4 | PVER="0.9.3" |
5 | PBUILD="r8" |
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 | |
16 | SDEPEND=">= dev-util/pkgconfig-0.25 |
17 | >= virtual/sed" |
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 | mirror://${PNAME}/${PNAME}-${PVER}-gcc47.patch |
31 | ) |
32 | |
33 | UP2DATE="updatecmd http://code.google.com/p/musicip-libofa/downloads/list | grep ${PNAME}- | lasttarball gz" |
34 | |
35 | src_prepare() |
36 | { |
37 | munpack ${SRCFILE} || die |
38 | cd ${SRCDIR} |
39 | |
40 | # fixes compilation with gcc4 |
41 | mpatch ${PNAME}-${PVER}-gcc4.patch || die |
42 | |
43 | # fixes compilation with gcc4.3 |
44 | mpatch ${PNAME}-${PVER}-gcc43.patch || die |
45 | |
46 | # fixes compilation with gcc4.5 |
47 | mpatch ${PNAME}-${PVER}-gcc45.patch || die |
48 | |
49 | # fixes compilation with gcc4.7 |
50 | mpatch ${PNAME}-${PVER}-gcc47.patch || die |
51 | |
52 | # fix build with newer curl |
53 | sed -i '/#include <curl\/types.h>/d' examples/protocol.cpp || die |
54 | } |