diff options
author | Mark Hatle <mark.hatle@windriver.com> | 2012-01-17 16:48:52 -0600 |
---|---|---|
committer | Mark Hatle <mark.hatle@windriver.com> | 2012-01-17 16:48:52 -0600 |
commit | 3ffef353316263c96045c6e90a3153e0aadcdc9e (patch) | |
tree | 3d5444ecf786dfd21cfda957be942fb732fa6edc | |
parent | 44f90e0947f9575a9bd81bf5551d877133a9090e (diff) | |
download | meta-selinux-3ffef353316263c96045c6e90a3153e0aadcdc9e.tar.gz |
ustr: Add version 1.0.4
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
-rw-r--r-- | recipes-security/ustr/ustr_1.0.4.bb | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/recipes-security/ustr/ustr_1.0.4.bb b/recipes-security/ustr/ustr_1.0.4.bb new file mode 100644 index 0000000..9f0dbfc --- /dev/null +++ b/recipes-security/ustr/ustr_1.0.4.bb | |||
@@ -0,0 +1,48 @@ | |||
1 | SUMMARY = "Micro String API - for C" | ||
2 | DESCRIPTION = "Micro string library, very low overhead from plain strdup() (Ave. 44% for \ | ||
3 | 0-20B strings). Very easy to use in existing C code. At it's simplest you can \ | ||
4 | just include a single header file into your .c and start using it." | ||
5 | |||
6 | SECTION = "base" | ||
7 | PR = "r1" | ||
8 | LICENSE = "MIT | LGPLv2+ | BSD" | ||
9 | LIC_FILES_CHKSUM = "file://LICENSE;md5=c79c6e2ae13418d16d7dc82df960a1e7 \ | ||
10 | file://LICENSE_BSD;md5=ceb504b0b6471e76cc9cb32cfb150f3c \ | ||
11 | file://LICENSE_LGPL;md5=d8045f3b8f929c1cb29a1e3fd737b499 \ | ||
12 | file://LICENSE_MIT;md5=c61e779b782608472bd87593c3c3916f" | ||
13 | |||
14 | SRC_URI = "http://www.and.org/ustr/1.0.4/ustr-1.0.4.tar.bz2" | ||
15 | SRC_URI[md5sum] = "93147d9f0c9765d4cd0f04f7e44bdfce" | ||
16 | SRC_URI[sha256sum] = "3daf6eae9f78de1e872c0b2b83cce35515b94d4bb8a074e48f331fd99e1fc2c4" | ||
17 | |||
18 | inherit lib_package | ||
19 | |||
20 | FILES_${PN} = "${base_libdir}/libustr-1.0.so.${PV} ${base_libdir}/libustr-1.0.so.1" | ||
21 | |||
22 | FILES_${PN}-dev += "${datadir}/${PN}-${PV} ${bindir}/ustr-import ${libexecdir}/${PN}-${PV}/ustr-import-*" | ||
23 | FILES_${PN}-dev += "${libdir}/libustr-debug*" | ||
24 | |||
25 | do_compile() { | ||
26 | oe_runmake all-shared | ||
27 | } | ||
28 | |||
29 | do_install() { | ||
30 | oe_runmake install-multilib-linux prefix=${prefix} \ | ||
31 | bindir=${bindir} mandir=${mandir} \ | ||
32 | datadir=${datadir} libdir=${libdir} \ | ||
33 | includedir=${includedir} libexecdir=${libexecdir} \ | ||
34 | DESTDIR=${D} LDCONFIG=/bin/true HIDE= | ||
35 | |||
36 | if [ "${base_libdir}" != "${libdir}" ]; then | ||
37 | mkdir -p ${D}${base_libdir} | ||
38 | mv ${D}${libdir}/libustr-1.0.so.${PV} ${D}${base_libdir}/. | ||
39 | mv ${D}${libdir}/libustr-1.0.so.1 ${D}${base_libdir}/. | ||
40 | |||
41 | count=0 ; while [ -n "$libdir" -a "$libdir" != "." -a "$libdir" != "/" ]; do count=$(expr $count + 1); libdir=`dirname $libdir` ; done | ||
42 | |||
43 | relpath="" | ||
44 | newcount=0 ; while [ $newcount -lt $count ]; do if [ $newcount -ne 0 ]; then relpath+="/" ; fi ; relpath+=".." ; newcount=$(expr $newcount + 1) ; done | ||
45 | |||
46 | ln -sf $relpath/${base_libdir}/libustr-1.0.so.1 ${D}${libdir}/libustr.so | ||
47 | fi | ||
48 | } | ||