Commit 5c6d28cb authored by nbd's avatar nbd

expat: add host build

git-svn-id: svn://svn.openwrt.org/openwrt/packages@14700 3c298f89-4303-0410-b956-a3cf2f4a3e73
parent 09f721cc
......@@ -18,9 +18,9 @@ PKG_SOURCE_URL:=@SF/expat
PKG_FIXUP = libtool
include $(INCLUDE_DIR)/host-build.mk
include $(INCLUDE_DIR)/package.mk
define Package/libexpat
SECTION:=libs
CATEGORY:=Libraries
......@@ -43,6 +43,10 @@ define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" install
endef
define Host/Install
$(MAKE) -C $(HOST_BUILD_DIR) install
endef
define Build/InstallDev
mkdir -p $(1)/usr/include
$(CP) $(PKG_INSTALL_DIR)/usr/include/expat{,_external}.h $(1)/usr/include/
......@@ -55,6 +59,6 @@ define Package/libexpat/install
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libexpat.so.* $(1)/usr/lib/
endef
$(eval $(call HostBuild))
$(eval $(call BuildPackage,libexpat))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment