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

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

# it is CMake based but when inherit cmake it builds static binary/library
inherit autotools pkgconfig

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

do_stage() {
    autotools_stage_all
}

PACKAGES =+ "libgammu"

FILES_${PN} = "${bindir}/gammu ${bindir}/jadmaker"
FILES_${PN}-dev += "${bindir}/gammu-config"
FILES_libgammu = "${libdir}/libGammu.so.*"