Contents of /trunk/core/cloog-ppl/cloog-ppl-0.17.0-r1.smage2
Parent Directory | Revision Log
Revision 12590 -
(show annotations)
(download)
Tue Jun 12 20:28:30 2012 UTC (12 years, 3 months ago) by niro
File size: 1389 byte(s)
Tue Jun 12 20:28:30 2012 UTC (12 years, 3 months ago) by niro
File size: 1389 byte(s)
-fixed installation of gdb scripts
1 | # $Id$ |
2 | |
3 | PNAME="cloog-ppl" |
4 | PVER="0.17.0" |
5 | PBUILD="r1" |
6 | |
7 | PCAT="dev-libs" |
8 | STATE="unstable" |
9 | |
10 | DESCRIPTION="CLooG-PPL is a library to generate code for scanning Z-polyhedra." |
11 | HOMEPAGE="http://cloog.org/" |
12 | |
13 | # do not depend on glibc, as it depends ob libstdc++ and this wants mpc |
14 | # as SRCDEPEND -> this may generate loops |
15 | DEPEND=">= dev-libs/gmp-5.0.5 |
16 | >= dev-libs/ppl-0.12.1" |
17 | |
18 | SRCFILE="${PNAME/-ppl/}-${PVER}.tar.gz" |
19 | SRCDIR="${BUILDDIR}/${PNAME/-ppl/}-${PVER}" |
20 | |
21 | sminclude mbuild multilib |
22 | |
23 | SRC_URI=( |
24 | http://www.bastoul.net/cloog/pages/download/count.php3?url=./${SRCFILE} |
25 | ftp://gcc.gnu.org/pub/gcc/infrastructure/${SRCFILE} |
26 | mirror://${PNAME}/${SRCFILE} |
27 | ) |
28 | |
29 | UP2DATE="updatecmd ftp://gcc.gnu.org/pub/gcc/infrastructure/ | grep ${PNAME} | lasttarball gz" |
30 | |
31 | src_compile() |
32 | { |
33 | mconfigure --enable-shared --with-gmp --with-ppl || die |
34 | mmake || die |
35 | } |
36 | |
37 | src_install() |
38 | { |
39 | mmake DESTDIR=${BINDIR} install || die |
40 | |
41 | # move gdb scripts to a proper location and to pretty-print ldconfig |
42 | minstalldir /usr/share/gdb/autoload/usr/$(mlibdir) || die |
43 | mv ${BINDIR}/usr/$(mlibdir)/libisl*gdb.py* ${BINDIR}/usr/share/gdb/autoload/usr/$(mlibdir)/ || die |
44 | # multilib as well |
45 | if [[ $(mlibdir) != lib ]] && [[ -d ${BINDIR}/usr/lib ]] |
46 | then |
47 | minstalldir /usr/share/gdb/autoload/usr/lib || die |
48 | mv ${BINDIR}/usr/lib/libisl*gdb.py* ${BINDIR}/usr/share/gdb/autoload/usr/lib/ || die |
49 | fi |
50 | |
51 | minstalldocs ChangeLog README || die |
52 | } |