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