update to 2.2.3
[openwrt.git] / obsolete-buildroot / make / socat.mk
1 #############################################################
2 #
3 # socat
4 #
5 #############################################################
6
7 SOCAT_VERSION=1.3.0.1
8
9 # Don't alter below this line unless you (think) you know
10 # what you are doing! Danger, Danger!
11
12 SOCAT_SOURCE=socat-$(SOCAT_VERSION).tar.bz2
13 SOCAT_SITE=http://www.dest-unreach.org/socat/download/
14 #SOCAT_DIR=$(BUILD_DIR)/${shell basename $(SOCAT_SOURCE) .tar.bz2}
15 SOCAT_DIR=$(BUILD_DIR)/socat-1.3
16 #SOCAT_WORKDIR=$(BUILD_DIR)/socat_workdir
17 SOCAT_WORKDIR=$(SOCAT_DIR)
18
19 $(DL_DIR)/$(SOCAT_SOURCE):
20 $(WGET) -P $(DL_DIR) $(SOCAT_SITE)/$(SOCAT_SOURCE)
21
22 $(SOCAT_DIR)/.unpacked: $(DL_DIR)/$(SOCAT_SOURCE)
23 bzip2 -d -c $(DL_DIR)/$(SOCAT_SOURCE) | tar -C $(BUILD_DIR) -xvf -
24 touch $(SOCAT_DIR)/.unpacked
25
26 $(SOCAT_WORKDIR)/Makefile: $(SOCAT_DIR)/.unpacked
27 rm -f $(SOCAT_WORKDIR)/Makefile
28 mkdir -p $(SOCAT_WORKDIR)
29 (cd $(SOCAT_WORKDIR); rm -rf config.cache; \
30 $(TARGET_CONFIGURE_OPTS) \
31 $(SOCAT_DIR)/configure \
32 --target=$(GNU_TARGET_NAME) \
33 --host=$(GNU_TARGET_NAME) \
34 --build=$(GNU_HOST_NAME) \
35 --prefix=/usr \
36 --exec-prefix=/usr \
37 --bindir=/usr/bin \
38 --sbindir=/usr/sbin \
39 --libexecdir=/usr/lib \
40 --sysconfdir=/etc \
41 --datadir=/usr/share \
42 --localstatedir=/var \
43 --mandir=/usr/man \
44 --infodir=/usr/info \
45 $(DISABLE_NLS) \
46 );
47
48 $(SOCAT_WORKDIR)/socat: $(SOCAT_WORKDIR)/Makefile
49 rm -f $@
50 $(MAKE) -C $(SOCAT_WORKDIR)
51
52 $(SOCAT_WORKDIR)/.installed: $(SOCAT_WORKDIR)/socat
53 mkdir -p $(TARGET_DIR)/usr/man/man1
54 $(MAKE) -C $(SOCAT_WORKDIR) install prefix=$(TARGET_DIR)/usr
55
56 socat: uclibc $(SOCAT_WORKDIR)/.installed
57
58 socat-source: $(DL_DIR)/$(SOCAT_SOURCE)
59
60 socat-clean:
61 @if [ -d $(SOCAT_WORKDIR)/Makefile ] ; then \
62 $(MAKE) -C $(SOCAT_WORKDIR) clean ; \
63 fi;
64
65 socat-dirclean:
66 rm -rf $(SOCAT_DIR) $(SOCAT_WORKDIR)
67
This page took 0.050462 seconds and 5 git commands to generate.