Makefile 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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_DESCR:= cross-platform telephony platform
  8. PKG_SECTION:= net/voip
  9. PKG_BUILDDEP:= util-linux zlib libjpeg-turbo sqlite curl pcre
  10. PKG_BUILDDEP+= speex openssl
  11. PKG_URL:= http://www.freeswitch.org/
  12. PKG_SITES:= https://freeswitch.org/stash/scm/fs/freeswitch.git
  13. include $(ADK_TOPDIR)/mk/package.mk
  14. $(eval $(call PKG_template,FREESWITCH,freeswitch,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))
  15. XAKE_FLAGS+= GCC_HONOUR_COPTS=s
  16. AUTOTOOL_STYLE:= bootstrap
  17. CONFIGURE_ARGS+= --disable-core-libedit-support
  18. CONFIGURE_ENV+= ac_cv_file__dev_ptmx=yes \
  19. ac_cv_file__dev_zero=yes \
  20. ac_cv_file__dev_urandom=yes \
  21. ac_cv_sizeof_ssize_t=4 \
  22. ac_cv_func_realloc_0_nonnull=yes \
  23. ac_cv_func_malloc_0_nonnull=yes \
  24. ac_cv_gcc_supports_w_no_unused_result=no \
  25. apr_cv_tcp_nodelay_with_cork=yes \
  26. ac_cv_file_dbd_apr_dbd_mysql_c=no \
  27. ac_cv_func_setpgrp_void=yes
  28. pre-configure:
  29. $(SED) "/applications\/mod_enum/d" $(WRKBUILD)/modules.conf
  30. $(SED) "/applications\/mod_fsv/d" $(WRKBUILD)/modules.conf
  31. $(SED) "/languages\/mod_lua/d" $(WRKBUILD)/modules.conf
  32. $(SED) "/codecs\/mod_opus/d" $(WRKBUILD)/modules.conf
  33. $(SED) "/codecs\/mod_vpx/d" $(WRKBUILD)/modules.conf
  34. $(SED) "/formats\/mod_sndfile/d" $(WRKBUILD)/modules.conf
  35. freeswitch-install:
  36. $(INSTALL_DIR) $(IDIR_FREESWITCH)/usr/bin
  37. $(INSTALL_BIN) $(WRKINST)/usr/bin/freeswitch \
  38. $(IDIR_FREESWITCH)/usr/bin
  39. include $(ADK_TOPDIR)/mk/pkg-bottom.mk