0
0
mirror of https://github.com/openwrt/packages.git synced 2025-11-03 15:50:44 +00:00
Files
packages/lang/luabitop/Makefile
Maxim Storchak 3fe8c1b4aa luabitop: update to 1.0.3
Remove myself as a maintainer

Signed-off-by: Maxim Storchak <m.storchak@gmail.com>
2025-06-26 09:47:05 +02:00

53 lines
1.2 KiB
Makefile

#
# Copyright (C) 2014 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=luabitop
PKG_VERSION:=1.0.3
PKG_RELEASE:=1
_BASENAME:=LuaBitOp
PKG_SOURCE:=$(_BASENAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://bitop.luajit.org/download/
PKG_HASH:=d514a3d2cefa76c8d11c1b9ec740d5fae316a9c9764e1e12ddea21e4982fab4b
PKG_BUILD_DIR:=$(BUILD_DIR)/$(_BASENAME)-$(PKG_VERSION)
PKG_LICENSE:=MIT
include $(INCLUDE_DIR)/package.mk
define Package/luabitop
SUBMENU:=Lua
SECTION:=lang
CATEGORY:=Languages
TITLE:=luabitop
URL:=http://bitop.luajit.org/
DEPENDS:=+liblua
endef
define Package/luabitop/description
Lua BitOp is a C extension module for Lua 5.1/5.2 which adds bitwise operations on numbers.
endef
define Build/Configure
endef
TARGET_CFLAGS += $(FPIC) -DLUA_USE_LINUX -DLUA_NUMBER_DOUBLE
define Build/Compile
$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_CPPFLAGS) $(TARGET_CPPFLAGS) -std=gnu99 $(FPIC) -DLUA_USE_LINUX -shared -o $(PKG_BUILD_DIR)/bit.so $(PKG_BUILD_DIR)/bit.c
endef
define Package/luabitop/install
$(INSTALL_DIR) $(1)/usr/lib/lua
$(INSTALL_BIN) $(PKG_BUILD_DIR)/bit.so $(1)/usr/lib/lua
endef
$(eval $(call BuildPackage,luabitop))