Makefile 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include ${ADK_TOPDIR}/rules.mk
  4. PKG_NAME:= socat
  5. PKG_VERSION:= 1.7.3.0
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= f8de4a2aaadb406a2e475d18cf3b9f29e322d4e5803d8106716a01fd4e64b186
  8. PKG_DESCR:= multipurpose relay
  9. PKG_SECTION:= net/misc
  10. PKG_DEPENDS:= libpthread
  11. PKG_URL:= http://www.dest-unreach.org/socat/
  12. PKG_SITES:= http://www.dest-unreach.org/socat/download/
  13. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  14. PKG_CHOICES_SOCAT:= WITHOUT_SSL WITH_LIBRESSL WITH_OPENSSL
  15. PKGCD_WITHOUT_SSL:= use no ssl
  16. PKGCD_WITH_LIBRESSL:= use libressl for crypto
  17. PKGCB_WITH_LIBRESSL:= libressl
  18. PKGCS_WITH_LIBRESSL:= libressl
  19. PKGCD_WITH_OPENSSL:= use openssl for crypto
  20. PKGCB_WITH_OPENSSL:= openssl
  21. PKGCS_WITH_OPENSSL:= libopenssl
  22. include ${ADK_TOPDIR}/mk/package.mk
  23. $(eval $(call PKG_template,SOCAT,socat,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  24. AUTOTOOL_STYLE:= autoconf
  25. CONFIGURE_ENV+= sc_cv_termios_ispeed=no \
  26. sc_cv_sys_crdly_shift=9 \
  27. sc_cv_sys_tabdly_shift=11 \
  28. sc_cv_sys_csize_shift=4
  29. CONFIGURE_ARGS+= --disable-libwrap \
  30. --disable-readline
  31. ifeq (${ADK_PACKAGE_SOCAT_WITH_OPENSSL},y)
  32. CONFIGURE_ARGS+= --enable-openssl
  33. endif
  34. ifeq (${ADK_PACKAGE_SOCAT_WITH_LIBRESSL},y)
  35. CONFIGURE_ARGS+= --enable-openssl
  36. endif
  37. ifeq (${ADK_PACKAGE_SOCAT_WITHOUT_SSL},y)
  38. CONFIGURE_ARGS+= --disable-openssl
  39. endif
  40. socat-install:
  41. ${INSTALL_DIR} ${IDIR_SOCAT}/usr/bin
  42. ${INSTALL_BIN} ${WRKINST}/usr/bin/socat ${IDIR_SOCAT}/usr/bin/
  43. include ${ADK_TOPDIR}/mk/pkg-bottom.mk