Makefile 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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.2.4
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= e29cb0ef75ab903c94eb570e2081d431cfb91cf24c15d9336aa8f5f9d7397a42
  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_FLAVOURS_SOCAT:= WITH_SSL
  15. PKGFD_WITH_SSL:= enable SSL support
  16. PKGFS_WITH_SSL:= libopenssl
  17. PKGFB_WITH_SSL:= openssl
  18. include ${ADK_TOPDIR}/mk/package.mk
  19. $(eval $(call PKG_template,SOCAT,socat,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  20. AUTOTOOL_STYLE:= autoconf
  21. CONFIGURE_ENV+= sc_cv_termios_ispeed=no \
  22. sc_cv_sys_crdly_shift=9 \
  23. sc_cv_sys_tabdly_shift=11 \
  24. sc_cv_sys_csize_shift=4
  25. CONFIGURE_ARGS+= --disable-libwrap \
  26. --disable-readline
  27. ifneq (${ADK_PACKAGE_SOCAT_WITH_SSL},)
  28. CONFIGURE_ARGS+= --enable-openssl
  29. else
  30. CONFIGURE_ARGS+= --disable-openssl
  31. endif
  32. socat-install:
  33. ${INSTALL_DIR} ${IDIR_SOCAT}/usr/bin
  34. ${INSTALL_BIN} ${WRKINST}/usr/bin/socat ${IDIR_SOCAT}/usr/bin/
  35. include ${ADK_TOPDIR}/mk/pkg-bottom.mk