2010-05-10 19:42:13 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# luafilesystem
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
|
|
|
|
LUAFILESYSTEM_VERSION = 1.5.0
|
|
|
|
LUAFILESYSTEM_SITE = http://github.com/downloads/keplerproject/luafilesystem
|
|
|
|
LUAFILESYSTEM_DEPENDENCIES = lua
|
|
|
|
|
2010-08-05 16:36:34 +02:00
|
|
|
ifeq ($(BR2_LARGEFILE),y)
|
2010-08-29 23:36:46 +02:00
|
|
|
LFS_CFLAGS = -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE
|
2010-08-05 16:36:34 +02:00
|
|
|
endif
|
|
|
|
|
2010-05-10 19:42:13 +02:00
|
|
|
define LUAFILESYSTEM_BUILD_CMDS
|
2010-08-05 16:36:34 +02:00
|
|
|
$(MAKE) -C $(@D) CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS) $(LFS_CFLAGS) -fPIC"
|
2010-05-10 19:42:13 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define LUAFILESYSTEM_INSTALL_TARGET_CMDS
|
|
|
|
$(INSTALL) -D $(@D)/src/lfs.so $(TARGET_DIR)/usr/lib/lua/lfs.so
|
|
|
|
endef
|
|
|
|
|
|
|
|
define LUAFILESYSTEM_UNINSTALL_TARGET_CMDS
|
|
|
|
rm -f "$(TARGET_DIR)/usr/lib/lua/lfs.so"
|
|
|
|
endef
|
|
|
|
|
|
|
|
define LUAFILESYSTEM_CLEAN_CMDS
|
|
|
|
$(MAKE) -C $(@D) clean
|
|
|
|
endef
|
|
|
|
|
2011-09-29 21:57:42 +02:00
|
|
|
$(eval $(call GENTARGETS))
|