hc
2023-05-26 a23f51ed7a39e452c1037343a84d7db1ca2c5bd7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
require ${BPN}.inc
 
inherit native
 
DEPENDS = "glib-2.0-native"
 
# build native helpers
do_compile() {
    cd ${S}/src/camel
    sed -i 's:#include "evolution-data-server-config.h"::g' camel-gen-tables.c
    ${CC} -o ${B}/camel-gen-tables camel-gen-tables.c ${CFLAGS} ${LDFLAGS}
 
    LDFLAGS_glib=`pkg-config glib-2.0 --libs`
    CFLAGS_glib=`pkg-config glib-2.0 --cflags`
    cd ${S}/src/addressbook/libebook-contacts
    sed -i 's:#include "evolution-data-server-config.h"::g' gen-western-table.c
    ${CC} -o ${B}/gen-western-table gen-western-table.c ${CFLAGS} ${CFLAGS_glib} ${LDFLAGS} ${LDFLAGS_glib}
}
 
do_install() {
    install -d ${D}${bindir}
    install -m 755 ${B}/* ${D}${bindir}
}