summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2015-10-17 12:12:16 +0200
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2015-10-22 22:31:25 +0200
commit55b1da17a41fbb80216b7f64e8b1b530d58bd3e7 (patch)
tree17dd9bea53a4ab2446663765adcc0797e9722760 /package
parentf9e75618bf8c5cba358722e9deecdb49d7d8c1cb (diff)
freeswitch: new package
Diffstat (limited to 'package')
-rw-r--r--package/freeswitch/Makefile47
1 files changed, 47 insertions, 0 deletions
diff --git a/package/freeswitch/Makefile b/package/freeswitch/Makefile
new file mode 100644
index 000000000..f0eb99c84
--- /dev/null
+++ b/package/freeswitch/Makefile
@@ -0,0 +1,47 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(ADK_TOPDIR)/rules.mk
+
+PKG_NAME:= freeswitch
+PKG_VERSION:= 6762f14140f5bf70647c037c4ef527392796af34
+PKG_RELEASE:= 1
+PKG_DESCR:= cross-platform telephony platform
+PKG_SECTION:= net/voip
+PKG_BUILDDEP:= util-linux zlib libjpeg-turbo sqlite curl pcre
+PKG_BUILDDEP+= speex openssl
+PKG_URL:= http://www.freeswitch.org/
+PKG_SITES:= https://freeswitch.org/stash/scm/fs/freeswitch.git
+
+include $(ADK_TOPDIR)/mk/package.mk
+
+$(eval $(call PKG_template,FREESWITCH,freeswitch,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))
+
+XAKE_FLAGS+= GCC_HONOUR_COPTS=s
+AUTOTOOL_STYLE:= bootstrap
+CONFIGURE_ARGS+= --disable-core-libedit-support
+CONFIGURE_ENV+= ac_cv_file__dev_ptmx=yes \
+ ac_cv_file__dev_zero=yes \
+ ac_cv_file__dev_urandom=yes \
+ ac_cv_sizeof_ssize_t=4 \
+ ac_cv_func_realloc_0_nonnull=yes \
+ ac_cv_func_malloc_0_nonnull=yes \
+ ac_cv_gcc_supports_w_no_unused_result=no \
+ apr_cv_tcp_nodelay_with_cork=yes \
+ ac_cv_file_dbd_apr_dbd_mysql_c=no \
+ ac_cv_func_setpgrp_void=yes
+
+pre-configure:
+ $(SED) "/applications\/mod_enum/d" $(WRKBUILD)/modules.conf
+ $(SED) "/applications\/mod_fsv/d" $(WRKBUILD)/modules.conf
+ $(SED) "/languages\/mod_lua/d" $(WRKBUILD)/modules.conf
+ $(SED) "/codecs\/mod_opus/d" $(WRKBUILD)/modules.conf
+ $(SED) "/codecs\/mod_vpx/d" $(WRKBUILD)/modules.conf
+ $(SED) "/formats\/mod_sndfile/d" $(WRKBUILD)/modules.conf
+
+freeswitch-install:
+ $(INSTALL_DIR) $(IDIR_FREESWITCH)/usr/bin
+ $(INSTALL_BIN) $(WRKINST)/usr/bin/freeswitch \
+ $(IDIR_FREESWITCH)/usr/bin
+
+include $(ADK_TOPDIR)/mk/pkg-bottom.mk