mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-05 05:24:20 +00:00
0a29133b1f
c6dae42 LICENSE: add ISC license file 402f603 lib: introduce struct library dcb6ffd struct: fix PowerPC specific compiler pragma name a0512ea treewide: fix typo in exported function names and types eaaaf88 nl80211: fix wiphy dump reply merge logic e6efadb fs: add utility functions 54ef6c0 nl80211: fix premature netlink reply receive abort 07802f3 syntax: disallow keywords in object property shorthand notation 3489b75 vm: support object property access on resource value types dc8027c types: consider resource prototypes when marking reachable objects 5680fab treewide: fix upvalue reference type name 0d29b25 treewide: fix "resource" misspellings 99fdafd vm: introduce value registry 66f7c00 ubus: add support for async requests 5c77dd5 fs: implement fdopen(), file.fileno() and proc.fileno() b605dbf treewide: rework numeric value handling 599d233 vallist: store double values in a platform neutral manner 5bb9ab7 struct: reuse double packing routines from core 2fd7ab5 vm: optimize string concatenation eafa321 lib: implement uniq() function 6b2e79a types: add initial infrastructure for function serialization 725bb75 compiler, vm: use a program wide constant list 6c2caf9 source: refactor source file handling 371ba45 program: implement support for precompiling source files 3578afe build: support building without compile capabilities 61d0a34 lib: replace usages of vasprintf() with xvasprintf() 03b6a8e syntax: drop legacy syntax support 01132db lib: fix %J string formats with precision specifier 3f44c42 lib: rework format string handling a1b3c5d struct: implement `*` format, fix invalid memory accesses 34a04a2 run_tests.sh: fix exitcode evaluation abe38e7 run_tests.sh: add ability to define environment variables for testcases 04fa2ba tests: reorganize testcase files 6a55d10 lib: fix exists() error return value aa860a3 vm: fix `null` loose equality/inequality checks 3f6d199 vallist: uc_number_parse(): parse empty strings as `0`, not `NaN` ddc5aa7 vm: fix NaN strict equality tests Signed-off-by: Jo-Philipp Wich <jo@mein.io>
214 lines
5.3 KiB
Makefile
214 lines
5.3 KiB
Makefile
#
|
|
# Copyright (C) 2020-2021 Jo-Philipp Wich <jo@mein.io>
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=ucode
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_URL=https://github.com/jow-/ucode.git
|
|
PKG_SOURCE_DATE:=2022-01-26
|
|
PKG_SOURCE_VERSION:=ddc5aa7cd3121300f2ba6e68cb038258a616d4e4
|
|
PKG_MIRROR_HASH:=f9a3c010c54288a2363757b58ef31a827b8314e444bb7bf48926f7d4ea88b9d6
|
|
PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
|
|
PKG_LICENSE:=ISC
|
|
|
|
PKG_ABI_VERSION:=20220120
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include $(INCLUDE_DIR)/cmake.mk
|
|
|
|
CMAKE_OPTIONS += -DSOVERSION=$(PKG_ABI_VERSION)
|
|
|
|
define Package/ucode/default
|
|
SECTION:=utils
|
|
CATEGORY:=Utilities
|
|
TITLE:=ucode - Tiny scripting and templating language
|
|
endef
|
|
|
|
define Package/ucode
|
|
$(Package/ucode/default)
|
|
DEPENDS:=+libucode
|
|
endef
|
|
|
|
define Package/ucode/description
|
|
ucode is a tiny script interpreter featuring an ECMAScript oriented
|
|
script language and Jinja-inspired templating.
|
|
endef
|
|
|
|
|
|
define Package/libucode
|
|
$(Package/ucode/default)
|
|
TITLE+= - runtime library
|
|
ABI_VERSION:=$(PKG_ABI_VERSION)
|
|
DEPENDS:=+libjson-c
|
|
endef
|
|
|
|
define Package/libucode/description
|
|
The libucode package provides the shared runtime library for the ucode interpreter.
|
|
endef
|
|
|
|
|
|
define Package/ucode-mod-fs
|
|
$(Package/ucode/default)
|
|
TITLE+= (filesystem module)
|
|
DEPENDS:=ucode
|
|
endef
|
|
|
|
define Package/ucode-mod-fs/description
|
|
The filesystem plugin module allows interaction with the local file system.
|
|
endef
|
|
|
|
|
|
define Package/ucode-mod-math
|
|
$(Package/ucode/default)
|
|
TITLE+= (math module)
|
|
DEPENDS:=ucode
|
|
endef
|
|
|
|
define Package/ucode-mod-math/description
|
|
The math plugin provides access to various <math.h> procedures.
|
|
endef
|
|
|
|
|
|
define Package/ucode-mod-nl80211
|
|
$(Package/ucode/default)
|
|
TITLE+= (nl80211 module)
|
|
DEPENDS:=ucode +libnl-tiny
|
|
endef
|
|
|
|
define Package/ucode-mod-nl80211/description
|
|
The nl80211 plugin provides access to the Linux wireless 802.11 netlink API.
|
|
endef
|
|
|
|
|
|
define Package/ucode-mod-resolv
|
|
$(Package/ucode/default)
|
|
TITLE+= (resolv module)
|
|
DEPENDS:=ucode
|
|
endef
|
|
|
|
define Package/ucode-mod-resolv/description
|
|
The resolv plugin implements simple DNS resolving.
|
|
endef
|
|
|
|
|
|
define Package/ucode-mod-rtnl
|
|
$(Package/ucode/default)
|
|
TITLE+= (rtnl module)
|
|
DEPENDS:=ucode +libnl-tiny
|
|
endef
|
|
|
|
define Package/ucode-mod-rtnl/description
|
|
The rtnl plugin provides access to the Linux routing netlink API.
|
|
endef
|
|
|
|
|
|
define Package/ucode-mod-struct
|
|
$(Package/ucode/default)
|
|
TITLE+= (struct module)
|
|
DEPENDS:=ucode
|
|
endef
|
|
|
|
define Package/ucode-mod-struct/description
|
|
The struct plugin implemnts Python 3 compatible struct.pack/unpack functionality.
|
|
endef
|
|
|
|
|
|
define Package/ucode-mod-ubus
|
|
$(Package/ucode/default)
|
|
TITLE+= (ubus module)
|
|
DEPENDS:=ucode +libubus +libblobmsg-json
|
|
endef
|
|
|
|
define Package/ucode-mod-ubus/description
|
|
The ubus module allows ucode template scripts to enumerate and invoke ubus
|
|
procedures.
|
|
endef
|
|
|
|
|
|
define Package/ucode-mod-uci
|
|
$(Package/ucode/default)
|
|
TITLE+= (uci module)
|
|
DEPENDS:=ucode +libuci
|
|
endef
|
|
|
|
define Package/ucode-mod-uci/description
|
|
The uci module allows templates to read and modify uci configuration.
|
|
endef
|
|
|
|
|
|
define Build/InstallDev
|
|
$(INSTALL_DIR) $(1)/usr/lib $(1)/usr/include/ucode
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/ucode/*.h $(1)/usr/include/ucode/
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libucode.so* $(1)/usr/lib/
|
|
endef
|
|
|
|
|
|
define Package/ucode/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ucode $(1)/usr/bin/ucode
|
|
endef
|
|
|
|
define Package/libucode/install
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libucode.so.* $(1)/usr/lib/
|
|
endef
|
|
|
|
define Package/ucode-mod-fs/install
|
|
$(INSTALL_DIR) $(1)/usr/lib/ucode
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/ucode/fs.so $(1)/usr/lib/ucode/
|
|
endef
|
|
|
|
define Package/ucode-mod-math/install
|
|
$(INSTALL_DIR) $(1)/usr/lib/ucode
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/ucode/math.so $(1)/usr/lib/ucode/
|
|
endef
|
|
|
|
define Package/ucode-mod-nl80211/install
|
|
$(INSTALL_DIR) $(1)/usr/lib/ucode
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/ucode/nl80211.so $(1)/usr/lib/ucode/
|
|
endef
|
|
|
|
define Package/ucode-mod-resolv/install
|
|
$(INSTALL_DIR) $(1)/usr/lib/ucode
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/ucode/resolv.so $(1)/usr/lib/ucode/
|
|
endef
|
|
|
|
define Package/ucode-mod-rtnl/install
|
|
$(INSTALL_DIR) $(1)/usr/lib/ucode
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/ucode/rtnl.so $(1)/usr/lib/ucode/
|
|
endef
|
|
|
|
define Package/ucode-mod-struct/install
|
|
$(INSTALL_DIR) $(1)/usr/lib/ucode
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/ucode/struct.so $(1)/usr/lib/ucode/
|
|
endef
|
|
|
|
define Package/ucode-mod-ubus/install
|
|
$(INSTALL_DIR) $(1)/usr/lib/ucode
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/ucode/ubus.so $(1)/usr/lib/ucode/
|
|
endef
|
|
|
|
define Package/ucode-mod-uci/install
|
|
$(INSTALL_DIR) $(1)/usr/lib/ucode
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/ucode/uci.so $(1)/usr/lib/ucode/
|
|
endef
|
|
|
|
|
|
$(eval $(call BuildPackage,ucode))
|
|
$(eval $(call BuildPackage,libucode))
|
|
$(eval $(call BuildPackage,ucode-mod-fs))
|
|
$(eval $(call BuildPackage,ucode-mod-math))
|
|
$(eval $(call BuildPackage,ucode-mod-nl80211))
|
|
$(eval $(call BuildPackage,ucode-mod-resolv))
|
|
$(eval $(call BuildPackage,ucode-mod-rtnl))
|
|
$(eval $(call BuildPackage,ucode-mod-struct))
|
|
$(eval $(call BuildPackage,ucode-mod-ubus))
|
|
$(eval $(call BuildPackage,ucode-mod-uci))
|