Magellan Linux

Annotation of /trunk/core/ppl/ppl-0.12.1-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 12572 - (hide annotations) (download)
Tue Jun 12 09:15:18 2012 UTC (12 years ago) by niro
File size: 2064 byte(s)
-removed deprecated sed magic
1 niro 12571 # $Id$
2    
3     PNAME="ppl"
4     PVER="0.12.1"
5     PBUILD="r1"
6    
7     PCAT="dev-libs"
8     STATE="unstable"
9    
10     DESCRIPTION="The Parma Polyhedra Library (PPL) provides numerical abstractions especially targeted at applications in the field of analysis and verification of complex systems."
11     HOMEPAGE="http://www.cs.unipr.it/ppl/"
12    
13     # do not depend on glibc, as it depends ob libstdc++ and this wants mpc
14     # as SRCDEPEND -> this may generate loops
15    
16     # x86_64 specific dependencies
17     DEPEND_x86_64=">= sys-apps/multiarch-wrapper-1"
18     SPECIAL_VARS="DEPEND_x86_64"
19    
20     DEPEND="\$(eval echo \\\$DEPEND_\${ARCH/i*86/x86} | tr ';' '\n')
21     >= dev-libs/gmp-5.0.2
22     >= sys-libs/libstdc++-4.6"
23    
24     SRCFILE="${PNAME}-${PVER}.tar.bz2"
25     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
26    
27     sminclude mtools multilib
28    
29     SRC_URI=(
30     ftp://ftp.cs.unipr.it/pub/ppl/releases/${PVER}/${SRCFILE}
31     mirror://${PNAME}/${SRCFILE}
32     )
33    
34     UP2DATE="updatecmd ftp://ftp.cs.unipr.it/pub/ppl/releases/LATEST/ | lasttarball"
35    
36     src_compile()
37     {
38    
39     # speed src_check up
40     local myopts
41     mqueryfeature "!check" || myopts="--enable-check=quick"
42    
43     mconfigure \
44     --docdir=/usr/share/doc/${PNAME}-${PVER} \
45     --enable-shared \
46     --disable-static \
47     --disable-optimization \
48     ${myopts} \
49     || die
50    
51     mmake || die
52     }
53    
54     src_install()
55     {
56     mmake DESTDIR=${BINDIR} install || die
57    
58     if [[ ${ARCH} = x86_64 ]]
59     then
60     # move the header
61     all-abis minstallfile src/ppl.hh /usr/include/ppl-$(mabi).hh || die
62     # move the config program
63     all-abis minstallexec src/.libs/ppl-config /usr/bin/ppl-config-$(mabi) || die
64    
65     # create a wrapper header
66     cat > ${BINDIR}/usr/include/ppl.h << "EOF"
67     /* ppl.h - Stub Header */
68     #ifndef __STUB__PPL_HH__
69     #define __STUB__PPL_HH__
70    
71     #if defined(__x86_64__) || \
72     defined(__sparc64__) || \
73     defined(__arch64__) || \
74     defined(__powerpc64__) || \
75     defined (__s390x__)
76     # include "ppl-m64.h"
77     #else
78     # include "ppl-m32.h"
79     #endif
80    
81     #endif /* __STUB__PPL_HH__ */
82     EOF
83     # install the multiarch-wrapper
84     minstalldir /usr/bin || die
85     mlink multiarch-wrapper /usr/bin/ppl-config || die
86     fi
87    
88     minstalldocs AUTHORS COPYING* ChangeLog NEWS README || die
89     }