aboutsummaryrefslogtreecommitdiff
path: root/multimedia/gst1-plugins-base
diff options
context:
space:
mode:
authorLuiz Angelo Daros de Luca <luizluca@gmail.com>2020-11-25 15:19:58 -0300
committerHannu Nyman <hannu.nyman@iki.fi>2020-11-28 09:08:30 +0200
commit56eb4078e5895f5ebf2f852dc605eed74f0956a5 (patch)
tree95a0a153483eeddaab8f05e0616fe84c4c7063e0 /multimedia/gst1-plugins-base
parent2fa91f4c9fc3401219b05ebd49a1d991cfe97b8c (diff)
gst1-plugins-base: fix build with no module
gst1-plugins-base might be required only for its libraries, not modules. However, InstallDev tries to copy them unconditionally, failing when no modules are selected/compiled. Fixes #13973 Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
Diffstat (limited to 'multimedia/gst1-plugins-base')
-rw-r--r--multimedia/gst1-plugins-base/Makefile13
1 files changed, 8 insertions, 5 deletions
diff --git a/multimedia/gst1-plugins-base/Makefile b/multimedia/gst1-plugins-base/Makefile
index 227cc4d0b..acdcdb575 100644
--- a/multimedia/gst1-plugins-base/Makefile
+++ b/multimedia/gst1-plugins-base/Makefile
@@ -182,11 +182,14 @@ define Build/InstallDev
./usr/lib/libgst*-$(GST_VERSION).so* \
$(1)/usr/lib/ \
)
- $(INSTALL_DIR) $(1)/usr/lib/gstreamer-$(GST_VERSION)
- ( cd $(PKG_INSTALL_DIR); $(CP) \
- ./usr/lib/gstreamer-$(GST_VERSION)/libgst*.so \
- $(1)/usr/lib/gstreamer-$(GST_VERSION)/ \
- )
+ if [ -d $(PKG_INSTALL_DIR)/usr/lib/gstreamer-$(GST_VERSION)/ ]; then \
+ $(INSTALL_DIR) $(1)/usr/lib/gstreamer-$(GST_VERSION); \
+ ( cd $(PKG_INSTALL_DIR); $(FIND) \
+ ./usr/lib/gstreamer-$(GST_VERSION)/ -name libgst*.so -print0 | \
+ xargs --null --no-run-if-empty $(CP) \
+ --target-directory=$(1)/usr/lib/gstreamer-$(GST_VERSION)/ \
+ ) \
+ fi
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
( cd $(PKG_INSTALL_DIR); $(CP) \
./usr/lib/pkgconfig/gstreamer*-$(GST_VERSION).pc \