freeswitch/build/Makefile.solaris11

111 lines
4.4 KiB
Makefile
Raw Normal View History

2014-06-17 19:34:17 +00:00
#
# FreeSWITCH auto-build Makefile (Solaris 11.1 64bit Tonka Truck Edition)
# http://www.freeswitch.org
# put this file anywhere and type gmake to
# create a fully-built freeswitch.git from scratch
# in that same directory.
#
#
FSPREFIX=/usr/local/freeswitch
PREFIX=/usr/local/
2014-06-17 20:44:32 +00:00
DOWNLOAD=http://files.freeswitch.org/downloads/libs
2014-06-17 19:34:17 +00:00
JP=v8d
2014-10-20 18:36:42 +00:00
SSL=1.0.1j
2014-06-17 19:34:17 +00:00
SQLITE=autoconf-3080403
PCRE=8.35
2014-06-17 20:24:55 +00:00
CURL=7.35.0
2014-06-17 19:34:17 +00:00
SPEEX=1.2rc1
2014-06-18 19:52:27 +00:00
LIBEDIT=20140618-3.1
2014-06-17 19:34:17 +00:00
LDNS=1.6.17
PKGCFG=0.28
PERL=5.18.2
freeswitch: deps has-git freeswitch.git/Makefile
cd freeswitch.git && gmake
freeswitch.git/Makefile: freeswitch.git/configure
export PATH=$PATH:$(PREFIX)/bin
cd freeswitch.git && PKG_CONFIG_PATH=$(PREFIX)/lib/pkgconfig ./configure --enable-64 LDFLAGS='-L$(PREFIX)/lib -Wl,-rpath=$(PREFIX)/lib' CFLAGS='-I$(PREFIX)/include' --prefix=$(FSPREFIX)
freeswitch.git/configure: freeswitch.git/bootstrap.sh
cd freeswitch.git && sh bootstrap.sh
freeswitch.git/bootstrap.sh: has-git
test -d freeswitch.git || git clone https://freeswitch.org/stash/scm/fs/freeswitch.git freeswitch.git
2014-06-17 19:34:17 +00:00
install: freeswitch
2014-07-22 20:19:40 +00:00
cd freeswitch.git && gmake install cd-sounds-install cd-moh-install
2014-06-17 19:34:17 +00:00
install-git:
pkg install git autoconf automake libtool libjpeg gcc-45 wget
has-git:
@git --version || (echo "please install git by running 'gmake install-git'" && false)
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)
2014-06-17 20:24:55 +00:00
libjpeg: jpeg-8d/.done
2014-06-17 19:34:17 +00:00
2014-06-17 20:24:55 +00:00
jpeg-8d/.done:
2014-06-17 20:44:32 +00:00
(test -d jpeg-8d) || (wget -4 -O jpegsrc.$(JP).tar.gz $(DOWNLOAD)/jpegsrc.$(JP).tar.gz && tar zxfv jpegsrc.$(JP).tar.gz)
2014-06-17 20:24:55 +00:00
(cd jpeg-8d && CFLAGS=-m64 LDFLAGS=-m64 ./configure --prefix=$(PREFIX) && gmake && sudo gmake install && touch .done)
2014-06-17 19:34:17 +00:00
2014-06-17 20:24:55 +00:00
openssl: openssl-$(SSL)/.done
openssl-$(SSL)/.done: openssl-$(SSL)
2014-06-17 19:34:17 +00:00
openssl-$(SSL):
2014-06-17 20:44:32 +00:00
(test -d $@) || (wget -4 -O $@.tar.gz $(DOWNLOAD)/$@.tar.gz && tar zxfv $@.tar.gz)
2014-06-17 20:24:55 +00:00
(cd $@ && CFLAGS=-m64 LDFLAGS=-m64 ./Configure --prefix=$(PREFIX) solaris64-x86_64-gcc shared && gmake && sudo gmake install && touch .done)
2014-06-17 19:34:17 +00:00
2014-06-17 20:24:55 +00:00
sqlite: sqlite-$(SQLITE)/.done
sqlite-$(SQLITE)/.done: sqlite-$(SQLITE)
2014-06-17 19:34:17 +00:00
sqlite-$(SQLITE):
2014-06-17 20:44:32 +00:00
(test -d $@) || (wget -4 -O $@.tar.gz $(DOWNLOAD)/$@.tar.gz && tar zxfv $@.tar.gz)
2014-06-17 20:24:55 +00:00
(cd $@ && CFLAGS=-m64 LDFLAGS=-m64 ./configure --prefix=$(PREFIX) && gmake && sudo gmake install && touch .done)
2014-06-17 19:34:17 +00:00
2014-06-17 20:24:55 +00:00
pcre: pcre-$(PCRE)/.done
pcre-$(PCRE)/.done: pcre-$(PCRE)
2014-06-17 19:34:17 +00:00
pcre-$(PCRE):
2014-06-17 20:44:32 +00:00
(test -d $@) || (wget -4 -O $@.tar.gz $(DOWNLOAD)/$@.tar.gz && tar zxfv $@.tar.gz)
2014-06-17 20:24:55 +00:00
(cd $@ && CXXFLAGS=-m64 CFLAGS=-m64 LDFLAGS=-m64 ./configure --prefix=$(PREFIX) && gmake && sudo gmake install && touch .done)
2014-06-17 19:34:17 +00:00
2014-06-17 20:24:55 +00:00
curl: curl-$(CURL)/.done
curl-$(CURL)/.done: curl-$(CURL)
2014-06-17 19:34:17 +00:00
curl-$(CURL):
2014-06-17 20:44:32 +00:00
(test -d $@) || (wget -4 -O $@.tar.gz $(DOWNLOAD)/$@.tar.gz && tar zxfv $@.tar.gz)
2014-06-17 20:24:55 +00:00
(cd $@ && CFLAGS=-m64 LDFLAGS=-m64 ./configure --prefix=$(PREFIX) && gmake && sudo gmake install && touch .done)
2014-06-17 19:34:17 +00:00
2014-06-17 20:24:55 +00:00
speex: speex-$(SPEEX)/.done
speex-$(SPEEX)/.done: speex-$(SPEEX)
2014-06-17 19:34:17 +00:00
speex-$(SPEEX):
2014-06-17 20:44:32 +00:00
(test -d $@) || (wget -4 -O $@.tar.gz $(DOWNLOAD)/$@.tar.gz && tar zxfv $@.tar.gz)
2014-06-17 20:24:55 +00:00
(cd $@ && CFLAGS=-m64 LDFLAGS=-m64 ./configure --prefix=$(PREFIX) && gmake && sudo gmake install && touch .done)
2014-06-17 19:34:17 +00:00
2014-06-17 20:24:55 +00:00
libedit: libedit-$(LIBEDIT)/.done
libedit-$(LIBEDIT)/.done: libedit-$(LIBEDIT)
2014-06-17 19:34:17 +00:00
libedit-$(LIBEDIT):
2014-06-17 20:44:32 +00:00
(test -d $@) || (wget -4 -O $@.tar.gz $(DOWNLOAD)/$@.tar.gz && tar zxfv $@.tar.gz)
2014-06-17 20:24:55 +00:00
(cd $@ && CFLAGS=-m64 LDFLAGS=-m64 ./configure --prefix=$(PREFIX) && gmake && sudo gmake install && touch .done)
2014-06-17 19:34:17 +00:00
2014-06-17 20:24:55 +00:00
ldns: openssl ldns-$(LDNS)/.done
ldns-$(LDNS)/.done: ldns-$(LDNS)
2014-06-17 19:34:17 +00:00
ldns-$(LDNS):
2014-06-17 20:44:32 +00:00
(test -d $@) || (wget -4 -O $@.tar.gz $(DOWNLOAD)/$@.tar.gz && tar zxfv $@.tar.gz)
2014-06-17 20:24:55 +00:00
(cd $@ && CFLAGS=-m64 LDFLAGS=-m64 ./configure --with-ssl=$(PREFIX) --prefix=$(PREFIX) && gmake && sudo gmake install && touch .done)
2014-06-17 19:34:17 +00:00
2014-06-17 20:24:55 +00:00
pkg-config: openssl pkg-config-$(PKGCFG)/.done
pkg-config-$(PKGCFG)/.done: pkg-config-$(PKGCFG)
2014-06-17 19:34:17 +00:00
pkg-config-$(PKGCFG):
2014-06-17 20:44:32 +00:00
(test -d $@) || (wget -4 -O $@.tar.gz $(DOWNLOAD)/$@.tar.gz && tar zxfv $@.tar.gz)
2014-06-17 20:24:55 +00:00
(cd $@ && CFLAGS=-m64 LDFLAGS=-m64 ./configure --with-internal-glib --prefix=$(PREFIX) && sudo gmake uninstall && gmake && sudo gmake install && \
touch .done)
2014-06-17 19:34:17 +00:00
2014-06-17 20:24:55 +00:00
perl: openssl perl-$(PERL)/.done
perl-$(PERL)/.done: perl-$(PERL)
2014-06-17 19:34:17 +00:00
perl-$(PERL):
2014-06-17 20:44:32 +00:00
(test -d $@) || (wget -4 -O $@.tar.gz $(DOWNLOAD)/$@.tar.gz && tar zxfv $@.tar.gz)
2014-06-17 20:24:55 +00:00
(cd $@ && CFLAGS=-m64 LDFLAGS=-m64 ./configure.gnu -Dcc=gcc --prefix=$(PREFIX) && gmake && sudo gmake install && touch .done)
2014-06-17 19:34:17 +00:00
2014-06-17 20:24:55 +00:00
deps: has-git libjpeg openssl sqlite pcre curl speex libedit ldns pkg-config perl