Makefile 2.2 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:= 1.10.11
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= 4437edfa08558aa407c9fad5e4eed58f757357c53ca735aed9977e48aa1c53e3
  8. PKG_DESCR:= cross-platform telephony platform
  9. PKG_SECTION:= net/voip
  10. PKG_DEPENDS:= libpcre libcurl zlib libjpeg-turbo libsqlite
  11. PKG_DEPENDS+= libressl libopus spandsp sofia-sip
  12. PKG_BUILDDEP:= util-linux zlib libjpeg-turbo sqlite curl pcre
  13. PKG_BUILDDEP+= speex libressl opus spandsp sofia-sip
  14. PKG_URL:= http://www.freeswitch.org/
  15. PKG_SITES:= https://github.com/signalwire/freeswitch/archive/refs/tags/
  16. DISTFILES:= v$(PKG_VERSION).tar.gz
  17. include $(ADK_TOPDIR)/mk/package.mk
  18. $(eval $(call PKG_template,FREESWITCH,freeswitch,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))
  19. AUTOTOOL_STYLE:= bootstrap
  20. CONFIGURE_ARGS+= --disable-core-libedit-support \
  21. --disable-libvpx
  22. CONFIGURE_ENV+= ac_cv_file__dev_ptmx=yes \
  23. ac_cv_file__dev_zero=yes \
  24. ac_cv_file__dev_urandom=yes \
  25. ac_cv_sizeof_ssize_t=4 \
  26. ac_cv_func_realloc_0_nonnull=yes \
  27. ac_cv_func_malloc_0_nonnull=yes \
  28. ac_cv_gcc_supports_w_no_unused_result=no \
  29. apr_cv_tcp_nodelay_with_cork=yes \
  30. apr_cv_process_shared_works=no \
  31. ac_cv_file_dbd_apr_dbd_mysql_c=no \
  32. ac_cv_func_setpgrp_void=yes
  33. pre-configure:
  34. $(SED) "/applications\/mod_av/d" $(WRKBUILD)/modules.conf
  35. $(SED) "/applications\/mod_enum/d" $(WRKBUILD)/modules.conf
  36. $(SED) "/applications\/mod_fsv/d" $(WRKBUILD)/modules.conf
  37. $(SED) "/applications\/mod_signalwire/d" $(WRKBUILD)/modules.conf
  38. $(SED) "/applications\/mod_spandsp/d" $(WRKBUILD)/modules.conf
  39. $(SED) "/databases\/mod_pgsql/d" $(WRKBUILD)/modules.conf
  40. $(SED) "/languages\/mod_lua/d" $(WRKBUILD)/modules.conf
  41. $(SED) "/endpoints\/mod_sofia/d" $(WRKBUILD)/modules.conf
  42. $(SED) "/endpoints\/mod_verto/d" $(WRKBUILD)/modules.conf
  43. $(SED) "/codecs\/mod_vpx/d" $(WRKBUILD)/modules.conf
  44. $(SED) "/formats\/mod_sndfile/d" $(WRKBUILD)/modules.conf
  45. freeswitch-install:
  46. $(INSTALL_DIR) $(IDIR_FREESWITCH)/usr/bin
  47. $(INSTALL_BIN) $(WRKINST)/usr/bin/freeswitch \
  48. $(IDIR_FREESWITCH)/usr/bin
  49. include $(ADK_TOPDIR)/mk/pkg-bottom.mk