Add weston
[scm/bb/tizen.git] / meta-tizen-generic / 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 PROVIDES = ""
13
14 #PROVIDES by uthash 
15
16
17 #PROVIDES by uthash-dev 
18
19
20 RDEPENDS = ""
21
22 DEPENDS = ""
23
24 do_prep() {
25  cd ${S}
26  chmod -Rf a+rX,u+w,g-w,o-w ${S}
27  #setup -q
28  cp ${S}/packaging/uthash.manifest .
29  
30  
31 }
32 do_patch_append() {
33     bb.build.exec_func('do_prep', d)
34 }
35
36 do_configure() {
37 }
38
39 do_compile() {
40  cd ${S}
41  LANG=C
42  export LANG
43  unset DISPLAY
44  CFLAGS="-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables" ; export CFLAGS ; 
45  CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ; 
46  FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ; 
47  LD_AS_NEEDED=1; export LD_AS_NEEDED ; 
48  
49  #empty
50  
51  
52  
53 }
54
55 do_install() {
56  echo export RPM_BUILD_ROOT=${D}
57  cd ${S}
58  LANG=C
59  export LANG
60  unset DISPLAY
61  rm -rf ${D} 
62  mkdir -p ${D} 
63  
64  mkdir -p  ${D}${prefix}/include
65  cd src
66  cp utarray.h uthash.h utlist.h utstring.h ${D}${prefix}/include
67  
68  
69 }
70
71
72 uthash-dev_files = ""
73 uthash-dev_files += "uthash.manifest"
74 uthash-dev_files += "${prefix}/include/utarray.h"
75 uthash-dev_files += "${prefix}/include/uthash.h"
76 uthash-dev_files += "${prefix}/include/utlist.h"
77 uthash-dev_files += "${prefix}/include/utstring.h"
78
79 FILES_${PN}-dev = "${uthash-dev_files}"
80
81 PKG_uthash-dev= "uthash-dev"
82
83 require uthash-extraconf.inc
84