[package] usbmuxd: fix build on 64-bits targets and pkconfig
authorFlorian Fainelli <florian@openwrt.org>
Fri, 10 Aug 2012 15:49:26 +0000 (15:49 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Fri, 10 Aug 2012 15:49:26 +0000 (15:49 +0000)
SVN-Revision: 33084

utils/usbmuxd/Makefile

index 9ebcc08f4c2f9b28509d3627e7b89bd9532408ef..7b3f03bc41973b7875986ae61dd0a2451bb2906e 100644 (file)
@@ -63,9 +63,11 @@ define Build/InstallDev
        $(INSTALL_DIR) $(1)/usr/include
        $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
        $(INSTALL_DIR) $(1)/usr/lib
-       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libusbmuxd.so* $(1)/usr/lib/
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib$(LIB_SUFFIX)/libusbmuxd.so* $(1)/usr/lib/
        $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
-       $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libusbmuxd.pc $(1)/usr/lib/pkgconfig/
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib$(LIB_SUFFIX)/pkgconfig/libusbmuxd.pc $(1)/usr/lib/pkgconfig/
+       $(SED) 's,lib$(LIB_SUFFIX),lib,g' $(1)/usr/lib/pkgconfig/libusbmuxd.pc
+       $(SED) 's,\-dirty,$(PKG_VERSION),g' $(1)/usr/lib/pkgconfig/libusbmuxd.pc
 endef
 
 define Package/usbmuxd/install
@@ -77,7 +79,7 @@ endef
 
 define Package/libusbmuxd/install
        $(INSTALL_DIR) $(1)/usr/lib
-       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libusbmuxd.so.* $(1)/usr/lib/
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib$(LIB_SUFFIX)/libusbmuxd.so* $(1)/usr/lib/
 endef
 
 $(eval $(call BuildPackage,usbmuxd))