|
|
@ -4,6 +4,11 @@ |
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
RTMPDUMP_VERSION = ni-git |
|
|
|
RTMPDUMP_DIR = $(NI_RTMPDUMP) |
|
|
|
RTMPDUMP_SOURCE = $(NI_RTMPDUMP) |
|
|
|
RTMPDUMP_SITE = https://github.com/neutrino-images |
|
|
|
|
|
|
|
RTMPDUMP_DEPENDENCIES = zlib openssl |
|
|
|
|
|
|
|
RTMPDUMP_MAKE_ENV = \
|
|
|
@ -15,12 +20,14 @@ RTMPDUMP_MAKE_OPTS = \ |
|
|
|
prefix=$(prefix) \
|
|
|
|
mandir=$(REMOVE_mandir) |
|
|
|
|
|
|
|
rtmpdump: $(RTMPDUMP_DEPENDENCIES) $(SOURCE_DIR)/$(NI_RTMPDUMP) | $(TARGET_DIR) |
|
|
|
$(REMOVE)/$(NI_RTMPDUMP) |
|
|
|
tar -C $(SOURCE_DIR) --exclude-vcs -cp $(NI_RTMPDUMP) | tar -C $(BUILD_DIR) -x |
|
|
|
$(CHDIR)/$(NI_RTMPDUMP); \
|
|
|
|
define RTMPDUMP_TARGET_CLEANUP |
|
|
|
$(TARGET_RM) $(addprefix $(TARGET_sbindir)/,rtmpgw rtmpsrv rtmpsuck) |
|
|
|
endef |
|
|
|
RTMPDUMP_TARGET_FINALIZE_HOOKS += RTMPDUMP_TARGET_CLEANUP |
|
|
|
|
|
|
|
rtmpdump: | $(TARGET_DIR) |
|
|
|
$(call PREPARE) |
|
|
|
$(CHDIR)/$($(PKG)_DIR); \
|
|
|
|
$($(PKG)_MAKE_ENV) $(MAKE) $($(PKG)_MAKE_OPTS); \
|
|
|
|
$($(PKG)_MAKE_ENV) $(MAKE) $($(PKG)_MAKE_OPTS) install DESTDIR=$(TARGET_DIR) |
|
|
|
$(TARGET_RM) $(addprefix $(TARGET_sbindir)/,rtmpgw rtmpsrv rtmpsuck) |
|
|
|
$(REMOVE)/$(NI_RTMPDUMP) |
|
|
|
$(TOUCH) |
|
|
|
$(call TARGET_FOLLOWUP) |
|
|
|