add host build for libjpeg
authorMirko Vogt <mirko@openwrt.org>
Sat, 2 May 2009 17:33:27 +0000 (17:33 +0000)
committerMirko Vogt <mirko@openwrt.org>
Sat, 2 May 2009 17:33:27 +0000 (17:33 +0000)
SVN-Revision: 15558

libs/jpeg/Makefile

index 6675711..547a909 100644 (file)
@@ -18,6 +18,7 @@ PKG_MD5SUM:=dbd5f3b47ed13132f04c685d608a7547
 
 PKG_FIXUP = libtool
 
+include $(INCLUDE_DIR)/host-build.mk
 include $(INCLUDE_DIR)/package.mk
 
 define Package/jpeg/Default
@@ -46,6 +47,10 @@ CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
 
+HOST_CONFIGURE_ARGS += \
+       --enable-shared \
+       --enable-static \
+
 define Build/Prepare
        $(call Build/Prepare/Default)
        # replace the old upstream libtool stuff with our own
@@ -85,5 +90,6 @@ define Package/jpeg-tools/install
        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/*jpeg* $(1)/usr/bin/
 endef
 
+$(eval $(call HostBuild))
 $(eval $(call BuildPackage,libjpeg))
 $(eval $(call BuildPackage,jpeg-tools))