# This file is part of the OpenADK project. OpenADK is copyrighted # material, please see the LICENCE file in the top-level directory. include ${ADK_TOPDIR}/rules.mk PKG_NAME:= socat PKG_VERSION:= 1.7.3.0 PKG_RELEASE:= 1 PKG_HASH:= f8de4a2aaadb406a2e475d18cf3b9f29e322d4e5803d8106716a01fd4e64b186 PKG_DESCR:= multipurpose relay PKG_SECTION:= net/misc PKG_DEPENDS:= libpthread PKG_URL:= http://www.dest-unreach.org/socat/ PKG_SITES:= http://www.dest-unreach.org/socat/download/ DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz PKG_CHOICES_SOCAT:= WITHOUT_SSL WITH_LIBRESSL WITH_OPENSSL PKGCD_WITHOUT_SSL:= use no ssl PKGCD_WITH_LIBRESSL:= use libressl for crypto PKGCB_WITH_LIBRESSL:= libressl PKGCS_WITH_LIBRESSL:= libressl PKGCD_WITH_OPENSSL:= use openssl for crypto PKGCB_WITH_OPENSSL:= openssl PKGCS_WITH_OPENSSL:= libopenssl include ${ADK_TOPDIR}/mk/package.mk $(eval $(call PKG_template,SOCAT,socat,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) AUTOTOOL_STYLE:= autoconf CONFIGURE_ENV+= sc_cv_termios_ispeed=no \ sc_cv_sys_crdly_shift=9 \ sc_cv_sys_tabdly_shift=11 \ sc_cv_sys_csize_shift=4 CONFIGURE_ARGS+= --disable-libwrap \ --disable-readline ifeq (${ADK_PACKAGE_SOCAT_WITH_OPENSSL},y) CONFIGURE_ARGS+= --enable-openssl endif ifeq (${ADK_PACKAGE_SOCAT_WITH_LIBRESSL},y) CONFIGURE_ARGS+= --enable-openssl endif ifeq (${ADK_PACKAGE_SOCAT_WITHOUT_SSL},y) CONFIGURE_ARGS+= --disable-openssl endif socat-install: ${INSTALL_DIR} ${IDIR_SOCAT}/usr/bin ${INSTALL_BIN} ${WRKINST}/usr/bin/socat ${IDIR_SOCAT}/usr/bin/ include ${ADK_TOPDIR}/mk/pkg-bottom.mk