2014-07-18 15:24:44 -04:00
|
|
|
#
|
2017-01-22 11:37:51 -05:00
|
|
|
# FreeSWITCH auto-build Makefile (OpenBSD 6.x)
|
2014-07-18 15:24:44 -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.
|
|
|
|
#
|
|
|
|
#
|
|
|
|
|
2017-01-22 13:34:12 -05:00
|
|
|
PKG=rsync-3.1.2p0 bzip2 git gmake automake-1.15p0 libtool apr apr-util-1.5.4p1 curl flac jpeg libidn libnatpmp libogg libldns libsndfile libsrtp libvorbis lua-5.2.4p1 miniupnpc pcre spandsp speex tiff libvpx yasm nasm opus
|
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
|
2017-01-22 13:34:12 -05:00
|
|
|
OPENSSL=1.0.2
|
2014-07-18 15:24:44 -04:00
|
|
|
LIBEDIT=20140618-3.1
|
|
|
|
|
|
|
|
freeswitch: has-git deps freeswitch.git/Makefile
|
2017-01-22 11:37:51 -05:00
|
|
|
cd freeswitch.git && AUTOCONF_VERSION=2.69 AUTOMAKE_VERSION=1.15 LIBTOOL=/usr/local/bin/libtoolize gmake
|
2014-07-18 15:24:44 -04:00
|
|
|
|
|
|
|
freeswitch.git/Makefile: freeswitch.git/configure
|
2017-01-22 13:34:12 -05: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) --disable-libyuv
|
2014-07-18 15:24:44 -04:00
|
|
|
|
|
|
|
freeswitch.git/configure: freeswitch.git/bootstrap.sh
|
2017-01-22 11:37:51 -05:00
|
|
|
cd freeswitch.git && AUTOCONF_VERSION=2.69 AUTOMAKE_VERSION=1.15 LIBTOOL=/usr/local/bin/libtoolize sh bootstrap.sh
|
2014-07-18 15:24:44 -04:00
|
|
|
|
|
|
|
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-07-18 15:24:44 -04:00
|
|
|
|
|
|
|
install:
|
2017-01-22 11:37:51 -05:00
|
|
|
cd freeswitch.git && AUTOCONF_VERSION=2.69 AUTOMAKE_VERSION=1.15 LIBTOOL=/usr/local/bin/libtoolize gmake install cd-sounds-install cd-moh-install
|
2014-07-18 15:24:44 -04:00
|
|
|
|
|
|
|
clean:
|
2017-01-22 13:34:12 -05:00
|
|
|
@rm -rf openssl* libedit* *~
|
2014-07-18 15:24:44 -04:00
|
|
|
(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
|
|
|
|
2017-01-22 13:34:12 -05:00
|
|
|
deps: libedit openssl
|
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-09-05 11:54:54 -04:00
|
|
|
openssl: openssl-$(OPENSSL)/.done
|
|
|
|
openssl-$(OPENSSL)/.done: openssl-$(OPENSSL)
|
|
|
|
openssl-$(OPENSSL):
|
2017-01-22 13:34:12 -05:00
|
|
|
(test -d $@) || (ftp -o $@.tar.gz $(DOWNLOAD)/$@.tar.gz && tar zxfv $@.tar.gz)
|
|
|
|
(cd $@ && ./Configure --prefix=$(PREFIX) BSD-x86_64 shared && make && doas make install && touch .done)
|
2014-07-18 15:24:44 -04:00
|
|
|
|
|
|
|
libedit: libedit-$(LIBEDIT)/Makefile
|
|
|
|
libedit-$(LIBEDIT)/Makefile: libedit-$(LIBEDIT)
|
|
|
|
libedit-$(LIBEDIT):
|
2017-01-22 13:34:12 -05:00
|
|
|
(test -d $@) || (ftp -o $@.tar.gz $(DOWNLOAD)/$@.tar.gz && tar zxfv $@.tar.gz)
|
|
|
|
(cd $@ && ./configure --prefix=$(PREFIX) && make && doas make install)
|