xref: /OK3568_Linux_fs/buildroot/package/lua-augeas/lua-augeas.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1################################################################################
2#
3# lua-augeas
4#
5################################################################################
6
7LUA_AUGEAS_VERSION = a6eace5116d1a711218a7c9086a4e3c4db88ee57
8LUA_AUGEAS_SITE = $(call github,ncopa,lua-augeas,$(LUA_AUGEAS_VERSION))
9LUA_AUGEAS_LICENSE = MIT
10LUA_AUGEAS_LICENSE_FILES = COPYRIGHT
11LUA_AUGEAS_DEPENDENCIES = luainterpreter augeas host-pkgconf
12
13# LDFLAGS=$(LDFLAGS) is present to pass LDFLAGS from environment to the command
14# line. With LDFLAGS set in the command line, related ordinary asignment present
15# in the makefile are ignored and so lua-augeas makefile cannot not add '-L/lib'
16# to this value.
17LUA_AUGEAS_CONF_OPTS= \
18	PKGCONFIG="$(PKG_CONFIG_HOST_BINARY)" \
19	LDFLAGS="$(LDFLAGS)" \
20	LUA_VERSION="$(LUAINTERPRETER_ABIVER)" \
21	INSTALL_CMOD="/usr/lib/lua/$(LUAINTERPRETER_ABIVER)"
22
23define LUA_AUGEAS_BUILD_CMDS
24	$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
25		$(LUA_AUGEAS_CONF_OPTS) all
26endef
27
28define LUA_AUGEAS_INSTALL_TARGET_CMDS
29	$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
30		$(LUA_AUGEAS_CONF_OPTS) DESTDIR="$(TARGET_DIR)" install
31endef
32
33$(eval $(generic-package))
34