From 09f721cc409127858458267d668902a64b28f132 Mon Sep 17 00:00:00 2001 From: nbd Date: Sat, 28 Feb 2009 20:50:40 +0000 Subject: [PATCH] add host build for libpng git-svn-id: svn://svn.openwrt.org/openwrt/packages@14696 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- libs/libpng/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libs/libpng/Makefile b/libs/libpng/Makefile index 6ce0daf5a..f544e6a1c 100644 --- a/libs/libpng/Makefile +++ b/libs/libpng/Makefile @@ -16,6 +16,7 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE_URL:=@SF/libpng PKG_MD5SUM:=f588cb4ee39e3a333604096f937ea157 +include $(INCLUDE_DIR)/host-build.mk include $(INCLUDE_DIR)/package.mk define Package/libpng @@ -42,6 +43,10 @@ define Build/Compile all install endef +define Host/Install + $(MAKE) -C "$(HOST_BUILD_DIR)" install +endef + define Build/InstallDev mkdir -p $(2)/bin $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/libpng{,12}-config $(2)/bin/ @@ -60,4 +65,5 @@ define Package/libpng/install $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpng{,12}.so.* $(1)/usr/lib/ endef +$(eval $(call HostBuild)) $(eval $(call BuildPackage,libpng))