Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | SUMMARY = "Universally Unique Identifier (UUID) library" |
| 2 | DESCRIPTION = "OSSP uuid is a ISO-C:1999 application programming interface \ |
| 3 | (API) and corresponding command line interface (CLI) for the generation of \ |
| 4 | DCE 1.1, ISO/IEC 11578:1996 and RFC 4122 compliant Universally Unique \ |
| 5 | Identifier (UUID). It supports DCE 1.1 variant UUIDs of version 1 (time \ |
| 6 | and node based), version 3 (name based, MD5), version 4 (random number \ |
| 7 | based) and version 5 (name based, SHA-1)." |
| 8 | DESCRIPTION_uuid = "This package contains a tool to create Universally \ |
| 9 | Unique Identifiers (UUID) from the command-line." |
| 10 | |
| 11 | HOMEPAGE = "http://www.ossp.org/pkg/lib/uuid/" |
| 12 | SECTION = "libs" |
| 13 | |
| 14 | LICENSE = "MIT" |
| 15 | LIC_FILES_CHKSUM = "file://README;beginline=30;endline=55;md5=b394fadb039bbfca6ad9d9d769ee960e \ |
| 16 | file://uuid_md5.c;beginline=1;endline=28;md5=9c1f4b2218546deae24c91be1dcf00dd" |
| 17 | |
| 18 | PR = "r2" |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 19 | UPSTREAM_CHECK_URI = "${DEBIAN_MIRROR}/main/o/ossp-uuid/" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 20 | |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 21 | SRC_URI = "http://snapshot.debian.org/archive/debian/20160728T043443Z/pool/main/o/${BPN}/${BPN}_${PV}.orig.tar.gz \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 22 | file://0001-Change-library-name.patch \ |
| 23 | file://0002-uuid-preserve-m-option-status-in-v-option-handling.patch \ |
| 24 | file://0003-Fix-whatis-entries.patch \ |
| 25 | file://0004-fix-data-uuid-from-string.patch \ |
| 26 | file://uuid-libtool.patch \ |
| 27 | file://uuid-nostrip.patch \ |
| 28 | file://install-pc.patch \ |
| 29 | file://ldflags.patch \ |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 30 | file://libtool-tag.patch \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 31 | " |
| 32 | SRC_URI[md5sum] = "5db0d43a9022a6ebbbc25337ae28942f" |
| 33 | SRC_URI[sha256sum] = "11a615225baa5f8bb686824423f50e4427acd3f70d394765bdff32801f0fd5b0" |
| 34 | |
| 35 | S = "${WORKDIR}/uuid-${PV}" |
| 36 | |
| 37 | inherit autotools update-alternatives |
| 38 | |
| 39 | EXTRA_OECONF = "--without-dce --without-cxx --without-perl --without-perl-compat --without-php --without-pgsql" |
| 40 | EXTRA_OECONF = "--includedir=${includedir}/ossp" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 41 | EXTRA_OEMAKE_class-target = "LIBTOOLFLAGS='--tag=CC'" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 42 | |
| 43 | do_configure_prepend() { |
| 44 | # This package has a completely custom aclocal.m4, which should be acinclude.m4. |
| 45 | if [ ! -e ${S}/acinclude.m4 ]; then |
| 46 | mv ${S}/aclocal.m4 ${S}/acinclude.m4 |
| 47 | fi |
| 48 | |
| 49 | rm -f ${S}/libtool.m4 |
| 50 | } |
| 51 | |
| 52 | do_install_append() { |
| 53 | mkdir -p ${D}${includedir}/ossp |
| 54 | mv ${D}${libdir}/pkgconfig/uuid.pc ${D}${libdir}/pkgconfig/ossp-uuid.pc |
| 55 | } |
| 56 | |
| 57 | PACKAGES =+ "uuid" |
| 58 | FILES_uuid = "${bindir}/uuid" |
| 59 | FILES_${PN} = "${libdir}/libossp-uuid.so.16*" |
| 60 | FILES_${PN}-dev += "${bindir}/uuid-config" |
| 61 | |
| 62 | BBCLASSEXTEND = "native nativesdk" |
| 63 | |
| 64 | ALTERNATIVE_${PN}-doc = "uuid.3" |
| 65 | ALTERNATIVE_PRIORITY_${PN}-doc = "200" |
| 66 | ALTERNATIVE_LINK_NAME[uuid.3] = "${mandir}/man3/uuid.3" |