$(call PKG_INIT_BIN, 1.7.1.3) $(PKG)_SOURCE:=$(pkg)-$($(PKG)_VERSION).tar.bz2 $(PKG)_SITE:=http://www.dest-unreach.org/socat/download $(PKG)_BINARY:=$($(PKG)_DIR)/socat $(PKG)_TARGET_BINARY:=$($(PKG)_DEST_DIR)/usr/bin/socat $(PKG)_SOURCE_MD5:=2081987fb0cb0290b8105574058cb329 $(PKG)_DEPENDS_ON := openssl $(PKG)_CONFIGURE_OPTIONS += $(if $(FREETZ_PACKAGE_SOCAT_WITHTERMIOS),--enable-termios,--disable-termios) $(PKG)_CONFIGURE_OPTIONS += --with-ssl="$(TARGET_TOOLCHAIN_STAGING_DIR)/usr" $(PKG)_CONFIGURE_OPTIONS += --enable-ssl $(PKG)_CONFIGURE_OPTIONS += sc_cv_sys_crdly_shift=9 $(PKG)_CONFIGURE_OPTIONS += sc_cv_sys_tabdly_shift=11 $(PKG)_CONFIGURE_OPTIONS += sc_cv_sys_csize_shift=4 $(PKG)_REBUILD_SUBOPTS += FREETZ_PACKAGE_SOCAT_WITHTERMIOS $(PKG_SOURCE_DOWNLOAD) $(PKG_UNPACKED) $(PKG_CONFIGURED_CONFIGURE) $($(PKG)_BINARY): $($(PKG)_DIR)/.configured $(SUBMAKE) -C $(SOCAT_DIR) \ LDFLAGS="$(TARGET_LDFLAGS) -lssl" $($(PKG)_TARGET_BINARY): $($(PKG)_BINARY) $(INSTALL_BINARY_STRIP) $(pkg): $(pkg)-precompiled: $($(PKG)_TARGET_BINARY) $(pkg)-clean: -$(SUBMAKE) -C $(SOCAT_DIR) clean $(pkg)-uninstall: $(RM) $(SOCAT_TARGET_BINARY) $(PKG_FINISH)