|
@@ -9,23 +9,15 @@ UDPCAST_SITE = http://www.udpcast.linux.lu/download
|
|
|
UDPCAST_DEPENDENCIES = host-m4
|
|
|
UDPCAST_LICENSE = BSD-2-Clause, GPL-2.0+
|
|
|
UDPCAST_LICENSE_FILES = COPYING
|
|
|
+UDPCAST_TARGETS = \
|
|
|
+ $(if $(BR2_PACKAGE_UDPCAST_RECEIVER),udp-receiver) \
|
|
|
+ $(if $(BR2_PACKAGE_UDPCAST_SENDER),udp-sender)
|
|
|
+UDPCAST_MAKE_OPTS = $(UDPCAST_TARGETS)
|
|
|
|
|
|
-define UDPCAST_REMOVE_UDP_SENDER
|
|
|
- rm -f $(TARGET_DIR)/usr/sbin/udp-sender
|
|
|
- rm -f $(TARGET_DIR)/usr/sbin/udp-sender.1
|
|
|
+define UDPCAST_INSTALL_TARGET_CMDS
|
|
|
+ $(foreach f,$(UDPCAST_TARGETS),\
|
|
|
+ $(INSTALL) -D -m 755 $(@D)/$(f) $(TARGET_DIR)/usr/sbin/$(f)
|
|
|
+ )
|
|
|
endef
|
|
|
|
|
|
-ifneq ($(BR2_PACKAGE_UDPCAST_SENDER),y)
|
|
|
-UDPCAST_POST_INSTALL_TARGET_HOOKS += UDPCAST_REMOVE_UDP_SENDER
|
|
|
-endif
|
|
|
-
|
|
|
-define UDPCAST_REMOVE_UDP_RECEIVER
|
|
|
- rm -f $(TARGET_DIR)/usr/sbin/udp-receiver
|
|
|
- rm -f $(TARGET_DIR)/usr/sbin/udp-receiver.1
|
|
|
-endef
|
|
|
-
|
|
|
-ifneq ($(BR2_PACKAGE_UDPCAST_RECEIVER),y)
|
|
|
-UDPCAST_POST_INSTALL_TARGET_HOOKS += UDPCAST_REMOVE_UDP_RECEIVER
|
|
|
-endif
|
|
|
-
|
|
|
$(eval $(autotools-package))
|