buildrootschalter/package/xavante/xavante.mk
Thomas Petazzoni 0849e8193e package: remove useless arguments from GENTARGETS
Thanks to the pkgparentdir and pkgname functions, we can rewrite the
GENTARGETS macro in a way that avoids the need for each package to
repeat its name and the directory in which it is present.

[Peter: pkgdir->pkgparentdir]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2011-09-29 23:09:58 +02:00

24 lines
674 B
Makefile

#############################################################
#
# xavante
#
#############################################################
XAVANTE_VERSION = 2.2.0
XAVANTE_SITE = http://github.com/downloads/keplerproject/xavante
XAVANTE_DEPENDENCIES = cgilua copas coxpcall lua luafilesystem luasocket wsapi
define XAVANTE_INSTALL_TARGET_CMDS
$(MAKE) -C $(@D) PREFIX=/usr \
LUA_DIR="$(TARGET_DIR)/usr/share/lua" \
LUA_LIBDIR="$(TARGET_DIR)/usr/lib/lua" install
endef
define XAVANTE_UNINSTALL_TARGET_CMDS
rm -rf "$(TARGET_DIR)/usr/share/xavante"
rm -f "$(TARGET_DIR)/usr/share/xavante.lua"
rm -f "$(TARGET_DIR)/usr/share/sajax.lua"
endef
$(eval $(call GENTARGETS))