2014-07-18 10:55:52 +02:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=expat
|
2022-11-06 21:32:33 +01:00
|
|
|
PKG_VERSION:=2.5.0
|
treewide: remove AUTORELEASE
Automatically compute and substitute current values for all
$(AUTORELEASE) instances as this feature is deprecated and shouldn't be
used.
The following temporary change was made to the core:
diff --git a/rules.mk b/rules.mk
index 57d7995d4fa8..f16367de87a8 100644
--- a/rules.mk
+++ b/rules.mk
@@ -429,7 +429,7 @@ endef
abi_version_str = $(subst -,,$(subst _,,$(subst .,,$(1))))
COMMITCOUNT = $(if $(DUMP),0,$(call commitcount))
-AUTORELEASE = $(if $(DUMP),0,$(call commitcount,1))
+AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile))
all:
FORCE: ;
And this command used to fix affected packages:
for i in $(cd feeds/packages; git grep -l PKG_RELEASE:=.*AUTORELEASE | \
sed 's^.*/\([^/]*\)/Makefile^\1^';);
do
make package/$i/download
done
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2023-04-21 18:32:27 +02:00
|
|
|
PKG_RELEASE:=1
|
2014-07-18 10:55:52 +02:00
|
|
|
|
2019-07-10 16:17:52 +02:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
2022-11-06 21:32:33 +01:00
|
|
|
PKG_SOURCE_URL:=@SF/expat \
|
|
|
|
https://github.com/libexpat/libexpat/releases/download/R_$(subst .,_,$(PKG_VERSION))
|
|
|
|
PKG_HASH:=ef2420f0232c087801abf705e89ae65f6257df6b7931d37846a193ef2e8cdcbe
|
2014-07-18 10:55:52 +02:00
|
|
|
|
2019-07-10 16:17:52 +02:00
|
|
|
PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
|
2014-07-18 10:55:52 +02:00
|
|
|
PKG_LICENSE:=MIT
|
2014-09-03 23:09:04 +02:00
|
|
|
PKG_LICENSE_FILES:=COPYING
|
2019-07-10 16:17:52 +02:00
|
|
|
PKG_CPE_ID:=cpe:/a:libexpat:expat
|
2014-07-18 10:55:52 +02:00
|
|
|
|
2020-07-04 22:08:07 +02:00
|
|
|
CMAKE_INSTALL:=1
|
2014-07-18 10:55:52 +02:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2021-06-11 01:27:06 +02:00
|
|
|
include $(INCLUDE_DIR)/cmake.mk
|
2014-07-18 10:55:52 +02:00
|
|
|
|
|
|
|
define Package/libexpat
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=An XML parsing library
|
2017-07-11 09:42:04 +02:00
|
|
|
URL:=https://libexpat.github.io/
|
2014-07-18 10:55:52 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libexpat/description
|
|
|
|
A fast, non-validating, stream-oriented XML parsing library.
|
|
|
|
endef
|
|
|
|
|
2021-10-19 01:10:33 +02:00
|
|
|
CMAKE_OPTIONS += \
|
2020-07-04 22:08:07 +02:00
|
|
|
-DDOCBOOK_TO_MAN=OFF \
|
|
|
|
-DEXPAT_BUILD_TOOLS=OFF \
|
|
|
|
-DEXPAT_BUILD_EXAMPLES=OFF \
|
|
|
|
-DEXPAT_BUILD_TESTS=OFF \
|
|
|
|
-DEXPAT_BUILD_DOCS=OFF \
|
|
|
|
-DEXPAT_WITH_LIBBSD=OFF \
|
|
|
|
-DEXPAT_ENABLE_INSTALL=ON \
|
|
|
|
-DEXPAT_DTD=OFF \
|
|
|
|
-DEXPAT_NS=OFF \
|
|
|
|
-DEXPAT_DEV_URANDOM=OFF
|
2014-07-18 10:55:52 +02:00
|
|
|
|
|
|
|
define Package/libexpat/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2014-09-05 23:20:48 +02:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libexpat.so.* $(1)/usr/lib/
|
2014-07-18 10:55:52 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,libexpat))
|