summaryrefslogtreecommitdiff
path: root/obsolete-buildroot/make/socat.mk
diff options
context:
space:
mode:
authormbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73>2004-05-25 04:32:27 +0000
committermbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73>2004-05-25 04:32:27 +0000
commit3ac1acb9ea70080aaaf49ae211835f057e60eefa (patch)
treea2e08d2be3224409a033d25af8861d9853e72de7 /obsolete-buildroot/make/socat.mk
parent1eb1b593980fdc06ab92f8e354129b0aadc4f1b0 (diff)
Initial revision
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'obsolete-buildroot/make/socat.mk')
-rw-r--r--obsolete-buildroot/make/socat.mk67
1 files changed, 67 insertions, 0 deletions
diff --git a/obsolete-buildroot/make/socat.mk b/obsolete-buildroot/make/socat.mk
new file mode 100644
index 0000000000..010326d640
--- /dev/null
+++ b/obsolete-buildroot/make/socat.mk
@@ -0,0 +1,67 @@
+#############################################################
+#
+# socat
+#
+#############################################################
+
+SOCAT_VERSION=1.3.0.1
+
+# Don't alter below this line unless you (think) you know
+# what you are doing! Danger, Danger!
+
+SOCAT_SOURCE=socat-$(SOCAT_VERSION).tar.bz2
+SOCAT_SITE=http://www.dest-unreach.org/socat/download/
+#SOCAT_DIR=$(BUILD_DIR)/${shell basename $(SOCAT_SOURCE) .tar.bz2}
+SOCAT_DIR=$(BUILD_DIR)/socat-1.3
+#SOCAT_WORKDIR=$(BUILD_DIR)/socat_workdir
+SOCAT_WORKDIR=$(SOCAT_DIR)
+
+$(DL_DIR)/$(SOCAT_SOURCE):
+ $(WGET) -P $(DL_DIR) $(SOCAT_SITE)/$(SOCAT_SOURCE)
+
+$(SOCAT_DIR)/.unpacked: $(DL_DIR)/$(SOCAT_SOURCE)
+ bzip2 -d -c $(DL_DIR)/$(SOCAT_SOURCE) | tar -C $(BUILD_DIR) -xvf -
+ touch $(SOCAT_DIR)/.unpacked
+
+$(SOCAT_WORKDIR)/Makefile: $(SOCAT_DIR)/.unpacked
+ rm -f $(SOCAT_WORKDIR)/Makefile
+ mkdir -p $(SOCAT_WORKDIR)
+ (cd $(SOCAT_WORKDIR); rm -rf config.cache; \
+ $(TARGET_CONFIGURE_OPTS) \
+ $(SOCAT_DIR)/configure \
+ --target=$(GNU_TARGET_NAME) \
+ --host=$(GNU_TARGET_NAME) \
+ --build=$(GNU_HOST_NAME) \
+ --prefix=/usr \
+ --exec-prefix=/usr \
+ --bindir=/usr/bin \
+ --sbindir=/usr/sbin \
+ --libexecdir=/usr/lib \
+ --sysconfdir=/etc \
+ --datadir=/usr/share \
+ --localstatedir=/var \
+ --mandir=/usr/man \
+ --infodir=/usr/info \
+ $(DISABLE_NLS) \
+ );
+
+$(SOCAT_WORKDIR)/socat: $(SOCAT_WORKDIR)/Makefile
+ rm -f $@
+ $(MAKE) -C $(SOCAT_WORKDIR)
+
+$(SOCAT_WORKDIR)/.installed: $(SOCAT_WORKDIR)/socat
+ mkdir -p $(TARGET_DIR)/usr/man/man1
+ $(MAKE) -C $(SOCAT_WORKDIR) install prefix=$(TARGET_DIR)/usr
+
+socat: uclibc $(SOCAT_WORKDIR)/.installed
+
+socat-source: $(DL_DIR)/$(SOCAT_SOURCE)
+
+socat-clean:
+ @if [ -d $(SOCAT_WORKDIR)/Makefile ] ; then \
+ $(MAKE) -C $(SOCAT_WORKDIR) clean ; \
+ fi;
+
+socat-dirclean:
+ rm -rf $(SOCAT_DIR) $(SOCAT_WORKDIR)
+