2
0

Makefile.centos6 1.5 KB

12345678910111213141516171819202122232425262728293031323334
  1. #
  2. # FreeSWITCH auto-build Makefile (CentOS 6.5/Debian 7 Nike Edition, JUST DO IT!)
  3. # http://www.freeswitch.org
  4. # put this file anywhere and type make to
  5. # create a fully-built freeswitch.git from scratch
  6. # in that same directory.
  7. #
  8. #
  9. 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
  10. DEBS=git build-essential automake autoconf 'libtool-bin|libtool' 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
  11. freeswitch: deps has-git freeswitch.git/Makefile
  12. cd freeswitch.git && make
  13. freeswitch.git/Makefile: freeswitch.git/configure
  14. cd freeswitch.git && ./configure
  15. freeswitch.git/configure: freeswitch.git/bootstrap.sh
  16. cd freeswitch.git && sh bootstrap.sh
  17. freeswitch.git/bootstrap.sh: has-git
  18. test -d freeswitch.git || git clone https://github.com/signalwire/freeswitch.git freeswitch.git
  19. rpmforge:
  20. (which rpm && rpm -i http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm) || true
  21. install:
  22. cd freeswitch.git && make install cd-sounds-install cd-moh-install
  23. has-git:
  24. @git --version || (echo "please install git" && false)
  25. deps: rpmforge
  26. ((which yum && yum -y install $(RPMS)) || (which apt-get && apt-get -y install $(DEBS))) || true