(cd $(PKG_BUILD_DIR); \
$(TARGET_CONFIGURE_OPTS) \
LDSHARED="$(TARGET_CC) -shared -Wl,-soname,libz.so.1" \
CFLAGS="$(TARGET_CFLAGS) $(CFLAGS_LARGEFILE)" \
(cd $(PKG_BUILD_DIR); \
$(TARGET_CONFIGURE_OPTS) \
LDSHARED="$(TARGET_CC) -shared -Wl,-soname,libz.so.1" \
CFLAGS="$(TARGET_CFLAGS) $(CFLAGS_LARGEFILE)" \
$(MAKE) -C $(PKG_BUILD_DIR) \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS) $(CFLAGS_LARGEFILE)" \
$(MAKE) -C $(PKG_BUILD_DIR) \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS) $(CFLAGS_LARGEFILE)" \
- cp -fpR $(PKG_INSTALL_DIR)/usr/lib/* $(STAGING_DIR)/usr/lib
- touch $(STAGING_DIR)/usr/lib/libz.so
+ $(CP) $(PKG_INSTALL_DIR)/usr/lib/libz.{a,so*} \
+ $(STAGING_DIR)/usr/lib/
+endef
-install-dev: $(STAGING_DIR)/usr/lib/libz.so
+define Build/UninstallDev
+ rm -rf $(STAGING_DIR)/usr/include/z{conf,lib}.h \
+ $(STAGING_DIR)/usr/lib/libz.{a,so*}
+endef
-uninstall-dev:
- rm -rf $(STAGING_DIR)/usr/include/zconf.h
- rm -rf $(STAGING_DIR)/usr/include/zlib.h
- rm -rf $(STAGING_DIR)/usr/lib/libz.*
+define Package/zlib/install
+ $(INSTALL_DIR) $(1)/usr/lib
+ $(CP) $(PKG_INSTALL_DIR)/usr/lib/libz.so.* $(1)/usr/lib/
+endef