From 95f49e354f8e750e753873f3b66a1d453fffea81 Mon Sep 17 00:00:00 2001 From: Lars-Peter Clausen Date: Wed, 8 Oct 2008 16:01:28 +0000 Subject: [PATCH] Install libart2-config to $(STAGING_DIR)/host/bin rather then $(STAGING_DIR)/usr/bin. SVN-Revision: 12904 --- libs/libart/Makefile | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/libs/libart/Makefile b/libs/libart/Makefile index 69555d6049..f87a48a1b6 100644 --- a/libs/libart/Makefile +++ b/libs/libart/Makefile @@ -21,6 +21,8 @@ PKG_FIXUP:=libtool include $(INCLUDE_DIR)/package.mk +PKG_INSTALL=1 + define Package/libart SECTION:=libs CATEGORY:=Libraries @@ -42,21 +44,33 @@ define Build/Configure $(call Build/Configure/Default, \ --enable-shared \ --enable-static \ - , \ ) endef define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR) HOSTCC="$(HOSTCC)" - $(MAKE) -C $(PKG_BUILD_DIR) install DESTDIR="$(PKG_INSTALL_DIR)" endef define Build/InstallDev - $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/include $(1)/usr/lib $(1)/usr/lib/pkgconfig - $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/libart2-config $(1)/usr/bin/ - $(CP) $(PKG_INSTALL_DIR)/usr/include/libart-2.0 $(1)/usr/include/ - $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libart_lgpl_2.{la,a,so*} $(1)/usr/lib/ - $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libart-2.0.pc $(1)/usr/lib/pkgconfig/ + $(INSTALL_DIR) $(2)/bin $(1)/usr/include $(1)/usr/lib $(1)/usr/lib/pkgconfig + $(INSTALL_BIN) \ + $(PKG_INSTALL_DIR)/usr/bin/libart2-config \ + $(2)/bin/ + $(SED) \ + 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \ + $(2)/bin/libart2-config + + $(CP) \ + $(PKG_INSTALL_DIR)/usr/include/libart-2.0 \ + $(1)/usr/include/ + + $(INSTALL_DATA) \ + $(PKG_INSTALL_DIR)/usr/lib/libart_lgpl_2.{la,so*} \ + $(1)/usr/lib/ + + $(INSTALL_DATA) \ + $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libart-2.0.pc \ + $(1)/usr/lib/pkgconfig/ endef define Package/libart/install -- 2.30.2