2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2010-05-10 19:42:13 +02:00
|
|
|
#
|
|
|
|
# luafilesystem
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2010-05-10 19:42:13 +02:00
|
|
|
|
2013-05-09 00:45:05 +02:00
|
|
|
LUAFILESYSTEM_VERSION = 1.6.2
|
2010-05-10 19:42:13 +02:00
|
|
|
LUAFILESYSTEM_SITE = http://github.com/downloads/keplerproject/luafilesystem
|
|
|
|
LUAFILESYSTEM_DEPENDENCIES = lua
|
2012-08-06 07:46:43 +02:00
|
|
|
LUAFILESYSTEM_LICENSE = MIT
|
2010-05-10 19:42:13 +02:00
|
|
|
|
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
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(generic-package))
|