Magellan Linux

Annotation of /branches/magellan-next/extras/raptor/raptor-2.0.3-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8503 - (hide annotations) (download)
Wed Jul 20 15:55:41 2011 UTC (12 years, 10 months ago) by niro
File size: 903 byte(s)
-fix build aginast newer curl versions
1 niro 8502 # $Id$
2    
3     PNAME="raptor"
4     PVER="2.0.3"
5     PBUILD="r1"
6    
7     PCATEGORIE="media-libs"
8    
9     DESCRIPTION="Raptor RDF parser library."
10     HOMEPAGE="http://librdf.org/raptor/"
11    
12     DEPEND=">= dev-libs/glib2-2.28
13     >= dev-libs/libxml2-2.7
14     >= dev-libs/libxslt-1.1.26
15     >= net-misc/curl-7"
16    
17     SDEPEND=">= dev-util/pkgconfig-0.25"
18    
19     SRCFILE="${PNAME}2-${PVER}.tar.gz"
20     SRCDIR="${BUILDDIR}/${PNAME}2-${PVER}"
21    
22     sminclude mbuild
23    
24     SRC_URI=(
25     http://download.librdf.org/source/${SRCFILE}
26     mirror://${PNAME}/${SRCFILE}
27     )
28    
29     UP2DATE="updatecmd http://download.librdf.org/source/ | grep ${PNAME}2- | lasttarball gz"
30    
31 niro 8503 src_prepare()
32     {
33     munpack ${SRCFILE} || die
34     cd ${SRCDIR}
35    
36     # fix compilation against newer curl, which dropped types.h
37     sed -i '/#include <curl\/types.h>/d' src/raptor_internal.h || die
38     }
39    
40 niro 8502 src_compile()
41     {
42     cd ${SRCDIR}
43    
44     mconfigure \
45     --enable-nfs-check \
46     --with-xml-parser=libxml \
47     --with-www=curl \
48     || die
49    
50     mmake || die
51     }