Tizen recipes : Fix tizen common build and get little more closer to current Tizen...
[scm/bb/meta-tizen.git] / meta-tizen-ivi / meta-tizen-common-base / recipes-core / 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 PV = "1.9.7"
6
7 SRC_URI = ""
8
9 S = "${WORKDIR}/git"
10
11 inherit manifest autotools-brokensep
12
13 BBCLASSEXTEND = ""
14 PROVIDES = ""
15
16 #PROVIDES by uthash
17
18
19 #PROVIDES by uthash-dev
20 PROVIDES += "uthash-dev"
21
22
23 RDEPENDS = ""
24
25 DEPENDS = ""
26
27 do_prep() {
28  cd ${S}
29  chmod -Rf a+rX,u+w,g-w,o-w ${S}
30  #setup -q
31  cp ${S}/packaging/uthash.manifest .
32  
33  
34 }
35 do_patch_append() {
36     bb.build.exec_func('do_prep', d)
37 }
38
39 do_configure() {
40 }
41
42 do_compile() {
43  cd ${S}
44  LANG=C
45  export LANG
46  unset DISPLAY
47  LD_AS_NEEDED=1; export LD_AS_NEEDED ;
48  
49  #empty
50  
51  
52  
53 }
54
55 do_install() {
56  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 PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
72 PACKAGES += " uthash-dev "
73
74 uthash-dev_files = ""
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 MANIFESTFILES_${PN}-dev = "uthash.manifest"
80
81 FILES_${PN}-dev = "${uthash-dev_files}"
82
83 PKG_uthash-dev= "uthash-dev"
84
85 require uthash-extraconf.inc
86