summaryrefslogtreecommitdiff
path: root/packages/gammu/gammu_1.17.0.bb
blob: fc7adb1b7901452ba245f43915351ad26e931010 (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
DESCRIPTION = "GNU All Mobile Managment Utilities"
SECTION = "console/network"
DEPENDS = "bluez-libs cmake-native"
LICENSE = "GPL"
HOMEPAGE = "http://www.gammu.org/"

SRC_URI = "http://dl.cihar.com/gammu/releases/gammu-${PV}.tar.bz2 "

inherit pkgconfig

do_configure() {
    cd ${S} && CMAKE_C_COMPILER=${TARGET_OS}-gcc ./configure --prefix=${prefix} --enable-shared --enable-backup
}

do_compile () {
        oe_runmake
}

do_install () {
        oe_runmake install DESTDIR=${D}
}

do_stage() {
        install -d ${STAGING_INCDIR}/gammu/
        install -m 0644 build-configure/include/*.h ${STAGING_INCDIR}/gammu/

        oe_libinstall -so -C build-configure/common libGammu ${STAGING_LIBDIR}
}

PACKAGES =+ "libgammu"

FILES_${PN} = "${bindir}/gammu"
FILES_libgammu = "${libdir}/libGammu.so*"