e697d86d55
Upstream socat2 branch seems to be dead. Last commit is from January 2016 . Over the last few years socat2 received only fixes cherry picked from the master 1.x branch. Most major general purpose distros only package socat 1.x. Drop the threads dependency; not needed for 1.x. Mention the OpenSSL exception in the license. Add hashes for license files. Correct the autoconf comment. The tarball configure script is recent enough. But since we patch configure.in and Makefile.in we still need to autoconf. All patches we carry for socat2 are also needed for socat 1.x. Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
52 lines
1.3 KiB
Makefile
52 lines
1.3 KiB
Makefile
################################################################################
|
|
#
|
|
# socat
|
|
#
|
|
################################################################################
|
|
|
|
SOCAT_VERSION = 1.7.3.2
|
|
SOCAT_SOURCE = socat-$(SOCAT_VERSION).tar.bz2
|
|
SOCAT_SITE = http://www.dest-unreach.org/socat/download
|
|
SOCAT_LICENSE = GPL-2.0 with OpenSSL exception
|
|
SOCAT_LICENSE_FILES = README COPYING COPYING.OpenSSL
|
|
|
|
SOCAT_CONF_ENV = sc_cv_termios_ispeed=no
|
|
|
|
ifeq ($(BR2_powerpc)$(BR2_powerpc64)$(BR2_powerpc64le),y)
|
|
SOCAT_CONF_ENV += \
|
|
sc_cv_sys_crdly_shift=12 \
|
|
sc_cv_sys_tabdly_shift=10 \
|
|
sc_cv_sys_csize_shift=8
|
|
else
|
|
SOCAT_CONF_ENV += \
|
|
sc_cv_sys_crdly_shift=9 \
|
|
sc_cv_sys_tabdly_shift=11 \
|
|
sc_cv_sys_csize_shift=4
|
|
endif
|
|
|
|
# We need to run autoconf to regenerate the configure script, since we patch
|
|
# configure.in and Makefile.in. However, the package only uses autoconf and not
|
|
# automake, so we can't use the normal autoreconf logic.
|
|
|
|
SOCAT_DEPENDENCIES = host-autoconf
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
|
SOCAT_DEPENDENCIES += openssl
|
|
else
|
|
SOCAT_CONF_OPTS += --disable-openssl
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_READLINE),y)
|
|
SOCAT_DEPENDENCIES += readline
|
|
else
|
|
SOCAT_CONF_OPTS += --disable-readline
|
|
endif
|
|
|
|
define SOCAT_RUN_AUTOCONF
|
|
(cd $(@D); $(HOST_DIR)/bin/autoconf)
|
|
endef
|
|
|
|
SOCAT_PRE_CONFIGURE_HOOKS += SOCAT_RUN_AUTOCONF
|
|
|
|
$(eval $(autotools-package))
|