Makefile 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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.6.18
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= ac1b32f61e5c35680c5a2d6f145bc480cf26e6527af07d8b8b9fa2d5280252cd
  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
  12. PKG_BUILDDEP:= util-linux zlib libjpeg-turbo sqlite curl pcre
  13. PKG_BUILDDEP+= speex libressl opus
  14. PKG_URL:= http://www.freeswitch.org/
  15. PKG_SITES:= http://files.freeswitch.org/freeswitch-releases/
  16. include $(ADK_TOPDIR)/mk/package.mk
  17. $(eval $(call PKG_template,FREESWITCH,freeswitch,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))
  18. CONFIGURE_ARGS+= --disable-core-libedit-support \
  19. --disable-libvpx
  20. CONFIGURE_ENV+= ac_cv_file__dev_ptmx=yes \
  21. ac_cv_file__dev_zero=yes \
  22. ac_cv_file__dev_urandom=yes \
  23. ac_cv_sizeof_ssize_t=4 \
  24. ac_cv_func_realloc_0_nonnull=yes \
  25. ac_cv_func_malloc_0_nonnull=yes \
  26. ac_cv_gcc_supports_w_no_unused_result=no \
  27. apr_cv_tcp_nodelay_with_cork=yes \
  28. apr_cv_process_shared_works=no \
  29. ac_cv_file_dbd_apr_dbd_mysql_c=no \
  30. ac_cv_func_setpgrp_void=yes
  31. pre-configure:
  32. $(SED) "/applications\/mod_enum/d" $(WRKBUILD)/modules.conf
  33. $(SED) "/applications\/mod_fsv/d" $(WRKBUILD)/modules.conf
  34. $(SED) "/languages\/mod_lua/d" $(WRKBUILD)/modules.conf
  35. $(SED) "/endpoints\/mod_sofia/d" $(WRKBUILD)/modules.conf
  36. $(SED) "/codecs\/mod_vpx/d" $(WRKBUILD)/modules.conf
  37. $(SED) "/formats\/mod_sndfile/d" $(WRKBUILD)/modules.conf
  38. freeswitch-install:
  39. $(INSTALL_DIR) $(IDIR_FREESWITCH)/usr/bin
  40. $(INSTALL_BIN) $(WRKINST)/usr/bin/freeswitch \
  41. $(IDIR_FREESWITCH)/usr/bin
  42. include $(ADK_TOPDIR)/mk/pkg-bottom.mk