Fabio Berton | f6234c4 | 2015-10-26 13:12:01 -0200 | [diff] [blame] | 1 | DESCRIPTION = "GSM Audio Library" |
| 2 | SECTION = "libs" |
| 3 | PRIORITY = "optional" |
Fabio Berton | efa5849 | 2015-10-26 13:22:07 -0200 | [diff] [blame] | 4 | LICENSE = "ISC" |
Fabio Berton | f6234c4 | 2015-10-26 13:12:01 -0200 | [diff] [blame] | 5 | LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=fc1372895b173aaf543a122db37e04f5" |
Holger Hans Peter Freyther | b49f512 | 2011-11-11 21:36:15 +0800 | [diff] [blame] | 6 | |
Fabio Berton | ee5e6c4 | 2015-10-26 13:17:41 -0200 | [diff] [blame] | 7 | SRC_URI = "\ |
| 8 | http://www.quut.com/gsm/gsm-${PV}.tar.gz \ |
Fabio Berton | efa5849 | 2015-10-26 13:22:07 -0200 | [diff] [blame] | 9 | file://0001-Configure-Makefile.patch \ |
| 10 | file://0002-Add-defines-to-c.patch \ |
| 11 | file://0003-Use-gsm_config.-header-instead-of-config.h.patch \ |
| 12 | file://0004-Add-includes.patch \ |
| 13 | file://0005-Change-compiler-warnings.patch \ |
Fabio Berton | ee5e6c4 | 2015-10-26 13:17:41 -0200 | [diff] [blame] | 14 | " |
Holger Hans Peter Freyther | b49f512 | 2011-11-11 21:36:15 +0800 | [diff] [blame] | 15 | |
Fabio Berton | efa5849 | 2015-10-26 13:22:07 -0200 | [diff] [blame] | 16 | SRC_URI[md5sum] = "4cbb4e7b73842de3d12d30b0d74200d4" |
| 17 | SRC_URI[sha256sum] = "5814a16a30b3c026871b3739812dc4a2a84299331182c987da1c212c93e9352c" |
Holger Hans Peter Freyther | b49f512 | 2011-11-11 21:36:15 +0800 | [diff] [blame] | 18 | |
Fabio Berton | efa5849 | 2015-10-26 13:22:07 -0200 | [diff] [blame] | 19 | S = "${WORKDIR}/gsm-1.0-pl14/" |
Fabio Berton | f6234c4 | 2015-10-26 13:12:01 -0200 | [diff] [blame] | 20 | |
| 21 | CFLAGS += "-c -g -fPIC -Wall -D_GNU_SOURCE -D_REENTRANT -DNeedFunctionPrototypes=1 -DWAV49 -I./inc" |
| 22 | |
| 23 | PARALLEL_MAKE = "" |
| 24 | |
Fabio Berton | ee5e6c4 | 2015-10-26 13:17:41 -0200 | [diff] [blame] | 25 | do_compile(){ |
| 26 | unset LD |
Holger Hans Peter Freyther | e274f00 | 2016-02-18 09:16:12 +0100 | [diff] [blame] | 27 | oe_runmake CCFLAGS="${CFLAGS}" CC="${CC}" |
Fabio Berton | f6234c4 | 2015-10-26 13:12:01 -0200 | [diff] [blame] | 28 | } |
| 29 | |
Fabio Berton | ee5e6c4 | 2015-10-26 13:17:41 -0200 | [diff] [blame] | 30 | do_install(){ |
| 31 | oe_libinstall -a -C lib libgsm ${D}${libdir} |
| 32 | oe_libinstall -so -C lib libgsm ${D}${libdir} |
| 33 | install -d ${D}${includedir}/gsm |
| 34 | install -m 0644 ${S}/inc/gsm.h ${D}${includedir}/gsm/ |
| 35 | cd ${D}${includedir} |
| 36 | ln -s gsm/gsm.h gsm.h |
Fabio Berton | f6234c4 | 2015-10-26 13:12:01 -0200 | [diff] [blame] | 37 | } |