2014-05-28 13:29:39 -04:00
|
|
|
#
|
2014-05-28 13:32:28 -04:00
|
|
|
# FreeSWITCH auto-build Makefile (CentOS 6.5/Debian 7 Nike Edition, JUST DO IT!)
|
2014-05-28 13:29:39 -04:00
|
|
|
# http://www.freeswitch.org
|
|
|
|
# put this file anywhere and type make to
|
|
|
|
# create a fully-built freeswitch.git from scratch
|
|
|
|
# in that same directory.
|
|
|
|
#
|
|
|
|
#
|
2014-05-28 13:32:28 -04:00
|
|
|
RPMS=git gcc-c++ autoconf automake libtool wget python ncurses-devel zlib-devel libjpeg-devel openssl-devel e2fsprogs-devel sqlite-devel libcurl-devel pcre-devel speex-devel ldns-devel libedit-devel
|
2015-02-12 13:56:26 -05:00
|
|
|
DEBS=git build-essential automake autoconf 'libtool|libtool-bin' wget python uuid-dev zlib1g-dev 'libjpeg8-dev|libjpeg62-turbo-dev' libncurses5-dev libssl-dev libpcre3-dev libcurl4-openssl-dev libldns-dev libedit-dev libspeexdsp-dev libspeexdsp-dev libsqlite3-dev perl libgdbm-dev libdb-dev bison libvlc-dev pkg-config
|
2014-05-28 13:29:39 -04:00
|
|
|
|
|
|
|
freeswitch: deps has-git freeswitch.git/Makefile
|
|
|
|
cd freeswitch.git && make
|
|
|
|
|
|
|
|
freeswitch.git/Makefile: freeswitch.git/configure
|
2014-05-28 13:32:28 -04:00
|
|
|
cd freeswitch.git && ./configure
|
2014-05-28 13:29:39 -04:00
|
|
|
|
|
|
|
freeswitch.git/configure: freeswitch.git/bootstrap.sh
|
|
|
|
cd freeswitch.git && sh bootstrap.sh
|
|
|
|
|
|
|
|
freeswitch.git/bootstrap.sh: has-git
|
2014-10-29 18:24:52 -04:00
|
|
|
test -d freeswitch.git || git clone https://freeswitch.org/stash/scm/fs/freeswitch.git freeswitch.git
|
2014-05-28 13:29:39 -04:00
|
|
|
|
2014-05-28 13:32:28 -04:00
|
|
|
rpmforge:
|
|
|
|
(which rpm && rpm -i http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm) || true
|
2014-05-28 13:29:39 -04:00
|
|
|
|
2014-09-12 13:06:58 -04:00
|
|
|
install:
|
2014-07-22 16:19:40 -04:00
|
|
|
cd freeswitch.git && make install cd-sounds-install cd-moh-install
|
2014-05-28 13:29:39 -04:00
|
|
|
|
2014-05-28 13:32:28 -04:00
|
|
|
has-git:
|
|
|
|
@git --version || (echo "please install git" && false)
|
2014-05-28 13:29:39 -04:00
|
|
|
|
2014-05-28 13:32:28 -04:00
|
|
|
deps: rpmforge
|
|
|
|
((which yum && yum -y install $(RPMS)) || (which apt-get && apt-get -y install $(DEBS))) || true
|