2014-07-18 15:24:44 -04:00
|
|
|
#
|
|
|
|
# FreeSWITCH auto-build Makefile (OpenBSD 5.x)
|
|
|
|
# http://www.freeswitch.org
|
|
|
|
# put this file anywhere and type make to
|
|
|
|
# create a fully-built freeswitch.git from scratch
|
|
|
|
# in that same directory.
|
|
|
|
#
|
|
|
|
#
|
|
|
|
|
|
|
|
PKG=rsync-3.1.0 git automake-1.14.1 autoconf-2.69p1 libtool gmake bzip2 jpeg wget pcre speex libldns
|
2014-07-22 14:54:03 -04:00
|
|
|
PREFIX=/usr/local/freeswitch
|
2014-07-22 07:44:28 -04:00
|
|
|
DOWNLOAD=http://files.freeswitch.org/downloads/libs
|
2014-07-22 08:27:38 -04:00
|
|
|
LIBRESSL=2.0.3
|
2014-07-18 15:24:44 -04:00
|
|
|
LIBEDIT=20140618-3.1
|
2014-07-22 07:33:28 -04:00
|
|
|
CURL=7.35.0
|
2014-07-18 15:24:44 -04:00
|
|
|
|
|
|
|
freeswitch: has-git deps freeswitch.git/Makefile
|
2014-07-22 07:28:46 -04:00
|
|
|
cd freeswitch.git && AUTOCONF_VERSION=2.69 AUTOMAKE_VERSION=1.14 LIBTOOL=/usr/local/bin/libtoolize gmake
|
2014-07-18 15:24:44 -04:00
|
|
|
|
|
|
|
freeswitch.git/Makefile: freeswitch.git/configure
|
2014-07-22 14:54:03 -04:00
|
|
|
cd freeswitch.git && PKG_CONFIG_PATH=$(PREFIX)/lib/pkgconfig ./configure LDFLAGS='-L$(PREFIX)/lib -Wl,-rpath=$(PREFIX)/lib' CFLAGS='-I$(PREFIX)/include' --prefix=$(PREFIX)
|
2014-07-18 15:24:44 -04:00
|
|
|
|
|
|
|
freeswitch.git/configure: freeswitch.git/bootstrap.sh
|
|
|
|
cd freeswitch.git && AUTOCONF_VERSION=2.69 AUTOMAKE_VERSION=1.14 LIBTOOL=/usr/local/bin/libtoolize sh bootstrap.sh
|
|
|
|
|
|
|
|
freeswitch.git/bootstrap.sh: has-git
|
|
|
|
test -d freeswitch.git || git clone https://stash.freeswitch.org/scm/fs/freeswitch.git freeswitch.git
|
|
|
|
|
|
|
|
install:
|
2014-07-22 16:19:40 -04:00
|
|
|
cd freeswitch.git && AUTOCONF_VERSION=2.69 AUTOMAKE_VERSION=1.14 LIBTOOL=/usr/local/bin/libtoolize gmake install cd-sounds-install cd-moh-install
|
2014-07-18 15:24:44 -04:00
|
|
|
|
|
|
|
clean:
|
|
|
|
@rm -rf openssl* ldns* jpeg* pcre* perl* pkg-config* speex* sqlite* libedit* curl* *~
|
|
|
|
(cd freeswitch.git && git clean -fdx && git reset --hard HEAD && git pull)
|
|
|
|
|
|
|
|
has-git:
|
2014-07-22 07:52:13 -04:00
|
|
|
@git --version || PKG_PATH=http://openbsd.mirrors.pair.com/`uname -r`/packages/`machine -a`/ pkg_add -r git
|
2014-07-18 15:24:44 -04:00
|
|
|
|
2014-07-22 08:27:38 -04:00
|
|
|
deps: libedit libressl curl
|
2014-07-18 15:24:44 -04:00
|
|
|
@PKG_PATH=http://openbsd.mirrors.pair.com/`uname -r`/packages/`machine -a`/ pkg_add -r $(PKG)
|
|
|
|
|
2014-07-22 08:27:38 -04:00
|
|
|
libressl: libressl-$(LIBRESSL)/Makefile
|
|
|
|
libressl-$(LIBRESSL)/Makefile: libressl-$(LIBRESSL)
|
|
|
|
libressl-$(LIBRESSL):
|
2014-07-22 07:44:28 -04:00
|
|
|
(test -d $@) || (wget -4 -O $@.tar.gz $(DOWNLOAD)/$@.tar.gz && tar zxfv $@.tar.gz)
|
2014-07-22 08:27:38 -04:00
|
|
|
(cd $@ && ./configure --prefix=$(PREFIX) && make && sudo make install)
|
2014-07-18 15:24:44 -04:00
|
|
|
|
|
|
|
libedit: libedit-$(LIBEDIT)/Makefile
|
|
|
|
libedit-$(LIBEDIT)/Makefile: libedit-$(LIBEDIT)
|
|
|
|
libedit-$(LIBEDIT):
|
2014-07-22 07:44:28 -04:00
|
|
|
(test -d $@) || (wget -4 -O $@.tar.gz $(DOWNLOAD)/$@.tar.gz && tar zxfv $@.tar.gz)
|
2014-07-18 15:24:44 -04:00
|
|
|
(cd $@ && ./configure --prefix=$(PREFIX) && make && sudo make install)
|
2014-07-22 07:33:28 -04:00
|
|
|
|
|
|
|
curl: curl-$(CURL)/.done
|
|
|
|
curl-$(CURL)/.done: curl-$(CURL)
|
|
|
|
curl-$(CURL):
|
|
|
|
(test -d $@) || (wget -4 -O $@.tar.gz $(DOWNLOAD)/$@.tar.gz && tar zxfv $@.tar.gz)
|
2014-07-22 08:50:09 -04:00
|
|
|
(rm -rf $(PREFIX)/lib/libcurl.*)
|
2014-07-22 14:54:03 -04:00
|
|
|
(cd $@ && PKG_CONFIG_PATH=$(PREFIX)/lib/pkgconfig:$PKG_CONFIG_PATH LDFLAGS='-L$(PREFIX)/lib -Wl,-rpath-link=$(PREFIX)/lib' CFLAGS='-I$(PREFIX)/include' ./configure --prefix=$(PREFIX) && make && sudo make install && touch .done)
|
2014-07-22 07:33:28 -04:00
|
|
|
|