-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2828db1
commit 78aade7
Showing
1 changed file
with
22 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,64 +1,52 @@ | ||
# | ||
# Copyright (C) 2006-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:=expat | ||
PKG_VERSION:=2.2.0 | ||
PKG_VERSION:=2.5.0 | ||
PKG_RELEASE:=1 | ||
|
||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 | ||
PKG_MD5SUM:=2f47841c829facb346eb6e3fab5212e2 | ||
PKG_SOURCE_URL:=@SF/expat | ||
PKG_MAINTAINER:=Steven Barth <[email protected]> | ||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz | ||
PKG_SOURCE_URL:=@SF/expat \ | ||
https://github.com/libexpat/libexpat/releases/download/R_$(subst .,_,$(PKG_VERSION)) | ||
PKG_HASH:=ef2420f0232c087801abf705e89ae65f6257df6b7931d37846a193ef2e8cdcbe | ||
|
||
PKG_MAINTAINER:=Ted Hess <[email protected]> | ||
PKG_LICENSE:=MIT | ||
PKG_LICENSE_FILES:=COPYING | ||
PKG_CPE_ID:=cpe:/a:libexpat:expat | ||
|
||
PKG_FIXUP:=autoreconf | ||
PKG_REMOVE_FILES:=conftools/libtool.m4 | ||
|
||
PKG_INSTALL:=1 | ||
PKG_BUILD_PARALLEL:=1 | ||
CMAKE_INSTALL:=1 | ||
|
||
include $(INCLUDE_DIR)/host-build.mk | ||
include $(INCLUDE_DIR)/package.mk | ||
include $(INCLUDE_DIR)/host-build.mk | ||
include $(INCLUDE_DIR)/cmake.mk | ||
|
||
define Package/libexpat | ||
SECTION:=libs | ||
CATEGORY:=Libraries | ||
TITLE:=An XML parsing library | ||
URL:=http://expat.sourceforge.net/ | ||
URL:=https://libexpat.github.io/ | ||
endef | ||
|
||
define Package/libexpat/description | ||
A fast, non-validating, stream-oriented XML parsing library. | ||
endef | ||
|
||
TARGET_CFLAGS += $(FPIC) | ||
|
||
CONFIGURE_ARGS += \ | ||
--enable-shared \ | ||
--enable-static | ||
|
||
define Host/Install | ||
$(MAKE) -C $(HOST_BUILD_DIR) install | ||
endef | ||
|
||
define Build/InstallDev | ||
$(INSTALL_DIR) $(1)/usr/include | ||
$(CP) $(PKG_INSTALL_DIR)/usr/include/expat{,_external}.h $(1)/usr/include/ | ||
|
||
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig | ||
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/expat.pc $(1)/usr/lib/pkgconfig/ | ||
|
||
$(INSTALL_DIR) $(1)/usr/lib | ||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libexpat.{a,so*} $(1)/usr/lib/ | ||
endef | ||
CMAKE_OPTIONS += \ | ||
-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 | ||
|
||
define Package/libexpat/install | ||
$(INSTALL_DIR) $(1)/usr/lib | ||
|