expat: don't build host libs
authorRosen Penev <rosenp@gmail.com>
Mon, 18 Oct 2021 23:10:33 +0000 (16:10 -0700)
committerRosen Penev <rosenp@gmail.com>
Tue, 19 Oct 2021 20:16:18 +0000 (13:16 -0700)
tools/expat is actually what's used by the various packages that
supposedly depend on expat/host.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
lang/perl-xml-parser/Makefile
lang/python/python3/Makefile
libs/expat/Makefile

index 6e724a8dd4b61eee056cc632ff0014a1d6e42022..7d770c933fb883f681fb85fe4caec573846d71be 100644 (file)
@@ -21,7 +21,7 @@ PKG_LICENSE:=GPL-1.0-or-later Artistic-1.0-Perl
 PKG_BUILD_DIR:=$(BUILD_DIR)/perl/XML-Parser-$(PKG_VERSION)
 HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/perl/XML-Parser-$(PKG_VERSION)
 
-HOST_BUILD_DEPENDS:=perl/host expat/host
+HOST_BUILD_DEPENDS:=perl/host
 
 EXPAT_LIBPATH:=$(STAGING_DIR)/usr/lib
 EXPAT_INCPATH:=$(STAGING_DIR)/usr/include
index 93a1c335ec18906191f9a5ba2453c552fa6d4c29..619a08a56b3a10ab49492b5f830fb89867421e99 100644 (file)
@@ -44,7 +44,7 @@ PKG_CONFIG_DEPENDS:= \
        CONFIG_PACKAGE_python3-setuptools CONFIG_PACKAGE_python3-pip
 
 PKG_BUILD_DEPENDS:=bluez python3/host
-HOST_BUILD_DEPENDS:=bzip2/host expat/host libffi/host
+HOST_BUILD_DEPENDS:=bzip2/host libffi/host
 
 include $(INCLUDE_DIR)/host-build.mk
 include $(INCLUDE_DIR)/package.mk
index ba91114c512500703518e21df56dc5d50cfaad13..7e8baf4e756ce143329d60da80a38677f1062bf2 100644 (file)
@@ -20,7 +20,6 @@ PKG_CPE_ID:=cpe:/a:libexpat:expat
 
 CMAKE_INSTALL:=1
 
-include $(INCLUDE_DIR)/host-build.mk
 include $(INCLUDE_DIR)/package.mk
 include $(INCLUDE_DIR)/cmake.mk
 
@@ -35,7 +34,7 @@ define Package/libexpat/description
  A fast, non-validating, stream-oriented XML parsing library.
 endef
 
-OPTIONS += \
+CMAKE_OPTIONS += \
        -DDOCBOOK_TO_MAN=OFF \
        -DEXPAT_BUILD_TOOLS=OFF \
        -DEXPAT_BUILD_EXAMPLES=OFF \
@@ -47,13 +46,9 @@ OPTIONS += \
        -DEXPAT_NS=OFF \
        -DEXPAT_DEV_URANDOM=OFF
 
-CMAKE_OPTIONS += $(OPTIONS)
-CMAKE_HOST_OPTIONS += $(OPTIONS)
-
 define Package/libexpat/install
        $(INSTALL_DIR) $(1)/usr/lib
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libexpat.so.* $(1)/usr/lib/
 endef
 
-$(eval $(call HostBuild))
 $(eval $(call BuildPackage,libexpat))