ustr: Add version 1.0.4

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
This commit is contained in:
Mark Hatle 2012-01-17 16:48:52 -06:00
parent 44f90e0947
commit 3ffef35331

View File

@ -0,0 +1,48 @@
SUMMARY = "Micro String API - for C"
DESCRIPTION = "Micro string library, very low overhead from plain strdup() (Ave. 44% for \
0-20B strings). Very easy to use in existing C code. At it's simplest you can \
just include a single header file into your .c and start using it."
SECTION = "base"
PR = "r1"
LICENSE = "MIT | LGPLv2+ | BSD"
LIC_FILES_CHKSUM = "file://LICENSE;md5=c79c6e2ae13418d16d7dc82df960a1e7 \
file://LICENSE_BSD;md5=ceb504b0b6471e76cc9cb32cfb150f3c \
file://LICENSE_LGPL;md5=d8045f3b8f929c1cb29a1e3fd737b499 \
file://LICENSE_MIT;md5=c61e779b782608472bd87593c3c3916f"
SRC_URI = "http://www.and.org/ustr/1.0.4/ustr-1.0.4.tar.bz2"
SRC_URI[md5sum] = "93147d9f0c9765d4cd0f04f7e44bdfce"
SRC_URI[sha256sum] = "3daf6eae9f78de1e872c0b2b83cce35515b94d4bb8a074e48f331fd99e1fc2c4"
inherit lib_package
FILES_${PN} = "${base_libdir}/libustr-1.0.so.${PV} ${base_libdir}/libustr-1.0.so.1"
FILES_${PN}-dev += "${datadir}/${PN}-${PV} ${bindir}/ustr-import ${libexecdir}/${PN}-${PV}/ustr-import-*"
FILES_${PN}-dev += "${libdir}/libustr-debug*"
do_compile() {
oe_runmake all-shared
}
do_install() {
oe_runmake install-multilib-linux prefix=${prefix} \
bindir=${bindir} mandir=${mandir} \
datadir=${datadir} libdir=${libdir} \
includedir=${includedir} libexecdir=${libexecdir} \
DESTDIR=${D} LDCONFIG=/bin/true HIDE=
if [ "${base_libdir}" != "${libdir}" ]; then
mkdir -p ${D}${base_libdir}
mv ${D}${libdir}/libustr-1.0.so.${PV} ${D}${base_libdir}/.
mv ${D}${libdir}/libustr-1.0.so.1 ${D}${base_libdir}/.
count=0 ; while [ -n "$libdir" -a "$libdir" != "." -a "$libdir" != "/" ]; do count=$(expr $count + 1); libdir=`dirname $libdir` ; done
relpath=""
newcount=0 ; while [ $newcount -lt $count ]; do if [ $newcount -ne 0 ]; then relpath+="/" ; fi ; relpath+=".." ; newcount=$(expr $newcount + 1) ; done
ln -sf $relpath/${base_libdir}/libustr-1.0.so.1 ${D}${libdir}/libustr.so
fi
}