first commit
[scm/bb/meta-tizen.git] / recipes-tizen / ppl / ppl.inc
1 DESCRIPTION = "The Parma Polyhedra Library"
2 HOMEPAGE = "http://www.cs.unipr.it/ppl/"
3 SECTION = "Development/Libraries/C and C++"
4 LICENSE = "GPL-3.0+"
5
6 SRC_URI = ""
7
8 S = "${WORKDIR}/git"
9
10 PROVIDES = ""
11
12 #PROVIDES by libppl_c 
13 PROVIDES += "libppl_c"
14 RPROVIDES_libppl_c += "libppl_c"
15
16 #PROVIDES by libppl 
17 PROVIDES += "libppl"
18 RPROVIDES_libppl += "libppl"
19
20 #PROVIDES by ppl 
21 PROVIDES += "ppl"
22 RPROVIDES_ppl += "ppl"
23
24 #PROVIDES by ppl-devel-static 
25 PROVIDES += "ppl-devel-static"
26 RPROVIDES_ppl-devel-static += "ppl-devel-static"
27 RPROVIDES_ppl-devel-static += "ppl-dev"
28
29 #PROVIDES by ppl-doc 
30 PROVIDES += "ppl-doc"
31 RPROVIDES_ppl-doc += "ppl-doc"
32
33 #PROVIDES by ppl-devel 
34 PROVIDES += "ppl-devel"
35 RPROVIDES_ppl-devel += "ppl-devel"
36 RPROVIDES_ppl-devel += "ppl-dev"
37
38 RDEPENDS = ""
39 #RDEPENDS of ppl-devel-static (${PN}-devel-static)
40 RDEPENDS_${PN}-devel-static += "ppl-dev"
41
42 #RDEPENDS of ppl-devel (${PN}-devel)
43 RDEPENDS_${PN}-devel += "libppl_c"
44 RDEPENDS_${PN}-devel += "gmp-dev"
45 RDEPENDS_${PN}-devel += "libppl"
46
47
48 DEPENDS = ""
49 #DEPENDS of ppl 
50 DEPENDS += "gcc-cross"
51 DEPENDS += "gmp"
52
53 do_patch() {
54  chmod -Rf a+rX,u+w,g-w,o-w ${S}
55  #setup -q -n ppl-0.11.2
56  cp ${S}/packaging/ppl.manifest .
57  
58  
59 }
60
61 do_configure() {
62 }
63
64 do_compile() {
65  LANG=C
66  export LANG
67  unset DISPLAY
68  CFLAGS="-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables" ; export CFLAGS ; 
69  CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ; 
70  FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ; 
71  LD_AS_NEEDED=1; export LD_AS_NEEDED ; 
72  
73  
74    CFLAGS="${CFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CFLAGS ; 
75    CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ; 
76    FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ; 
77    autotools_do_configure --build=${TARGET_SYS} --host=${HOST_SYS} \
78          --target=x86_64-tizen-linux \
79          --program-prefix= \
80          --prefix=/usr \
81          --exec-prefix=/usr \
82          --bindir=/usr/bin \
83          --sbindir=/usr/sbin \
84          --sysconfdir=/etc \
85          --datadir=/usr/share \
86          --includedir=/usr/include \
87          --libdir=/usr/lib \
88          --libexecdir=/usr/libexec \
89          --localstatedir=/var \
90          --sharedstatedir=/usr/com \
91          --mandir=/usr/share/man \
92          --infodir=/usr/share/info --enable-shared --with-pic --disable-rpath \
93         --disable-watchdog
94  #sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
95  #sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
96  make -j16
97  
98  
99  
100 }
101
102 do_install() {
103  echo export RPM_BUILD_ROOT=${D}
104  LANG=C
105  export LANG
106  unset DISPLAY
107  rm -rf ${D} 
108  mkdir -p ${D} 
109  
110  make DESTDIR=${D} INSTALL="install -p" install
111  # We don't build the binary, so delete its manpage
112  rm -f ${D}/usr/share/man/man1/ppl_lpsol.1
113  # We don't build pwl
114  rm -Rf ${D}/usr/share/doc/pwl
115  # The pdf is enough
116  rm -f ${D}/usr/share/doc/ppl/ppl-user-*.ps.gz
117  rm -f ${D}/usr/share/doc/ppl/ChangeLog
118  rm -f ${D}/usr/share/doc/ppl/TODO
119  rm -f ${D}/usr/share/doc/ppl/gpl.*
120  rm -f ${D}/usr/share/doc/ppl/fdl.ps.gz
121  rm -f ${D}/usr/share/doc/ppl/fdl.pdf
122  rm -Rf ${D}/usr/share/doc/ppl/ppl-user-prolog-interface-0.11.2*
123  rm -Rf ${D}/usr/share/doc/ppl/ppl-user-ocaml-interface-0.11.2*
124  rm -Rf ${D}/usr/share/doc/ppl/ppl-user-java-interface-0.11.2*
125  
126  
127 }
128
129 PACKAGES = ""
130 PACKAGES += "ppl-devel"
131 PACKAGES += "libppl"
132 PACKAGES += "ppl"
133 PACKAGES += "libppl_c"
134 PACKAGES += "ppl-doc"
135 PACKAGES += "ppl-devel-static"
136
137 ppl-devel_files = ""
138 ppl-devel_files += "ppl.manifest"
139 ppl-devel_files += "/usr/share/doc/ppl/README.configure"
140 ppl-devel_files += "/usr/include/ppl.hh"
141 ppl-devel_files += "/usr/include/ppl_c.h"
142 ppl-devel_files += "/usr/lib/libppl.so"
143 ppl-devel_files += "/usr/lib/libppl_c.so"
144 ppl-devel_files += "/usr/bin/ppl-config"
145 ppl-devel_files += "/usr/share/man/man1/ppl-config.1.gz"
146 ppl-devel_files += "/usr/share/man/man3/libppl.3.gz"
147 ppl-devel_files += "/usr/share/man/man3/libppl_c.3.gz"
148 ppl-devel_files += "/usr/share/aclocal"
149 ppl-devel_files += "/usr/share/aclocal/ppl.m4"
150 ppl-devel_files += "/usr/share/aclocal/ppl_c.m4"
151
152 libppl_files = ""
153 libppl_files += "ppl.manifest"
154 libppl_files += "/usr/lib/libppl.so.*"
155
156 ppl_files = ""
157 ppl_files += "ppl.manifest"
158 ppl_files += "/usr/share/doc/ppl"
159 ppl_files += "/usr/share/doc/ppl/BUGS"
160 ppl_files += "/usr/share/doc/ppl/COPYING"
161 ppl_files += "/usr/share/doc/ppl/CREDITS"
162 ppl_files += "/usr/share/doc/ppl/NEWS"
163 ppl_files += "/usr/share/doc/ppl/README"
164 ppl_files += "/usr/bin/ppl_lcdd"
165 ppl_files += "/usr/bin/ppl_pips"
166 ppl_files += "/usr/share/man/man1/ppl_lcdd.1.gz"
167 ppl_files += "/usr/share/man/man1/ppl_pips.1.gz"
168
169 libppl_c_files = ""
170 libppl_c_files += "ppl.manifest"
171 libppl_c_files += "/usr/lib/libppl_c.so.*"
172
173 ppl-doc_files = ""
174 ppl-doc_files += "ppl.manifest"
175 ppl-doc_files += "/usr/share/doc/ppl/README.doc"
176 ppl-doc_files += "/usr/share/doc/ppl/fdl.txt"
177 ppl-doc_files += "/usr/share/doc/ppl/ppl-user-0.11.2-html/"
178 ppl-doc_files += "/usr/share/doc/ppl/ppl-user-c-interface-0.11.2-html/"
179 ppl-doc_files += "/usr/share/doc/ppl/ppl-user-0.11.2.pdf"
180 ppl-doc_files += "/usr/share/doc/ppl/ppl-user-c-interface-0.11.2.pdf"
181
182 ppl-devel-static_files = ""
183 ppl-devel-static_files += "ppl.manifest"
184 ppl-devel-static_files += "/usr/lib/libppl.a"
185 ppl-devel-static_files += "/usr/lib/libppl.la"
186 ppl-devel-static_files += "/usr/lib/libppl_c.a"
187 ppl-devel-static_files += "/usr/lib/libppl_c.la"
188
189 FILES_${PN}-devel = "${ppl-devel_files}"
190 FILES_lib${PN} = "${libppl_files}"
191 FILES_${PN} = "${ppl_files}"
192 FILES_lib${PN}_c = "${libppl_c_files}"
193 FILES_${PN}-doc = "${ppl-doc_files}"
194 FILES_${PN}-devel-static = "${ppl-devel-static_files}"
195
196 PKG_ppl-devel= "ppl-devel"
197 PKG_libppl= "libppl"
198 PKG_ppl= "ppl"
199 PKG_libppl_c= "libppl_c"
200 PKG_ppl-doc= "ppl-doc"
201 PKG_ppl-devel-static= "ppl-devel-static"
202
203 require ppl-extraconf.inc