-$(STAGING_DIR)/usr/lib/libpcre.so: $(PKG_BUILD_DIR)/.built
- $(MAKE) -C "$(PKG_BUILD_DIR)" \
- DESTDIR="$(STAGING_DIR)" \
- install
- rm -f $(STAGING_DIR)/usr/lib/libpcre*.la
-
-$(IPKG_LIBPCRE): $(STAGING_DIR)/usr/lib/libpcre.so
- $(SCRIPT_DIR)/make-ipkg-dir.sh $(IDIR_LIBPCRE) lib$(PKG_NAME).control $(PKG_VERSION)-$(PKG_RELEASE) $(ARCH)
- mkdir -p $(IDIR_LIBPCRE)/usr/lib
- cp -fp $(STAGING_DIR)/usr/lib/libpcre*.so.* $(IDIR_LIBPCRE)/usr/lib/
- $(STRIP) $(IDIR_LIBPCRE)/usr/lib/lib*.so*
- mkdir -p $(PACKAGE_DIR)
+$(IPKG_LIBPCRE):
+ install -d -m0755 $(IDIR_LIBPCRE)/usr/lib
+ cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libpcre{,posix}.so.* $(IDIR_LIBPCRE)/usr/lib/
+ $(RSTRIP) $(IDIR_LIBPCRE)