| 1 |
# $FreeWRT$ |
| 2 |
#- |
| 3 |
# This file is part of the FreeWRT project. FreeWRT is copyrighted |
| 4 |
# material, please see the LICENCE file in the top-level directory |
| 5 |
# or at http://www.freewrt.org/licence for details. |
| 6 |
|
| 7 |
include $(TOPDIR)/rules.mk |
| 8 |
|
| 9 |
PKG_NAME:= socat |
| 10 |
PKG_VERSION:= 1.6.0.0 |
| 11 |
PKG_RELEASE:= 2 |
| 12 |
PKG_MD5SUM:= 1c223880febe6d55703739a1c0fea27d |
| 13 |
PKG_SOURCE_URL:= http://www.dest-unreach.org/socat/download |
| 14 |
|
| 15 |
include $(TOPDIR)/mk/package.mk |
| 16 |
|
| 17 |
$(eval $(call PKG_template,SOCAT,socat,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) |
| 18 |
|
| 19 |
$(WRKBUILD)/.configured: |
| 20 |
(cd $(WRKBUILD); rm -rf config.{cache,status}; \ |
| 21 |
$(TARGET_CONFIGURE_OPTS) \ |
| 22 |
CFLAGS="$(TARGET_CFLAGS)" \ |
| 23 |
CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \ |
| 24 |
LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \ |
| 25 |
sc_cv_termios_ispeed="no" \ |
| 26 |
./configure \ |
| 27 |
--target=$(GNU_TARGET_NAME) \ |
| 28 |
--host=$(GNU_TARGET_NAME) \ |
| 29 |
--build=$(GNU_HOST_NAME) \ |
| 30 |
--program-prefix="" \ |
| 31 |
--program-suffix="" \ |
| 32 |
--prefix=/usr \ |
| 33 |
--exec-prefix=/usr \ |
| 34 |
--bindir=/usr/bin \ |
| 35 |
--datadir=/usr/share \ |
| 36 |
--includedir=/usr/include \ |
| 37 |
--infodir=/usr/share/info \ |
| 38 |
--libdir=/usr/lib \ |
| 39 |
--libexecdir=/usr/lib \ |
| 40 |
--localstatedir=/var \ |
| 41 |
--mandir=/usr/share/man \ |
| 42 |
--sbindir=/usr/sbin \ |
| 43 |
--sysconfdir=/etc \ |
| 44 |
--disable-nls \ |
| 45 |
--disable-libwrap \ |
| 46 |
--disable-readline \ |
| 47 |
--disable-termios \ |
| 48 |
) |
| 49 |
touch $@ |
| 50 |
|
| 51 |
$(WRKBUILD)/.built: |
| 52 |
rm -rf $(WRKINST) |
| 53 |
mkdir -p $(WRKINST) |
| 54 |
$(MAKE) -C $(WRKBUILD) \ |
| 55 |
DESTDIR="$(WRKINST)" \ |
| 56 |
all install |
| 57 |
touch $@ |
| 58 |
|
| 59 |
$(IPKG_SOCAT): |
| 60 |
install -d -m0755 $(IDIR_SOCAT)/usr/bin |
| 61 |
$(CP) $(WRKINST)/usr/bin/socat $(IDIR_SOCAT)/usr/bin/ |
| 62 |
$(RSTRIP) $(IDIR_SOCAT) |
| 63 |
$(IPKG_BUILD) $(IDIR_SOCAT) $(PACKAGE_DIR) |