@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME := lua-rs232
PKG_NAME := lua-rs232
PKG_SOURCE_DATE := 2019-11-20
PKG_SOURCE_DATE := 2019-11-20
PKG_SOURCE_VERSION := c106c94d1a5a84e8582c936528303528608776c2
PKG_SOURCE_VERSION := c106c94d1a5a84e8582c936528303528608776c2
PKG_RELEASE := 1
PKG_RELEASE := 2
PKG_SOURCE_PROTO := git
PKG_SOURCE_PROTO := git
PKG_SOURCE_URL := https://github.com/srdgame/librs232
PKG_SOURCE_URL := https://github.com/srdgame/librs232
@ -42,6 +42,7 @@ endef
TARGET_CFLAGS += -ffunction-sections -fdata-sections
TARGET_CFLAGS += -ffunction-sections -fdata-sections
TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed
TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed
MAKE_FLAGS += luadir = '$$$${prefix}/lib/lua' luaexecdir = '$$$${exec_prefix}/lib/lua'
d e f i n e B u i l d / I n s t a l l D e v
d e f i n e B u i l d / I n s t a l l D e v
$( INSTALL_DIR) $( 1) /usr/include/librs232
$( INSTALL_DIR) $( 1) /usr/include/librs232
@ -49,7 +50,7 @@ define Build/InstallDev
$( INSTALL_DIR) $( 1) /usr/lib
$( INSTALL_DIR) $( 1) /usr/lib
$( CP) $( PKG_INSTALL_DIR) /usr/lib/librs232* $( 1) /usr/lib/
$( CP) $( PKG_INSTALL_DIR) /usr/lib/librs232* $( 1) /usr/lib/
$( INSTALL_DIR) $( 1) /usr/lib/lua
$( INSTALL_DIR) $( 1) /usr/lib/lua
$( INSTALL_DATA) $( PKG_INSTALL_DIR) /usr/lib/lua/5.1/ luars232* $( 1) /usr/lib/lua
$( INSTALL_DATA) $( PKG_INSTALL_DIR) /usr/lib/lua/luars232* $( 1) /usr/lib/lua
$( INSTALL_DIR) $( 1) /usr/lib/pkgconfig
$( INSTALL_DIR) $( 1) /usr/lib/pkgconfig
$( INSTALL_DATA) $( PKG_INSTALL_DIR) /usr/lib/pkgconfig/librs232.pc $( 1) /usr/lib/pkgconfig
$( INSTALL_DATA) $( PKG_INSTALL_DIR) /usr/lib/pkgconfig/librs232.pc $( 1) /usr/lib/pkgconfig
e n d e f
e n d e f
@ -58,7 +59,7 @@ define Package/lua-rs232/install
$( INSTALL_DIR) $( 1) /usr/lib/
$( INSTALL_DIR) $( 1) /usr/lib/
$( CP) $( PKG_INSTALL_DIR) /usr/lib/librs232.so* $( 1) /usr/lib/
$( CP) $( PKG_INSTALL_DIR) /usr/lib/librs232.so* $( 1) /usr/lib/
$( INSTALL_DIR) $( 1) /usr/lib/lua
$( INSTALL_DIR) $( 1) /usr/lib/lua
$( INSTALL_DATA) $( PKG_INSTALL_DIR) /usr/lib/lua/5.1/ luars232* $( 1) /usr/lib/lua
$( INSTALL_DATA) $( PKG_INSTALL_DIR) /usr/lib/lua/luars232* $( 1) /usr/lib/lua
e n d e f
e n d e f
$( eval $ ( call BuildPackage ,lua -rs 232) )
$( eval $ ( call BuildPackage ,lua -rs 232) )