[AR7]: Fix two of the three bugs in #3122
[openwrt.git] / package / libjson-c / Makefile
index c2adc7c..f713cc6 100644 (file)
@@ -37,19 +37,11 @@ endef
 
 define Build/InstallDev
        mkdir -p $(1)/usr/include
-       $(CP) -r $(PKG_INSTALL_DIR)/usr/include/json $(1)/usr/include/
+       $(CP) $(PKG_INSTALL_DIR)/usr/include/json $(1)/usr/include/
        mkdir -p $(1)/usr/lib
-       $(CP) -r $(PKG_INSTALL_DIR)/usr/lib/libjson.{a,so*} $(1)/usr/lib/
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libjson.{a,so*} $(1)/usr/lib/
        mkdir -p $(1)/usr/lib/pkgconfig
-       $(CP) -r $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/json.pc $(1)/usr/lib/pkgconfig/
-       $(SED) 's,-I$$$${includedir}/,-I$(1)/usr/include/,g' $(1)/usr/lib/pkgconfig/json.pc
-       $(SED) 's,-L$$$${libdir},,g' $(1)/usr/lib/pkgconfig/json.pc
-endef
-
-define Build/UninstallDev
-       rm -rf  $(1)/usr/include/json \
-               $(1)/usr/lib/libjson.{a,so*} \
-               $(1)/usr/lib/pkgconfig/json.pc
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/json.pc $(1)/usr/lib/pkgconfig/
 endef
 
 define Package/libjson/install
This page took 0.026162 seconds and 4 git commands to generate.