first commit
[scm/bb/meta-tizen.git] / recipes-tizen / cloog-isl / cloog-isl.inc
1 DESCRIPTION = "The Chunky Loop Generator"
2 HOMEPAGE = "http://www.cloog.org/"
3 SECTION = "Development/Toolchain"
4 LICENSE = "GPL-2.0+"
5
6 SRC_URI = ""
7
8 S = "${WORKDIR}/git"
9
10 PROVIDES = ""
11
12 #PROVIDES by cloog-isl-devel 
13 PROVIDES += "cloog-isl-devel"
14 RPROVIDES_cloog-isl-devel += "cloog-isl-devel"
15 RPROVIDES_cloog-isl-devel += "cloog-isl-dev"
16
17 #PROVIDES by cloog-isl 
18 PROVIDES += "cloog-isl"
19 RPROVIDES_cloog-isl += "cloog-isl"
20
21 #PROVIDES by libcloog-isl 
22 PROVIDES += "libcloog-isl"
23 RPROVIDES_libcloog-isl += "libcloog-isl"
24
25 RDEPENDS = ""
26 #RDEPENDS of cloog-isl-devel (${PN}-devel)
27 RDEPENDS_${PN}-devel += "libcloog-isl"
28
29
30 DEPENDS = ""
31 #DEPENDS of cloog-isl 
32 DEPENDS += "isl-devel"
33 DEPENDS += "gmp-devel"
34 DEPENDS += "libtool-cross"
35
36 do_patch() {
37  chmod -Rf a+rX,u+w,g-w,o-w ${S}
38  #setup -q -n cloog-0.18.0
39  
40  
41 }
42
43 do_configure() {
44 }
45
46 do_compile() {
47  LANG=C
48  export LANG
49  unset DISPLAY
50  CFLAGS="-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables" ; export CFLAGS ; 
51  CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ; 
52  FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ; 
53  LD_AS_NEEDED=1; export LD_AS_NEEDED ; 
54  
55  
56    CFLAGS="${CFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CFLAGS ; 
57    CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ; 
58    FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ; 
59    autotools_do_configure --build=${TARGET_SYS} --host=${HOST_SYS} \
60          --target=x86_64-tizen-linux \
61          --program-prefix= \
62          --prefix=/usr \
63          --exec-prefix=/usr \
64          --bindir=/usr/bin \
65          --sbindir=/usr/sbin \
66          --sysconfdir=/etc \
67          --datadir=/usr/share \
68          --includedir=/usr/include \
69          --libdir=/usr/lib \
70          --libexecdir=/usr/libexec \
71          --localstatedir=/var \
72          --sharedstatedir=/usr/com \
73          --mandir=/usr/share/man \
74          --infodir=/usr/share/info --with-isl=system --disable-static
75  make -j16
76  
77  exit 0
78  make -j16 check
79  
80  
81  
82 }
83
84 do_install() {
85  echo export RPM_BUILD_ROOT=${D}
86  LANG=C
87  export LANG
88  unset DISPLAY
89  rm -rf ${D} 
90  mkdir -p ${D} 
91  
92  
93    oe_runmake \
94          DESTDIR=${D} \
95          INSTALL_ROOT=${D} \
96          BINDIR=/usr/bin \
97    install  
98    rm -f ${D}/usr/share/info/dir 
99    find ${D} -regex ".*\.la$" | xargs rm -f -- 
100    
101  
102  
103 }
104
105 PACKAGES = ""
106 PACKAGES += "cloog-isl-devel"
107 PACKAGES += "cloog-isl"
108 PACKAGES += "libcloog-isl"
109
110 cloog-isl-devel_files = ""
111 cloog-isl-devel_files += "/usr/include/cloog"
112 cloog-isl-devel_files += "/usr/lib/libcloog-isl.so"
113 cloog-isl-devel_files += "/usr/lib/pkgconfig/*.pc"
114
115 cloog-isl_files = ""
116 cloog-isl_files += "/usr/bin/cloog"
117
118 libcloog-isl_files = ""
119 libcloog-isl_files += "/usr/lib/libcloog-isl.so.*"
120
121 FILES_${PN}-devel = "${cloog-isl-devel_files}"
122 FILES_${PN} = "${cloog-isl_files}"
123 FILES_lib${PN} = "${libcloog-isl_files}"
124
125 PKG_cloog-isl-devel= "cloog-isl-devel"
126 PKG_cloog-isl= "cloog-isl"
127 PKG_libcloog-isl= "libcloog-isl"
128
129 require cloog-isl-extraconf.inc