blob: a7937925b000ad148bf9092205585650b6edc435 (
plain)
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
|
include $(TOPDIR)/rules.mk
PKG_NAME:=ucode-mod-lua
PKG_RELEASE:=1
PKG_LICENSE:=ISC
PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
include $(INCLUDE_DIR)/package.mk
define Package/ucode-mod-lua
SECTION:=utils
CATEGORY:=Utilities
TITLE:=ucode to Lua bridge library
DEPENDS:=+libucode +liblua
endef
define Package/ucode-mod-lua/install
$(INSTALL_DIR) $(1)/usr/lib/ucode
$(CP) $(PKG_BUILD_DIR)/lua.so $(1)/usr/lib/ucode/
endef
define Build/Configure
endef
define Build/Compile
$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) $(FPIC) \
-Wall -ffunction-sections -Wl,--gc-sections -shared -Wl,--no-as-needed -llua \
-o $(PKG_BUILD_DIR)/lua.so $(PKG_BUILD_DIR)/lua.c
endef
$(eval $(call BuildPackage,ucode-mod-lua))
|