aboutsummaryrefslogtreecommitdiff
path: root/package/udpcast
diff options
context:
space:
mode:
authorGravatar Jason Spence <jspence@uclibc.org>2008-03-28 02:54:42 +0000
committerGravatar Jason Spence <jspence@uclibc.org>2008-03-28 02:54:42 +0000
commit53a740fcd6051e59e778a8e2e195d62128edb45d (patch)
treee5fef51873e1d53ca4930b7f50381141fbcc599e /package/udpcast
parent0d17acf4cffd53e9eb21096e037b1f96d190780a (diff)
downloadbuildroot-53a740fcd6051e59e778a8e2e195d62128edb45d.tar.gz
buildroot-53a740fcd6051e59e778a8e2e195d62128edb45d.tar.bz2
Added udpcast package.
Diffstat (limited to 'package/udpcast')
-rw-r--r--package/udpcast/Config.in27
-rw-r--r--package/udpcast/udpcast.mk99
2 files changed, 126 insertions, 0 deletions
diff --git a/package/udpcast/Config.in b/package/udpcast/Config.in
new file mode 100644
index 0000000000..3e73f4badf
--- /dev/null
+++ b/package/udpcast/Config.in
@@ -0,0 +1,27 @@
+config BR2_PACKAGE_UDPCAST
+ bool "udpcast"
+ default n
+ help
+ A multicast protocol implementation which happens to
+ be very handy for imaging drives over the network.
+
+ http://www.udpcast.linux.lu/
+
+menu "udpcast tools selection"
+ depends on BR2_PACKAGE_UDPCAST
+
+config BR2_PACKAGE_UDPCAST_SENDER
+ bool "sender"
+ default n
+ depends on BR2_PACKAGE_UDPCAST
+ help
+ The udpcast transmitter.
+
+config BR2_PACKAGE_UDPCAST_RECEIVER
+ bool "receiver"
+ default n
+ depends on BR2_PACKAGE_UDPCAST
+ help
+ The udpcast receiver.
+
+endmenu
diff --git a/package/udpcast/udpcast.mk b/package/udpcast/udpcast.mk
new file mode 100644
index 0000000000..3ac7e7faca
--- /dev/null
+++ b/package/udpcast/udpcast.mk
@@ -0,0 +1,99 @@
+#############################################################
+#
+# udpcast
+#
+#############################################################
+UDPCAST_VERSION:=20071228
+UDPCAST_SOURCE:=udpcast-$(UDPCAST_VERSION).tar.gz
+UDPCAST_SITE:=http://www.udpcast.linux.lu/download
+UDPCAST_CAT:=$(ZCAT)
+UDPCAST_DIR:=$(BUILD_DIR)/udpcast-$(UDPCAST_VERSION)
+
+BR2_UDPCAST_CFLAGS:=
+
+$(DL_DIR)/$(UDPCAST_SOURCE):
+ $(WGET) -P $(DL_DIR) $(UDPCAST_SITE)/$(UDPCAST_SOURCE)
+
+udpcast-source: $(DL_DIR)/$(UDPCAST_SOURCE)
+
+$(UDPCAST_DIR)/.unpacked: $(DL_DIR)/$(UDPCAST_SOURCE)
+ $(UDPCAST_CAT) $(DL_DIR)/$(UDPCAST_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
+ toolchain/patch-kernel.sh $(UDPCAST_DIR) package/udpcast udpcast\*.patch
+ $(CONFIG_UPDATE) $(UDPCAST_DIR)
+ touch $(UDPCAST_DIR)/.unpacked
+
+$(UDPCAST_DIR)/.configured: $(UDPCAST_DIR)/.unpacked
+ (cd $(UDPCAST_DIR); rm -rf config.cache; \
+ $(if $(BR_LARGEFILE),ac_cv_type_stat64=yes,ac_cv_type_stat64=no) \
+ $(TARGET_CONFIGURE_OPTS) \
+ $(TARGET_CONFIGURE_ARGS) \
+ CFLAGS="$(TARGET_CFLAGS) $(BR2_UDPCAST_CFLAGS)" \
+ ./configure \
+ --target=$(REAL_GNU_TARGET_NAME) \
+ --host=$(REAL_GNU_TARGET_NAME) \
+ --build=$(GNU_HOST_NAME) \
+ --prefix=/usr \
+ --exec-prefix=/usr \
+ --bindir=/usr/bin \
+ --sbindir=/usr/sbin \
+ --libdir=/lib \
+ --libexecdir=/usr/lib \
+ --sysconfdir=/etc \
+ --datadir=/usr/share \
+ --localstatedir=/var \
+ --mandir=/usr/man \
+ --infodir=/usr/info \
+ $(DISABLE_NLS) \
+ )
+ touch $(UDPCAST_DIR)/.configured
+
+UDPCAST_BINARIES:=udp-sender udp-receiver
+
+UDPCAST_BUILD_TARGETS:=$(addprefix $(UDPCAST_DIR)/,$(UDPCAST_BINARIES))
+
+$(UDPCAST_BUILD_TARGETS): $(UDPCAST_DIR)/.configured
+ $(MAKE) CC=$(TARGET_CC) -C $(UDPCAST_DIR)
+
+UDPCAST_PROGS:=$(addprefix $(TARGET_DIR)/usr/sbin/,$(UDPCAST_BINARIES))
+
+UDPCAST_INSTALL_MANPAGES=$(addprefix $(TARGET_DIR)/usr/man/, $(addsuffix .1,$(UDPCAST_BINARIES)))
+
+UDPCAST_INSTALL_FILES:=$(UDPCAST_PROGS) $(UDPCAST_INSTALL_MANPAGES)
+
+$(UDPCAST_PROGS): $(UDPCAST_BUILD_TARGETS)
+ $(MAKE) -C $(UDPCAST_DIR) DESTDIR=$(TARGET_DIR) install
+ $(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(REMOVE_SECTION_COMMENT) \
+ $(REMOVE_SECTION_NOTE) \
+ $(UDPCAST_PROGS)
+ifneq ($(BR2_PACKAGE_UDPCAST_SENDER),y)
+ rm -f $(TARGET_DIR)/usr/sbin/udp-sender
+ rm -f $(TARGET_DIR)/usr/sbin/udp-sender.1
+endif
+ifneq ($(BR2_PACKAGE_UDPCAST_RECEIVER),y)
+ rm -f $(TARGET_DIR)/usr/sbin/udp-receiver
+ rm -f $(TARGET_DIR)/usr/sbin/udp-receiver.1
+endif
+ifneq ($(BR2_HAVE_MANPAGES),y)
+ rm -f $(addprefix $(TARGET_DIR)/usr/man/, \
+ $(addsuffix .1,$(UDPCAST_BINARIES)))
+endif
+
+udpcast: uclibc $(UDPCAST_PROGS)
+
+udpcast-clean:
+ rm -f $(UDPCAST_INSTALL_FILES)
+ $(MAKE) -C $(UDPCAST_DIR) clean
+ rm -f $(UDPCAST_DIR)/.configured
+
+udpcast-dirclean:
+ rm -rf $(UDPCAST_DIR)
+
+
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_UDPCAST)),y)
+TARGETS+=udpcast
+endif