Makefile 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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:= freeswitch
  5. PKG_VERSION:= 6762f14140f5bf70647c037c4ef527392796af34
  6. PKG_RELEASE:= 1
  7. PKG_GIT:= hash
  8. PKG_DESCR:= cross-platform telephony platform
  9. PKG_SECTION:= net/voip
  10. PKG_DEPENDS:= libpcre libcurl zlib libjpeg-turbo libsqlite
  11. PKG_BUILDDEP:= util-linux zlib libjpeg-turbo sqlite curl pcre
  12. PKG_BUILDDEP+= speex
  13. PKG_URL:= http://www.freeswitch.org/
  14. PKG_SITES:= https://freeswitch.org/stash/scm/fs/freeswitch.git
  15. PKG_CHOICES_FREESWITCH:=WITH_LIBRESSL WITH_OPENSSL
  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,FREESWITCH,freeswitch,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))
  24. XAKE_FLAGS+= GCC_HONOUR_COPTS=s
  25. AUTOTOOL_STYLE:= bootstrap
  26. CONFIGURE_ARGS+= --disable-core-libedit-support
  27. CONFIGURE_ENV+= ac_cv_file__dev_ptmx=yes \
  28. ac_cv_file__dev_zero=yes \
  29. ac_cv_file__dev_urandom=yes \
  30. ac_cv_sizeof_ssize_t=4 \
  31. ac_cv_func_realloc_0_nonnull=yes \
  32. ac_cv_func_malloc_0_nonnull=yes \
  33. ac_cv_gcc_supports_w_no_unused_result=no \
  34. apr_cv_tcp_nodelay_with_cork=yes \
  35. ac_cv_file_dbd_apr_dbd_mysql_c=no \
  36. ac_cv_func_setpgrp_void=yes
  37. pre-configure:
  38. $(SED) "/applications\/mod_enum/d" $(WRKBUILD)/modules.conf
  39. $(SED) "/applications\/mod_fsv/d" $(WRKBUILD)/modules.conf
  40. $(SED) "/languages\/mod_lua/d" $(WRKBUILD)/modules.conf
  41. $(SED) "/codecs\/mod_opus/d" $(WRKBUILD)/modules.conf
  42. $(SED) "/codecs\/mod_vpx/d" $(WRKBUILD)/modules.conf
  43. $(SED) "/formats\/mod_sndfile/d" $(WRKBUILD)/modules.conf
  44. freeswitch-install:
  45. $(INSTALL_DIR) $(IDIR_FREESWITCH)/usr/bin
  46. $(INSTALL_BIN) $(WRKINST)/usr/bin/freeswitch \
  47. $(IDIR_FREESWITCH)/usr/bin
  48. include $(ADK_TOPDIR)/mk/pkg-bottom.mk