Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. CONFIGURE_ENV+= sc_cv_termios_ispeed=no \
  21. sc_cv_sys_crdly_shift=9 \
  22. sc_cv_sys_tabdly_shift=11 \
  23. sc_cv_sys_csize_shift=4
  24. CONFIGURE_ARGS+= --disable-libwrap \
  25. --disable-readline
  26. ifneq (${ADK_PACKAGE_SOCAT_WITH_SSL},)
  27. CONFIGURE_ARGS+= --enable-openssl
  28. else
  29. CONFIGURE_ARGS+= --disable-openssl
  30. endif
  31. socat-install:
  32. ${INSTALL_DIR} ${IDIR_SOCAT}/usr/bin
  33. ${INSTALL_BIN} ${WRKINST}/usr/bin/socat ${IDIR_SOCAT}/usr/bin/
  34. include ${ADK_TOPDIR}/mk/pkg-bottom.mk