summaryrefslogtreecommitdiff
path: root/recipes/libgsm/libgsm_1.0.12.bb
blob: a0b5e76568680b51e04d21496ba4b72511352c75 (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
DESCRIPTION = "GSM Audio Library"
SECTION = "libs"
PRIORITY = "optional"
#DEPENDS = ""
LICENSE = "libgsm"

PR = "r1"

SRC_URI = "http://user.cs.tu-berlin.de/~jutta/gsm/gsm-${PV}.tar.gz \
	   file://01_makefile.patch \
           file://02_cplusplus.patch \
           file://03_config.patch \
           file://04_includes.patch \
           file://05_compiler_warnings.patch \
	  "

S = "${WORKDIR}/gsm-1.0-pl12/"

CFLAGS += "-c -g -fPIC -Wall -D_GNU_SOURCE -D_REENTRANT -DNeedFunctionPrototypes=1 -DWAV49 -I./inc"

PARALLEL_MAKE = ""

do_compile() {
	unset LD
	oe_runmake CCFLAGS="${CFLAGS}"
}

do_install() {
	oe_libinstall -a -C lib libgsm ${D}${libdir}
        oe_libinstall -so -C lib libgsm ${D}${libdir}
        install -d ${D}${includedir}/gsm
        install -m 0644 ${S}/inc/gsm.h ${D}${includedir}/gsm/
	cd ${D}${includedir}
	ln -s gsm/gsm.h gsm.h
}

do_stage () {
        oe_libinstall -a -C lib libgsm ${STAGING_LIBDIR}
	oe_libinstall -so -C lib libgsm ${STAGING_LIBDIR}
        install -d ${STAGING_INCDIR}/gsm
        install -m 0644 ${S}/inc/gsm.h ${STAGING_INCDIR}/gsm/
	rm -f ${STAGING_INCDIR}/gsm.h
        ln -s ${STAGING_INCDIR}/gsm/gsm.h ${STAGING_INCDIR}/gsm.h
}


SRC_URI[md5sum] = "8909828c601e82e842e6a0ceade60a4e"
SRC_URI[sha256sum] = "dde4e62e4ce35af29a15d26beca2fc0f98c0219553927453425cda01f16e4de4"