cacaoh-native: Removed legacy style staging
[openembedded.git] / recipes / lua / lua-build.inc
blobad9f6b84f054daedf41b22ade7b4bb72842ba53f
1 LOADLIB = "-DUSE_DLOPEN=1 -fPIC"
2 DLLIB = "-ldl"
3 MYLDFLAGS = "${LDFLAGS} -Wl,-E"
4 MYCFLAGS = "${CFLAGS}"
5 USERCONF = '-DLUA_USERCONFIG="\"$(LUA)/etc/saconfig.c\"" -DUSE_READLINE'
6 # EXTRA_LIBS= "-lm -ldl -lreadline # -lhistory -lcurses -lncurses"
7 EXTRA_LIBS= "-lm -ldl -lreadline"
9 PARALLEL_MAKE = ""
10 EXTRA_OEMAKE = "'CC=${CC}' 'MYCFLAGS=${MYCFLAGS}' \
11                 'MYLDFLAGS=${MYLDFLAGS}' 'WARN=' \
12                 'INSTALL_EXEC=install -m 0755' \
13                 'INSTALL_DATA=install -m 0644' \
14                 'STRIP=echo' 'RANLIB=${RANLIB}' \
15                 'AR=${AR} rcu' 'LD=${LD}' \
16                 'LOADLIB=${LOADLIB}' 'DLLIB=${DLLIB}' \
17                 'USERCONF=${USERCONF}' 'EXTRA_LIBS=${EXTRA_LIBS}' \
18                 'INSTALL_ROOT=${prefix}' 'INSTALL_BIN=${bindir}' \
19                 'INSTALL_INC=${includedir}' 'INSTALL_MAN=${mandir}/man1' \
20                 'INSTALL_SHARE=${datadir}/lua'"
22 do_compile () {
23         oe_runmake all so sobin
26 do_stage () {
27         oe_libinstall -C lib liblua ${STAGING_LIBDIR}/
28         oe_libinstall -C lib liblualib ${STAGING_LIBDIR}/
29         install -m 0644 include/lua.h include/lualib.h include/lauxlib.h ${STAGING_INCDIR}/
32 do_install () {
33         oe_runmake \
34                 'INSTALL_ROOT=${D}${prefix}' \
35                 'INSTALL_BIN=${D}${bindir}' \
36                 'INSTALL_INC=${D}${includedir}' \
37                 'INSTALL_MAN=${D}${mandir}/man1' \
38                 'INSTALL_SHARE=${D}${datadir}/lua' \
39                 install soinstall