blob: f2f41276a66933fde0b8d96b202c78218ddb6ee9 [file] [log] [blame]
Brad Bishop23eaf032019-11-20 05:15:02 -05001require ${BPN}.inc
2
Patrick Williams56b44a92024-01-19 08:49:29 -06003inherit_defer native
Brad Bishop23eaf032019-11-20 05:15:02 -05004
5DEPENDS = "glib-2.0-native"
6
7# build native helpers
Patrick Williams56b44a92024-01-19 08:49:29 -06008do_configure[noexec] = "1"
9
Brad Bishop23eaf032019-11-20 05:15:02 -050010do_compile() {
11 cd ${S}/src/camel
12 sed -i 's:#include "evolution-data-server-config.h"::g' camel-gen-tables.c
13 ${CC} -o ${B}/camel-gen-tables camel-gen-tables.c ${CFLAGS} ${LDFLAGS}
14
15 LDFLAGS_glib=`pkg-config glib-2.0 --libs`
16 CFLAGS_glib=`pkg-config glib-2.0 --cflags`
17 cd ${S}/src/addressbook/libebook-contacts
18 sed -i 's:#include "evolution-data-server-config.h"::g' gen-western-table.c
19 ${CC} -o ${B}/gen-western-table gen-western-table.c ${CFLAGS} ${CFLAGS_glib} ${LDFLAGS} ${LDFLAGS_glib}
20}
21
22do_install() {
23 install -d ${D}${bindir}
24 install -m 755 ${B}/* ${D}${bindir}
25}
Patrick Williams03514f12024-04-05 07:04:11 -050026