summaryrefslogtreecommitdiff
path: root/recipes/pthsem/pthsem_2.0.7.bb
blob: b08299ca6737f082c9fc2072cdf1b9df74f96882 (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
DESCRIPTION = "GNU Portable Threads replacement with semaphore support"
SECTION = "libs"
PRIORITY = "optional"
LICENSE = "GPL LGPL FDL"
PR = "r0"

SRC_URI = "https://www.auto.tuwien.ac.at/~mkoegler/pth/pthsem-${PV}.tar.gz \
           file://ldflags.patch \
          "

inherit autotools binconfig

do_configure() {
        gnu-configize
        oe_runconf
}
do_install_prepend() {
        cp ${S}/pth-config ${S}/pthsem-config
}
do_stage() {
        oe_libinstall -so libpthsem ${STAGING_LIBDIR}
        install -d ${STAGING_INCDIR}/
        install -m 0644 ${S}/pth.h ${STAGING_INCDIR}/pthsem.h
        install -d ${STAGING_BINDIR}/
        install -d ${STAGING_DATADIR}/aclocal
        install pth.m4 ${STAGING_DATADIR}/aclocal/pthsem.m4
}

BINCONFIG_GLOB = "pthsem-config"

PARALLEL_MAKE = ""

SRC_URI[md5sum] = "b277716ee1224ca9925176fa29e1f0c5"
SRC_URI[sha256sum] = "6226f92f3a0950c6f3da8f9dcb7c76d08634515519bf35cd916b3cdcc1aeb130"