Update recipes generation.
[scm/bb/meta-tizen.git] / recipes-tizen / uthash / uthash.inc
1 DESCRIPTION = "A hash table for C structures"
2 HOMEPAGE = "http://nohomepage.org"
3 SECTION = "System/Kernel"
4 LICENSE = "BSD-style single-clause"
5
6 SRC_URI = ""
7
8 S = "${WORKDIR}/git"
9
10 inherit autotools-brokensep
11
12 BBCLASSEXTEND += ""
13 PROVIDES = ""
14
15 #PROVIDES by uthash 
16
17
18 #PROVIDES by uthash-dev 
19
20
21 RDEPENDS = ""
22
23 DEPENDS = ""
24
25 do_prep() {
26  cd ${S}
27  chmod -Rf a+rX,u+w,g-w,o-w ${S}
28  #setup -q
29  cp ${S}/packaging/uthash.manifest .
30  
31  
32 }
33 do_patch_append() {
34     bb.build.exec_func('do_prep', d)
35 }
36
37 do_configure() {
38 }
39
40 do_compile() {
41  cd ${S}
42  LANG=C
43  export LANG
44  unset DISPLAY
45  CFLAGS="-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables" ; export CFLAGS ; 
46  CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ; 
47  FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ; 
48  LD_AS_NEEDED=1; export LD_AS_NEEDED ; 
49  
50  #empty
51  
52  
53  
54 }
55
56 do_install() {
57  echo export RPM_BUILD_ROOT=${D}
58  cd ${S}
59  LANG=C
60  export LANG
61  unset DISPLAY
62  rm -rf ${D} 
63  mkdir -p ${D} 
64  
65  mkdir -p  ${D}${prefix}/include
66  cd src
67  cp utarray.h uthash.h utlist.h utstring.h ${D}${prefix}/include
68  
69  
70 }
71
72
73 uthash-dev_files = ""
74 uthash-dev_files += "uthash.manifest"
75 uthash-dev_files += "${prefix}/include/utarray.h"
76 uthash-dev_files += "${prefix}/include/uthash.h"
77 uthash-dev_files += "${prefix}/include/utlist.h"
78 uthash-dev_files += "${prefix}/include/utstring.h"
79
80 FILES_${PN}-dev = "${uthash-dev_files}"
81
82 PKG_uthash-dev= "uthash-dev"
83
84 require uthash-extraconf.inc
85