libgsm: Organize recipe

Fix indentations and style issues.

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
This commit is contained in:
Fabio Berton 2015-10-26 13:17:41 -02:00
parent f6234c4d32
commit ee5e6c4c53
1 changed files with 18 additions and 19 deletions

View File

@ -4,15 +4,14 @@ PRIORITY = "optional"
LICENSE = "libgsm" LICENSE = "libgsm"
LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=fc1372895b173aaf543a122db37e04f5" LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=fc1372895b173aaf543a122db37e04f5"
INC_PR = "r2" SRC_URI = "\
http://www.quut.com/gsm/gsm-${PV}.tar.gz \
SRC_URI = "http://www.quut.com/gsm/gsm-${PV}.tar.gz \ file://01_makefile.patch \
file://01_makefile.patch \ file://02_cplusplus.patch \
file://02_cplusplus.patch \ file://03_config.patch \
file://03_config.patch \ file://04_includes.patch \
file://04_includes.patch \ file://05_compiler_warnings.patch \
file://05_compiler_warnings.patch \ "
"
S = "${WORKDIR}/gsm-1.0-pl13/" S = "${WORKDIR}/gsm-1.0-pl13/"
@ -23,16 +22,16 @@ CFLAGS += "-c -g -fPIC -Wall -D_GNU_SOURCE -D_REENTRANT -DNeedFunctionPrototypes
PARALLEL_MAKE = "" PARALLEL_MAKE = ""
do_compile() { do_compile(){
unset LD unset LD
oe_runmake CCFLAGS="${CFLAGS}" oe_runmake CCFLAGS="${CFLAGS}"
} }
do_install() { do_install(){
oe_libinstall -a -C lib libgsm ${D}${libdir} oe_libinstall -a -C lib libgsm ${D}${libdir}
oe_libinstall -so -C lib libgsm ${D}${libdir} oe_libinstall -so -C lib libgsm ${D}${libdir}
install -d ${D}${includedir}/gsm install -d ${D}${includedir}/gsm
install -m 0644 ${S}/inc/gsm.h ${D}${includedir}/gsm/ install -m 0644 ${S}/inc/gsm.h ${D}${includedir}/gsm/
cd ${D}${includedir} cd ${D}${includedir}
ln -s gsm/gsm.h gsm.h ln -s gsm/gsm.h gsm.h
} }