-$(PKG_IPK): $(STAGING_DIR)/usr/lib/libpopt.so
- $(SCRIPT_DIR)/make-ipkg-dir.sh $(PKG_IPK_DIR) libpopt.control $(PKG_VERSION)-$(PKG_RELEASE) $(ARCH)
- mkdir -p $(PKG_IPK_DIR)/usr/lib
- cp -fp $(STAGING_DIR)/usr/lib/libpopt.so.* $(PKG_IPK_DIR)/usr/lib/
- $(STRIP) $(PKG_IPK_DIR)/usr/lib/*.so*
- mkdir -p $(PACKAGE_DIR)
- $(IPKG_BUILD) $(PKG_IPK_DIR) $(PACKAGE_DIR)
-
-$(IPKG_STATE_DIR)/info/libpopt.list: $(PKG_IPK)
- $(IPKG) install $(PKG_IPK)
+$(IPKG_LIBPOPT):
+ mkdir -p $(IDIR_LIBPOPT)/usr/lib
+ cp -fpR $(PKG_BUILD_DIR)/.libs/libpopt.so.* $(IDIR_LIBPOPT)/usr/lib/
+ $(RSTRIP) $(IDIR_LIBPOPT)
+ $(IPKG_BUILD) $(IDIR_LIBPOPT) $(PACKAGE_DIR)