apr-util: clean up InstallDev
authorSebastian Kemper <sebastian_ml@gmx.net>
Thu, 30 Jan 2020 20:53:07 +0000 (21:53 +0100)
committerSebastian Kemper <sebastian_ml@gmx.net>
Thu, 30 Jan 2020 20:53:09 +0000 (21:53 +0100)
This removes the ifneq in InstallDev, because the maintainers are likely
to forget to extend it when new plugins are added (this has already
occurred).

Also, this removes the la files, because OpenWrt won't allow them into
staging anyway.

No rev bump because meaningless for the apr-util packages.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
libs/apr-util/Makefile

index 2b4f25b5552c23f9243e56ef551962897c6d043d..bd9ba1c989e954fc1bf47313726ff0787d527000 100644 (file)
@@ -131,12 +131,10 @@ define Build/InstallDev
                                $(1)/usr/lib/pkgconfig
        $(CP) $(PKG_INSTALL_DIR)/usr/bin/apu-1-config $(1)/usr/bin
        $(CP) $(PKG_INSTALL_DIR)/usr/include/apr-1/* $(1)/usr/include/apr-1
-ifneq ($(CONFIG_PACKAGE_libaprutil-crypto-openssl)$(CONFIG_PACKAGE_libaprutil-dbd-pgsql)$(CONFIG_PACKAGE_libaprutil-dbd-sqlite3)$(CONFIG_PACKAGE_libaprutil-ldap),)
        $(INSTALL_DIR) $(1)/usr/lib/apr-util-1
-       $(CP) $(PKG_INSTALL_DIR)/usr/lib/apr-util-1/apr_*{la,a,so*} \
-                                       $(1)/usr/lib/apr-util-1
-endif
-       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libaprutil-1.{la,a,so*} \
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/apr-util-1/apr_*.{a,so} \
+                       $(1)/usr/lib/apr-util-1 2>/dev/null || :
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libaprutil-1.{a,so*} \
                                                $(1)/usr/lib
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/apr-util-1.pc \
                                        $(1)/usr/lib/pkgconfig