-
Notifications
You must be signed in to change notification settings - Fork 1
/
alarmd_0.5.20.bb
72 lines (51 loc) · 2 KB
/
alarmd_0.5.20.bb
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# Copyright (C) 2009 Kirtika Ruchandani <[email protected]>
# Released under the MIT license (see COPYING.MIT for the terms)
DESCRIPTION = "Cron like daemon functionality"
HOMEPAGE = "http://maemo.org"
LICENSE = "GNU Lesser General Public License-version 2.1"
SECTION = "base"
DEPENDS = "dbus dbus-glib glib-2.0 libconic osso-systemui-dbus-dev mce-dev "
PR = "r0"
SRC_URI = "http://repository.maemo.org/pool/diablo/free/a/${PN}/${PN}_${PV}.tar.gz \
file://alarmd-patches/mer-changes.patch;patch=1"
# A test workaround to fix the "No GNU_HASH"
# in elf binary issue
TARGET_CC_ARCH += "${LDFLAGS}"
inherit autotools pkgconfig
PARALLEL_MAKE = ""
EXTRA_OEMAKE = "LIBTOOL=arm-${DISTRO}-linux-gnueabi-libtool"
do_configure_prepend(){
for i in `grep -l -r Werror *`;
do sed -i s:-Werror::g $i;
done
}
# FIXME Ugly hack follows
# Need to know why that file is created with
# 0 value for permisions
do_install_prepend(){
chmod --recursive 777 ${S}/.pc
}
do_install(){
install -d ${D}${bindir} ${D}${libdir} ${D}${includedir} ${D}${libdir}/alarmd
install -m 0755 ${S}/.libs/alarmd ${D}${bindir}
install -m 0755 ${S}/.libs/alarmtool ${D}${bindir}
install -m 0755 ${S}/.libs/apitest ${D}${bindir}
install -m 0755 ${S}/.libs/dbustest ${D}${bindir}
oe_libinstall -so libalarm ${D}${libdir}
oe_libinstall -so libretu ${D}${libdir}/alarmd
oe_libinstall -so libgtimeout ${D}${libdir}/alarmd
install -m 0644 ${S}/include/*.h ${D}${includedir}
}
do_stage(){
install -d ${STAGING_INCDIR} ${STAGING_LIBDIR}
oe_libinstall -so libalarm ${STAGING_LIBDIR}
oe_libinstall -so libretu ${STAGING_LIBDIR}
oe_libinstall -so libgtimeout ${STAGING_LIBDIR}
install -m 0644 ${S}/include/*.h ${STAGING_INCDIR}
}
PACKAGES += " alarmtool libalarm0"
#Keeping in tune with Maemo packaging
FILES_${PN} += "${libdir}/libretu.so \
${libdir}/libgtimeout.so"
FILES_alarmtool = "${bindir}/alarmtool"
FILES_libalarm = "${libdir}/libalarm.so.*"