lua-augeas.mk 1.2 KB

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