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