Makefile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 ${TOPDIR}/rules.mk
  4. PKG_NAME:= socat
  5. PKG_VERSION:= 1.7.2.3
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 6943f7a5e1ffd553ad2a900bbf05b83a
  8. PKG_DESCR:= A multipurpose relay (SOcket CAT)
  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. PKG_FLAVOURS_SOCAT:= WITH_SSL
  14. PKGFD_WITH_SSL:= enable SSL support
  15. PKGFS_WITH_SSL:= libopenssl
  16. PKGFB_WITH_SSL:= openssl
  17. include ${TOPDIR}/mk/package.mk
  18. $(eval $(call PKG_template,SOCAT,socat,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  19. CONFIGURE_ENV+= sc_cv_termios_ispeed="no" \
  20. sc_cv_sys_crdly_shift=9 \
  21. sc_cv_sys_tabdly_shift=11 \
  22. sc_cv_sys_csize_shift=4
  23. CONFIGURE_ARGS+= --disable-libwrap \
  24. --disable-readline
  25. ifneq (${ADK_PACKAGE_SOCAT_WITH_SSL},)
  26. CONFIGURE_ARGS+= --enable-openssl
  27. else
  28. CONFIGURE_ARGS+= --disable-openssl
  29. endif
  30. socat-install:
  31. ${INSTALL_DIR} ${IDIR_SOCAT}/usr/bin
  32. ${INSTALL_BIN} ${WRKINST}/usr/bin/socat ${IDIR_SOCAT}/usr/bin/
  33. include ${TOPDIR}/mk/pkg-bottom.mk