Workshop o mikrokontrolérech na SKSP 2024.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.3 KiB

2 months ago
# Package Makefile for OpenWRT
include $(TOPDIR)/rules.mk
PKG_NAME:=libucw
PKG_VERSION:=6.5.9
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/libucw-$(PKG_VERSION)
PKG_SOURCE:=libucw-$(PKG_VERSION).tar.gz
PKG_SOURCE_SUBDIR=libucw-$(PKG_VERSION)
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=git://git.ucw.cz/libucw.git
# PKG_SOURCE_VERSION:=v$(PKG_VERSION)
PKG_SOURCE_VERSION:=9ef73a67dd942f6e369c2719847d2cc35e920c88
include $(INCLUDE_DIR)/package.mk
define Package/libucw
SECTION:=ucw
CATEGORY:=Libraries
TITLE:=The UCW Library
URL:=http://www.ucw.cz/libucw/
DEPENDS:=+libpthread +librt
endef
define Package/libucw/description
The UCW library aims to provide a set general purpose tools for programming in
the C language. In other words, to make writing of complex and very efficient
programs in plain C a pleasure.
endef
define Build/Configure
( cd $(PKG_BUILD_DIR) && ./configure PREFIX=/ CC=$(TARGET_CC) AR=$(TARGET_AR) OS=Linux -CONFIG_DEBUG -CONFIG_UCW_PERL -CONFIG_UCW_PERL_MODULES -CONFIG_UCW_SHELL_UTILS -CONFIG_UCW_UTILS -CONFIG_CHARSET -CONFIG_JSON -CONFIG_XML )
endef
define Build/InstallDev
make -C $(PKG_BUILD_DIR) DESTDIR=$(1) install-libucw-lib install-libucw-api
endef
define Package/libucw/install
make -C $(PKG_BUILD_DIR) DESTDIR=$(1) install-libucw-lib
endef
$(eval $(call BuildPackage,libucw))