2002-11-19 00:20:10 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# socat
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
|
2004-10-26 17:04:15 +02:00
|
|
|
SOCAT_VERSION=1.4.0.3
|
2002-11-19 00:20:10 +01:00
|
|
|
|
|
|
|
# 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}
|
2004-10-14 21:24:37 +02:00
|
|
|
SOCAT_DIR=$(BUILD_DIR)/socat-1.4
|
2002-11-19 00:20:10 +01:00
|
|
|
#SOCAT_WORKDIR=$(BUILD_DIR)/socat_workdir
|
|
|
|
SOCAT_WORKDIR=$(SOCAT_DIR)
|
|
|
|
|
|
|
|
$(DL_DIR)/$(SOCAT_SOURCE):
|
2002-11-21 00:16:10 +01:00
|
|
|
$(WGET) -P $(DL_DIR) $(SOCAT_SITE)/$(SOCAT_SOURCE)
|
2002-11-19 00:20:10 +01:00
|
|
|
|
|
|
|
$(SOCAT_DIR)/.unpacked: $(DL_DIR)/$(SOCAT_SOURCE)
|
2004-10-09 23:19:47 +02:00
|
|
|
bzip2 -d -c $(DL_DIR)/$(SOCAT_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
2002-11-19 00:20:10 +01:00
|
|
|
touch $(SOCAT_DIR)/.unpacked
|
|
|
|
|
2003-01-19 07:07:22 +01:00
|
|
|
$(SOCAT_WORKDIR)/Makefile: $(SOCAT_DIR)/.unpacked
|
2002-11-19 00:20:10 +01:00
|
|
|
rm -f $(SOCAT_WORKDIR)/Makefile
|
|
|
|
mkdir -p $(SOCAT_WORKDIR)
|
2003-01-17 09:03:59 +01:00
|
|
|
(cd $(SOCAT_WORKDIR); rm -rf config.cache; \
|
2003-03-04 20:16:19 +01:00
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2003-01-17 09:03:59 +01:00
|
|
|
$(SOCAT_DIR)/configure \
|
|
|
|
--target=$(GNU_TARGET_NAME) \
|
2003-03-04 20:16:19 +01:00
|
|
|
--host=$(GNU_TARGET_NAME) \
|
|
|
|
--build=$(GNU_HOST_NAME) \
|
2003-01-17 09:03:59 +01:00
|
|
|
--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 \
|
2004-10-26 17:04:15 +02:00
|
|
|
--disable-termios \
|
|
|
|
$(DISABLE_NLS); \
|
|
|
|
$(SED) 's/#define HAVE_TERMIOS_ISPEED 1/#undef HAVE_TERMIOS_ISPEED/g' config.h; \
|
2003-01-17 09:03:59 +01:00
|
|
|
);
|
2002-11-19 00:20:10 +01:00
|
|
|
|
|
|
|
$(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
|
2006-01-24 16:15:16 +01:00
|
|
|
$(MAKE) -C $(SOCAT_WORKDIR) install prefix=$(TARGET_DIR)/usr DESTDIR=$(TARGET_DIR)
|
2002-11-19 00:20:10 +01:00
|
|
|
|
|
|
|
socat: uclibc $(SOCAT_WORKDIR)/.installed
|
|
|
|
|
2003-11-12 10:31:12 +01:00
|
|
|
socat-source: $(DL_DIR)/$(SOCAT_SOURCE)
|
|
|
|
|
2002-11-19 00:20:10 +01:00
|
|
|
socat-clean:
|
|
|
|
@if [ -d $(SOCAT_WORKDIR)/Makefile ] ; then \
|
|
|
|
$(MAKE) -C $(SOCAT_WORKDIR) clean ; \
|
|
|
|
fi;
|
|
|
|
|
|
|
|
socat-dirclean:
|
|
|
|
rm -rf $(SOCAT_DIR) $(SOCAT_WORKDIR)
|
|
|
|
|
2005-02-10 04:06:39 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
ifeq ($(strip $(BR2_PACKAGE_SOCAT)),y)
|
|
|
|
TARGETS+=socat
|
|
|
|
endif
|