blob: 269e0612b3f9b499878e231ebdebc6f203baf7a2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
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"
# Official upstream seems to be offline.. replace w/ a Fedora Project mirror.
# http://www.and.org/ustr/1.0.4/ustr-1.0.4.tar.bz2
SRC_URI = "\
http://pkgs.fedoraproject.org/repo/pkgs/ustr/ustr-1.0.4.tar.bz2/93147d9f0c9765d4cd0f04f7e44bdfce/ustr-1.0.4.tar.bz2 \
file://ustr-makefile-fix.patch;patch=1 \
file://ustr-fix__va_copy-not-defined.patch;patch=2"
SRC_URI[md5sum] = "93147d9f0c9765d4cd0f04f7e44bdfce"
SRC_URI[sha256sum] = "3daf6eae9f78de1e872c0b2b83cce35515b94d4bb8a074e48f331fd99e1fc2c4"
inherit lib_package
inherit siteinfo
LEAD_SONAME = "libustr-1.0.so.1"
FILES_${PN}-dev += "${bindir}/ustr-import \
${libexecdir}/ustr-${PV}/ustr-import-* \
${datadir}/.gdb_init \
${datadir}/ustr-${PV} \
"
EXTRA_OEMAKE_virtclass-native = "prefix=/usr"
do_compile() {
oe_runmake all-shared \
mlib=${SITEINFO_BITS}
}
do_install() {
oe_runmake install-multilib-linux \
mlib=${SITEINFO_BITS} \
DESTDIR=${D} LDCONFIG=/bin/true
mkdir -p ${D}/${datadir}/doc/${PN}-${PV}
install ChangeLog ${D}/${datadir}/doc/${PN}-${PV}
install LICENSE* ${D}/${datadir}/doc/${PN}-${PV}
install README ${D}/${datadir}/doc/${PN}-${PV}
install NEWS ${D}/${datadir}/doc/${PN}-${PV}
mv ${D}/${docdir}/ustr-devel-${PV}/strdup\ vs.\ ustr.gnumeric \
${D}/${docdir}/ustr-devel-${PV}/strdup_vs._ustr.gnumeric
}
BBCLASSEXTEND = "native"
|