1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include ${ADK_TOPDIR}/rules.mk
9 PKG_HASH
:= ce3efc17e3e544876ebce7cd6c85b3c279fda057b2857fcaaf67b9ab8bdaf034
10 PKG_DESCR
:= multipurpose relay
11 PKG_SECTION
:= net
/misc
13 PKG_URL
:= http
://www.dest-unreach.org
/socat
/
14 PKG_SITES
:= http
://www.dest-unreach.org
/socat
/download
/
16 DISTFILES
:= ${PKG_NAME}-${PKG_VERSION}.
tar.gz
18 PKG_CHOICES_SOCAT
:= WITH_LIBRESSL WITHOUT_SSL
19 PKGCD_WITH_LIBRESSL
:= use libressl for crypto
20 PKGCB_WITH_LIBRESSL
:= libressl
21 PKGCS_WITH_LIBRESSL
:= libressl
22 PKGCD_WITHOUT_SSL
:= use no ssl
24 include ${ADK_TOPDIR}/mk
/package.mk
26 $(eval
$(call PKG_template
,SOCAT
,socat
,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
28 AUTOTOOL_STYLE
:= autoconf
29 CONFIGURE_ENV
+= sc_cv_termios_ispeed
=no \
30 sc_cv_sys_crdly_shift
=9 \
31 sc_cv_sys_tabdly_shift
=11 \
32 sc_cv_sys_csize_shift
=4
33 CONFIGURE_ARGS
+= --disable-libwrap \
36 ifeq (${ADK_PACKAGE_SOCAT_WITH_LIBRESSL},y
)
37 CONFIGURE_ARGS
+= --enable-openssl
39 ifeq (${ADK_PACKAGE_SOCAT_WITHOUT_SSL},y
)
40 CONFIGURE_ARGS
+= --disable-openssl
44 ${INSTALL_DIR} ${IDIR_SOCAT}/usr
/bin
45 ${INSTALL_BIN} ${WRKINST}/usr
/bin
/socat
${IDIR_SOCAT}/usr
/bin
/
47 include ${ADK_TOPDIR}/mk
/pkg-bottom.mk