2015-02-20 21:04:22 +00:00
|
|
|
if ENABLE_BASH_COMPLETION
|
|
|
|
bin_PROGRAMS = gst-completion-helper-@GST_API_VERSION@
|
|
|
|
|
|
|
|
gst_completion_helper_@GST_API_VERSION@_SOURCES = gst-completion-helper.c
|
|
|
|
gst_completion_helper_@GST_API_VERSION@_CFLAGS = $(GST_OBJ_CFLAGS)
|
|
|
|
gst_completion_helper_@GST_API_VERSION@_LDADD = $(GST_OBJ_LIBS)
|
|
|
|
|
|
|
|
bashhelpersdir = $(BASH_HELPERS_DIR)
|
|
|
|
dist_bashhelpers_DATA = gst
|
2015-05-14 10:18:25 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
helpers_PROGRAMS = gst-plugin-scanner
|
|
|
|
helpersdir=$(libexecdir)/gstreamer-$(GST_API_VERSION)
|
|
|
|
|
|
|
|
gst_plugin_scanner_SOURCES = gst-plugin-scanner.c
|
|
|
|
gst_plugin_scanner_CFLAGS = $(GST_OBJ_CFLAGS)
|
|
|
|
gst_plugin_scanner_LDADD = $(GST_OBJ_LIBS)
|
|
|
|
|
|
|
|
if HAVE_PTP
|
|
|
|
helpers_PROGRAMS += gst-ptp-helper
|
|
|
|
gst_ptp_helper_SOURCES = gst-ptp-helper.c
|
|
|
|
gst_ptp_helper_CFLAGS = $(GST_OBJ_CFLAGS) $(GIO_CFLAGS)
|
|
|
|
gst_ptp_helper_LDADD = $(GST_OBJ_LIBS) $(GIO_LIBS) $(CAP_LIBS)
|
|
|
|
endif
|
2015-02-20 21:04:22 +00:00
|
|
|
|
2015-05-14 10:18:25 +00:00
|
|
|
if ENABLE_BASH_COMPLETION
|
2015-12-04 14:39:29 +00:00
|
|
|
install-exec-hook:
|
2015-04-17 11:02:12 +00:00
|
|
|
$(MKDIR_P) $(DESTDIR)$(BASH_HELPERS_DIR) && \
|
2015-04-17 13:19:07 +00:00
|
|
|
cd $(DESTDIR)$(bindir) && \
|
2015-04-15 12:45:21 +00:00
|
|
|
$(INSTALL) `echo "gst-completion-helper-" | sed '$(transform)'`@GST_API_VERSION@$(EXEEXT) \
|
2015-04-17 11:02:12 +00:00
|
|
|
$(DESTDIR)$(BASH_HELPERS_DIR)/gst-completion-helper-@GST_API_VERSION@$(EXEEXT) && \
|
2015-04-15 12:45:21 +00:00
|
|
|
rm `echo "gst-completion-helper-" | sed '$(transform)'`@GST_API_VERSION@$(EXEEXT)
|
2015-03-24 18:30:52 +00:00
|
|
|
|
|
|
|
uninstall-hook:
|
|
|
|
rm -f $(DESTDIR)$(BASH_HELPERS_DIR)/gst-completion-helper-@GST_API_VERSION@$(EXEEXT)
|
2015-02-20 21:04:22 +00:00
|
|
|
endif
|
|
|
|
|
2015-12-04 14:39:29 +00:00
|
|
|
install-data-hook:
|
|
|
|
if HAVE_PTP
|
|
|
|
if HAVE_PTP_HELPER_SETUID
|
|
|
|
- chown root $(DESTDIR)$(helpersdir)/gst-ptp-helper
|
|
|
|
- chmod u+s $(DESTDIR)$(helpersdir)/gst-ptp-helper
|
|
|
|
endif
|
|
|
|
if HAVE_PTP_HELPER_CAPABILITIES
|
|
|
|
- $(SETCAP) cap_net_bind_service,cap_net_admin+ep $(DESTDIR)$(helpersdir)/gst-ptp-helper
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2009-11-16 00:12:22 +00:00
|
|
|
# clean out the old one to make sure everything is udpated correctly
|
|
|
|
# remove again after release
|
|
|
|
CLEANFILES = plugin-scanner
|
2015-03-24 18:30:52 +00:00
|
|
|
|
|
|
|
if ENABLE_BASH_COMPLETION
|
|
|
|
CLEANFILES += gst-completion-helper-@GST_API_VERSION@
|
|
|
|
endif
|