2015-09-03 13:35:29 -04:00
|
|
|
ZLIB_VERSION=1.2.3
|
|
|
|
BZIP2_VERSION=1.0.6
|
2016-08-15 05:49:36 -04:00
|
|
|
MINIUPNPC_VERSION=2.0
|
|
|
|
OPENSSL_VERSION=1.0.2h
|
|
|
|
SPEEX_VERSION=1.2rc2
|
|
|
|
SPEEXDSP_VERSION=1.2rc3
|
|
|
|
OPENCV_VERSION=2.4.13
|
|
|
|
LIBXML2_VERSION=2.9.3
|
2015-09-03 13:35:29 -04:00
|
|
|
LIBXSLT_VERSION=1.1.28
|
2016-08-15 05:49:36 -04:00
|
|
|
CURL_VERSION=7.46.0
|
2015-09-03 13:35:29 -04:00
|
|
|
TCL_VERSION=8.6.2
|
|
|
|
SQLCIPHER_VERSION=2.2.1
|
2016-08-15 05:49:36 -04:00
|
|
|
LIBMICROHTTPD_VERSION=0.9.46
|
|
|
|
FFMPEG_VERSION=3.1.2
|
|
|
|
|
2016-09-06 15:31:41 -04:00
|
|
|
MAKEFILE_PATH=$(dir $(MAKEFILE_LIST))
|
|
|
|
LIBS_PATH?=$(MAKEFILE_PATH)../../../../libs
|
|
|
|
|
|
|
|
DOWNLOAD_PATH?=download
|
|
|
|
COPY_ANSWER?=
|
|
|
|
|
2016-08-15 05:49:36 -04:00
|
|
|
all: dirs zlib bzip2 miniupnpc openssl speex speexdsp opencv libxml2 libxslt curl sqlcipher libmicrohttpd ffmpeg copylibs
|
|
|
|
|
|
|
|
download: \
|
2016-09-06 15:31:41 -04:00
|
|
|
$(DOWNLOAD_PATH)/zlib-$(ZLIB_VERSION).tar.gz \
|
|
|
|
$(DOWNLOAD_PATH)/bzip2-$(BZIP2_VERSION).tar.gz \
|
|
|
|
$(DOWNLOAD_PATH)/miniupnpc-$(MINIUPNPC_VERSION).tar.gz \
|
|
|
|
$(DOWNLOAD_PATH)/openssl-$(OPENSSL_VERSION).tar.gz \
|
|
|
|
$(DOWNLOAD_PATH)/speex-$(SPEEX_VERSION).tar.gz \
|
|
|
|
$(DOWNLOAD_PATH)/speexdsp-$(SPEEXDSP_VERSION).tar.gz \
|
|
|
|
$(DOWNLOAD_PATH)/opencv-$(OPENCV_VERSION).tar.gz \
|
|
|
|
$(DOWNLOAD_PATH)/libxml2-$(LIBXML2_VERSION).tar.gz \
|
|
|
|
$(DOWNLOAD_PATH)/libxslt-$(LIBXSLT_VERSION).tar.gz \
|
|
|
|
$(DOWNLOAD_PATH)/curl-$(CURL_VERSION).tar.gz \
|
|
|
|
$(DOWNLOAD_PATH)/tcl$(TCL_VERSION)-src.tar.gz \
|
|
|
|
$(DOWNLOAD_PATH)/sqlcipher-$(SQLCIPHER_VERSION).tar.gz \
|
|
|
|
$(DOWNLOAD_PATH)/libmicrohttpd-$(LIBMICROHTTPD_VERSION).tar.gz \
|
|
|
|
$(DOWNLOAD_PATH)/ffmpeg-$(FFMPEG_VERSION).tar.gz
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -r -f libs
|
2015-09-03 13:35:29 -04:00
|
|
|
|
|
|
|
dirs:
|
2016-09-06 15:31:41 -04:00
|
|
|
mkdir -p $(DOWNLOAD_PATH)
|
|
|
|
mkdir -p libs
|
|
|
|
gcc --version | head --lines 1 | tr ' ' '\n' | tail -1 >libs/gcc-version
|
|
|
|
|
|
|
|
$(DOWNLOAD_PATH)/zlib-$(ZLIB_VERSION).tar.gz:
|
|
|
|
wget --no-check-certificate http://sourceforge.net/projects/libpng/files/zlib/$(ZLIB_VERSION)/zlib-$(ZLIB_VERSION).tar.gz/download -O $(DOWNLOAD_PATH)/zlib-$(ZLIB_VERSION).tar.gz
|
2015-09-03 13:35:29 -04:00
|
|
|
|
2016-09-06 15:31:41 -04:00
|
|
|
zlib: libs/zlib-$(ZLIB_VERSION)
|
2015-09-03 13:35:29 -04:00
|
|
|
|
2016-09-06 15:31:41 -04:00
|
|
|
libs/zlib-$(ZLIB_VERSION): $(DOWNLOAD_PATH)/zlib-$(ZLIB_VERSION).tar.gz
|
|
|
|
# prepare
|
|
|
|
rm -r -f libs/zlib-*
|
|
|
|
tar xvf $(DOWNLOAD_PATH)/zlib-$(ZLIB_VERSION).tar.gz
|
|
|
|
# build
|
2015-09-03 13:35:29 -04:00
|
|
|
cd zlib-$(ZLIB_VERSION) && ./configure
|
|
|
|
#cd zlib-$(ZLIB_VERSION) && make install prefix="`pwd`/../libs"
|
|
|
|
cd zlib-$(ZLIB_VERSION) && make
|
2016-09-06 15:31:41 -04:00
|
|
|
# copy files
|
|
|
|
mkdir -p libs/zlib-$(ZLIB_VERSION).tmp/include
|
|
|
|
cp zlib-$(ZLIB_VERSION)/zlib.h libs/zlib-$(ZLIB_VERSION).tmp/include/
|
|
|
|
cp zlib-$(ZLIB_VERSION)/zconf.h libs/zlib-$(ZLIB_VERSION).tmp/include/
|
|
|
|
mkdir -p libs/zlib-$(ZLIB_VERSION).tmp/lib
|
|
|
|
cp zlib-$(ZLIB_VERSION)/libz.a libs/zlib-$(ZLIB_VERSION).tmp/lib/
|
2015-09-03 13:35:29 -04:00
|
|
|
rm -r -f zlib-$(ZLIB_VERSION)
|
2016-09-06 15:31:41 -04:00
|
|
|
mv libs/zlib-$(ZLIB_VERSION).tmp libs/zlib-$(ZLIB_VERSION)
|
2015-09-03 13:35:29 -04:00
|
|
|
|
2016-09-06 15:31:41 -04:00
|
|
|
bzip2: libs/bzip2-$(BZIP2_VERSION)
|
2015-09-03 13:35:29 -04:00
|
|
|
|
2016-09-06 15:31:41 -04:00
|
|
|
$(DOWNLOAD_PATH)/bzip2-$(BZIP2_VERSION).tar.gz:
|
|
|
|
wget http://bzip.org/$(BZIP2_VERSION)/bzip2-$(BZIP2_VERSION).tar.gz -O $(DOWNLOAD_PATH)/bzip2-$(BZIP2_VERSION).tar.gz
|
|
|
|
|
|
|
|
libs/bzip2-$(BZIP2_VERSION): $(DOWNLOAD_PATH)/bzip2-$(BZIP2_VERSION).tar.gz
|
|
|
|
# prepare
|
|
|
|
rm -r -f libs/bzip2-*
|
|
|
|
tar xvf $(DOWNLOAD_PATH)/bzip2-$(BZIP2_VERSION).tar.gz
|
|
|
|
# build
|
2015-09-03 13:35:29 -04:00
|
|
|
#cd bzip2-$(BZIP2_VERSION) && make install PREFIX="`pwd`/../libs"
|
|
|
|
cd bzip2-$(BZIP2_VERSION) && make
|
2016-09-06 15:31:41 -04:00
|
|
|
# copy files
|
|
|
|
mkdir -p libs/bzip2-$(BZIP2_VERSION).tmp/include
|
|
|
|
cp bzip2-$(BZIP2_VERSION)/bzlib.h libs/bzip2-$(BZIP2_VERSION).tmp/include/
|
|
|
|
mkdir -p libs/bzip2-$(BZIP2_VERSION).tmp/lib
|
|
|
|
cp bzip2-$(BZIP2_VERSION)/libbz2.a libs/bzip2-$(BZIP2_VERSION).tmp/lib/
|
2015-09-03 13:35:29 -04:00
|
|
|
rm -r -f bzip2-$(BZIP2_VERSION)
|
2016-09-06 15:31:41 -04:00
|
|
|
mv libs/bzip2-$(BZIP2_VERSION).tmp libs/bzip2-$(BZIP2_VERSION)
|
|
|
|
|
|
|
|
miniupnpc: libs/miniupnpc-$(MINIUPNPC_VERSION)
|
2015-09-03 13:35:29 -04:00
|
|
|
|
2016-09-06 15:31:41 -04:00
|
|
|
$(DOWNLOAD_PATH)/miniupnpc-$(MINIUPNPC_VERSION).tar.gz:
|
|
|
|
wget http://miniupnp.free.fr/files/download.php?file=miniupnpc-$(MINIUPNPC_VERSION).tar.gz -O $(DOWNLOAD_PATH)/miniupnpc-$(MINIUPNPC_VERSION).tar.gz
|
2015-09-03 13:35:29 -04:00
|
|
|
|
2016-09-06 15:31:41 -04:00
|
|
|
libs/miniupnpc-$(MINIUPNPC_VERSION): $(DOWNLOAD_PATH)/miniupnpc-$(MINIUPNPC_VERSION).tar.gz
|
|
|
|
# prepare
|
|
|
|
rm -r -f libs/miniupnpc-*
|
|
|
|
tar xvf $(DOWNLOAD_PATH)/miniupnpc-$(MINIUPNPC_VERSION).tar.gz
|
|
|
|
# build
|
2016-08-15 05:49:36 -04:00
|
|
|
cd miniupnpc-$(MINIUPNPC_VERSION) && CC=gcc && export CC && make -f Makefile.mingw init libminiupnpc.a miniupnpc.dll
|
2016-09-06 15:31:41 -04:00
|
|
|
# copy files
|
|
|
|
mkdir -p libs/miniupnpc-$(MINIUPNPC_VERSION).tmp/include/miniupnpc
|
|
|
|
cp miniupnpc-$(MINIUPNPC_VERSION)/*.h libs/miniupnpc-$(MINIUPNPC_VERSION).tmp/include/miniupnpc/
|
|
|
|
mkdir -p libs/miniupnpc-$(MINIUPNPC_VERSION).tmp/lib
|
|
|
|
cp miniupnpc-$(MINIUPNPC_VERSION)/miniupnpc.lib libs/miniupnpc-$(MINIUPNPC_VERSION).tmp/lib/
|
|
|
|
mkdir -p libs/miniupnpc-$(MINIUPNPC_VERSION).tmp/bin
|
|
|
|
cp miniupnpc-$(MINIUPNPC_VERSION)/miniupnpc.dll libs/miniupnpc-$(MINIUPNPC_VERSION).tmp/bin/
|
2015-09-03 13:35:29 -04:00
|
|
|
rm -r -f miniupnpc-$(MINIUPNPC_VERSION)
|
2016-09-06 15:31:41 -04:00
|
|
|
mv libs/miniupnpc-$(MINIUPNPC_VERSION).tmp libs/miniupnpc-$(MINIUPNPC_VERSION)
|
2015-09-03 13:35:29 -04:00
|
|
|
|
2016-09-06 15:31:41 -04:00
|
|
|
openssl: libs/openssl-$(OPENSSL_VERSION)
|
2015-09-03 13:35:29 -04:00
|
|
|
|
2016-09-06 15:31:41 -04:00
|
|
|
$(DOWNLOAD_PATH)/openssl-$(OPENSSL_VERSION).tar.gz:
|
|
|
|
wget --no-check-certificate https://www.openssl.org/source/openssl-$(OPENSSL_VERSION).tar.gz -O $(DOWNLOAD_PATH)/openssl-$(OPENSSL_VERSION).tar.gz
|
|
|
|
|
|
|
|
libs/openssl-$(OPENSSL_VERSION): $(DOWNLOAD_PATH)/openssl-$(OPENSSL_VERSION).tar.gz
|
|
|
|
# prepare
|
|
|
|
rm -r -f libs/openssl-*
|
|
|
|
tar xvf $(DOWNLOAD_PATH)/openssl-$(OPENSSL_VERSION).tar.gz
|
|
|
|
# build
|
2015-09-03 13:35:29 -04:00
|
|
|
#cd openssl-$(OPENSSL_VERSION) && ./config --prefix="`pwd`/../libs"
|
|
|
|
#cd openssl-$(OPENSSL_VERSION) && make install
|
2016-08-15 05:49:36 -04:00
|
|
|
cd openssl-$(OPENSSL_VERSION) && ./config shared
|
2015-09-03 13:35:29 -04:00
|
|
|
cd openssl-$(OPENSSL_VERSION) && make
|
2016-09-06 15:31:41 -04:00
|
|
|
# copy files
|
|
|
|
mkdir -p libs/openssl-$(OPENSSL_VERSION).tmp/include/openssl
|
|
|
|
cp openssl-$(OPENSSL_VERSION)/include/openssl/*.h libs/openssl-$(OPENSSL_VERSION).tmp/include/openssl/
|
|
|
|
mkdir -p libs/openssl-$(OPENSSL_VERSION).tmp/bin
|
|
|
|
cp openssl-$(OPENSSL_VERSION)/libeay32.dll libs/openssl-$(OPENSSL_VERSION).tmp/bin/
|
|
|
|
cp openssl-$(OPENSSL_VERSION)/ssleay32.dll libs/openssl-$(OPENSSL_VERSION).tmp/bin/
|
|
|
|
mkdir -p libs/openssl-$(OPENSSL_VERSION).tmp/lib
|
|
|
|
cp openssl-$(OPENSSL_VERSION)/libcrypto.dll.a libs/openssl-$(OPENSSL_VERSION).tmp/lib/
|
|
|
|
cp openssl-$(OPENSSL_VERSION)/libssl.dll.a libs/openssl-$(OPENSSL_VERSION).tmp/lib/
|
2015-09-03 13:35:29 -04:00
|
|
|
rm -r -f openssl-$(OPENSSL_VERSION)
|
2016-09-06 15:31:41 -04:00
|
|
|
mv libs/openssl-$(OPENSSL_VERSION).tmp libs/openssl-$(OPENSSL_VERSION)
|
|
|
|
|
|
|
|
speex: libs/speex-$(SPEEX_VERSION)
|
2015-09-03 13:35:29 -04:00
|
|
|
|
2016-09-06 15:31:41 -04:00
|
|
|
$(DOWNLOAD_PATH)/speex-$(SPEEX_VERSION).tar.gz:
|
|
|
|
wget http://downloads.xiph.org/releases/speex/speex-$(SPEEX_VERSION).tar.gz -O $(DOWNLOAD_PATH)/speex-$(SPEEX_VERSION).tar.gz
|
2015-09-03 13:35:29 -04:00
|
|
|
|
2016-09-06 15:31:41 -04:00
|
|
|
libs/speex-$(SPEEX_VERSION): $(DOWNLOAD_PATH)/speex-$(SPEEX_VERSION).tar.gz
|
|
|
|
# prepare
|
|
|
|
rm -r -f libs/speex-*
|
|
|
|
tar xvf $(DOWNLOAD_PATH)/speex-$(SPEEX_VERSION).tar.gz
|
|
|
|
# build
|
2015-09-03 13:35:29 -04:00
|
|
|
cd speex-$(SPEEX_VERSION) && ./configure
|
|
|
|
#cd speex-$(SPEEX_VERSION) && make install exec_prefix="`pwd`/../libs"
|
|
|
|
cd speex-$(SPEEX_VERSION) && make
|
2016-09-06 15:31:41 -04:00
|
|
|
# copy files
|
|
|
|
mkdir -p libs/speex-$(SPEEX_VERSION).tmp/include/speex
|
|
|
|
cp speex-$(SPEEX_VERSION)/include/speex/*.h libs/speex-$(SPEEX_VERSION).tmp/include/speex/
|
|
|
|
mkdir -p libs/speex-$(SPEEX_VERSION).tmp/lib
|
|
|
|
cp speex-$(SPEEX_VERSION)/libspeex/.libs/libspeex.a libs/speex-$(SPEEX_VERSION).tmp/lib
|
2015-09-03 13:35:29 -04:00
|
|
|
rm -r -f speex-$(SPEEX_VERSION)
|
2016-09-06 15:31:41 -04:00
|
|
|
mv libs/speex-$(SPEEX_VERSION).tmp libs/speex-$(SPEEX_VERSION)
|
|
|
|
|
|
|
|
speexdsp: libs/speexdsp-$(SPEEXDSP_VERSION)
|
2015-09-03 13:35:29 -04:00
|
|
|
|
2016-09-06 15:31:41 -04:00
|
|
|
$(DOWNLOAD_PATH)/speexdsp-$(SPEEXDSP_VERSION).tar.gz:
|
|
|
|
wget http://downloads.xiph.org/releases/speex/speexdsp-$(SPEEXDSP_VERSION).tar.gz -O $(DOWNLOAD_PATH)/speexdsp-$(SPEEXDSP_VERSION).tar.gz
|
2016-08-15 05:49:36 -04:00
|
|
|
|
2016-09-06 15:31:41 -04:00
|
|
|
libs/speexdsp-$(SPEEXDSP_VERSION): $(DOWNLOAD_PATH)/speexdsp-$(SPEEXDSP_VERSION).tar.gz
|
|
|
|
# prepare
|
|
|
|
rm -r -f libs/speexdsp-*
|
|
|
|
tar xvf $(DOWNLOAD_PATH)/speexdsp-$(SPEEXDSP_VERSION).tar.gz
|
|
|
|
# build
|
2016-08-15 05:49:36 -04:00
|
|
|
cd speexdsp-$(SPEEXDSP_VERSION) && ./configure
|
|
|
|
cd speexdsp-$(SPEEXDSP_VERSION) && make
|
2016-09-06 15:31:41 -04:00
|
|
|
# copy files
|
|
|
|
mkdir -p libs/speexdsp-$(SPEEXDSP_VERSION).tmp/include/speex
|
|
|
|
cp speexdsp-$(SPEEXDSP_VERSION)/include/speex/*.h libs/speexdsp-$(SPEEXDSP_VERSION).tmp/include/speex/
|
|
|
|
mkdir -p libs/speexdsp-$(SPEEXDSP_VERSION).tmp/lib
|
|
|
|
cp speexdsp-$(SPEEXDSP_VERSION)/libspeexdsp/.libs/libspeexdsp.a libs/speexdsp-$(SPEEXDSP_VERSION).tmp/lib
|
2016-08-15 05:49:36 -04:00
|
|
|
rm -r -f speexdsp-$(SPEEXDSP_VERSION)
|
2016-09-06 15:31:41 -04:00
|
|
|
mv libs/speexdsp-$(SPEEXDSP_VERSION).tmp libs/speexdsp-$(SPEEXDSP_VERSION)
|
2016-08-15 05:49:36 -04:00
|
|
|
|
2016-09-06 15:31:41 -04:00
|
|
|
opencv: libs/opencv-$(OPENCV_VERSION)
|
2015-09-03 13:35:29 -04:00
|
|
|
|
2016-09-06 15:31:41 -04:00
|
|
|
$(DOWNLOAD_PATH)/opencv-$(OPENCV_VERSION).tar.gz:
|
|
|
|
wget --no-check-certificate https://github.com/Itseez/opencv/archive/$(OPENCV_VERSION).tar.gz -O $(DOWNLOAD_PATH)/opencv-$(OPENCV_VERSION).tar.gz
|
|
|
|
|
|
|
|
libs/opencv-$(OPENCV_VERSION): $(DOWNLOAD_PATH)/opencv-$(OPENCV_VERSION).tar.gz
|
|
|
|
# prepare
|
|
|
|
rm -r -f libs/opencv-*
|
|
|
|
tar xvf $(DOWNLOAD_PATH)/opencv-$(OPENCV_VERSION).tar.gz
|
|
|
|
# build
|
2015-09-03 13:35:29 -04:00
|
|
|
mkdir -p opencv-$(OPENCV_VERSION)/build
|
|
|
|
#cd opencv-$(OPENCV_VERSION)/build && cmake .. -G"MSYS Makefiles" -DCMAKE_BUILD_TYPE=Release -DBUILD_PERF_TESTS=OFF -DBUILD_TESTS=OFF -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX="`pwd`/../../libs"
|
|
|
|
cd opencv-$(OPENCV_VERSION)/build && cmake .. -G"MSYS Makefiles" -DCMAKE_BUILD_TYPE=Release -DBUILD_PERF_TESTS=OFF -DBUILD_TESTS=OFF -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX="`pwd`/install"
|
|
|
|
cd opencv-$(OPENCV_VERSION)/build && make install
|
2016-09-06 15:31:41 -04:00
|
|
|
# copy files
|
|
|
|
mkdir -p libs/opencv-$(OPENCV_VERSION).tmp/include
|
|
|
|
cp -r opencv-$(OPENCV_VERSION)/build/install/include/* libs/opencv-$(OPENCV_VERSION).tmp/include/
|
|
|
|
mkdir -p libs/opencv-$(OPENCV_VERSION).tmp/lib/opencv
|
|
|
|
cp -r opencv-$(OPENCV_VERSION)/build/install/x86/mingw/staticlib/* libs/opencv-$(OPENCV_VERSION).tmp/lib/opencv/
|
2015-09-03 13:35:29 -04:00
|
|
|
rm -r -f opencv-$(OPENCV_VERSION)
|
2016-09-06 15:31:41 -04:00
|
|
|
mv libs/opencv-$(OPENCV_VERSION).tmp libs/opencv-$(OPENCV_VERSION)
|
|
|
|
|
|
|
|
libxml2: libs/libxml2-$(LIBXML2_VERSION)
|
2015-09-03 13:35:29 -04:00
|
|
|
|
2016-09-06 15:31:41 -04:00
|
|
|
$(DOWNLOAD_PATH)/libxml2-$(LIBXML2_VERSION).tar.gz:
|
|
|
|
wget ftp://xmlsoft.org/libxml2/libxml2-$(LIBXML2_VERSION).tar.gz -O $(DOWNLOAD_PATH)/libxml2-$(LIBXML2_VERSION).tar.gz
|
2015-09-03 13:35:29 -04:00
|
|
|
|
2016-09-06 15:31:41 -04:00
|
|
|
libs/libxml2-$(LIBXML2_VERSION): $(DOWNLOAD_PATH)/libxml2-$(LIBXML2_VERSION).tar.gz
|
|
|
|
# prepare
|
|
|
|
rm -r -f libs/libxml2-*
|
|
|
|
tar xvf $(DOWNLOAD_PATH)/libxml2-$(LIBXML2_VERSION).tar.gz
|
|
|
|
# build
|
2015-09-03 13:35:29 -04:00
|
|
|
cd libxml2-$(LIBXML2_VERSION) && ./configure --without-iconv -enable-shared=no
|
|
|
|
#cd libxml2-$(LIBXML2_VERSION) && make install exec_prefix="`pwd`/../libs"
|
|
|
|
cd libxml2-$(LIBXML2_VERSION) && make
|
2016-09-06 15:31:41 -04:00
|
|
|
# copy files
|
|
|
|
mkdir -p libs/libxml2-$(LIBXML2_VERSION).tmp/include/libxml
|
|
|
|
cp libxml2-$(LIBXML2_VERSION)/include/libxml/*.h libs/libxml2-$(LIBXML2_VERSION).tmp/include/libxml/
|
|
|
|
mkdir -p libs/libxml2-$(LIBXML2_VERSION).tmp/lib
|
|
|
|
cp libxml2-$(LIBXML2_VERSION)/.libs/libxml2.a libs/libxml2-$(LIBXML2_VERSION).tmp/lib/
|
|
|
|
#rm -r -f libxml2-$(LIBXML2_VERSION) # see libxslt
|
|
|
|
mv libs/libxml2-$(LIBXML2_VERSION).tmp libs/libxml2-$(LIBXML2_VERSION)
|
|
|
|
|
|
|
|
libxslt: libs/libxslt-$(LIBXSLT_VERSION)
|
|
|
|
|
|
|
|
$(DOWNLOAD_PATH)/libxslt-$(LIBXSLT_VERSION).tar.gz:
|
|
|
|
wget ftp://xmlsoft.org/libxml2/libxslt-$(LIBXSLT_VERSION).tar.gz -O $(DOWNLOAD_PATH)/libxslt-$(LIBXSLT_VERSION).tar.gz
|
|
|
|
|
|
|
|
libs/libxslt-$(LIBXSLT_VERSION): $(DOWNLOAD_PATH)/libxml2-$(LIBXML2_VERSION).tar.gz $(DOWNLOAD_PATH)/libxslt-$(LIBXSLT_VERSION).tar.gz
|
|
|
|
# prepare
|
|
|
|
rm -r -f libs/libxslt-*
|
|
|
|
tar xvf $(DOWNLOAD_PATH)/libxml2-$(LIBXML2_VERSION).tar.gz
|
|
|
|
tar xvf $(DOWNLOAD_PATH)/libxslt-$(LIBXSLT_VERSION).tar.gz
|
|
|
|
tar xvf $(MAKEFILE_PATH)libxslt-$(LIBXSLT_VERSION)-fix.tar.gz
|
|
|
|
# build
|
2015-09-03 13:35:29 -04:00
|
|
|
cd libxslt-$(LIBXSLT_VERSION) && ./configure --with-libxml-src=../libxml2-$(LIBXML2_VERSION) -enable-shared=no CFLAGS=-DLIBXML_STATIC
|
|
|
|
cd libxslt-$(LIBXSLT_VERSION) && make
|
2016-09-06 15:31:41 -04:00
|
|
|
# copy files
|
|
|
|
mkdir -p libs/libxslt-$(LIBXSLT_VERSION).tmp/include/libxslt
|
|
|
|
cp libxslt-$(LIBXSLT_VERSION)/libxslt/*.h libs/libxslt-$(LIBXSLT_VERSION).tmp/include/libxslt/
|
|
|
|
mkdir -p libs/libxslt-$(LIBXSLT_VERSION).tmp/lib
|
|
|
|
cp libxslt-$(LIBXSLT_VERSION)/libxslt/.libs/libxslt.a libs/libxslt-$(LIBXSLT_VERSION).tmp/lib/
|
|
|
|
cp libxslt-$(LIBXSLT_VERSION)/libexslt/.libs/libexslt.a libs/libxslt-$(LIBXSLT_VERSION).tmp/lib/
|
2015-09-03 13:35:29 -04:00
|
|
|
rm -r -f libxml2-$(LIBXML2_VERSION)
|
|
|
|
rm -r -f libxslt-$(LIBXSLT_VERSION)
|
2016-09-06 15:31:41 -04:00
|
|
|
mv libs/libxslt-$(LIBXSLT_VERSION).tmp libs/libxslt-$(LIBXSLT_VERSION)
|
|
|
|
|
|
|
|
curl: libs/curl-$(CURL_VERSION)
|
2015-09-03 13:35:29 -04:00
|
|
|
|
2016-09-06 15:31:41 -04:00
|
|
|
$(DOWNLOAD_PATH)/curl-$(CURL_VERSION).tar.gz:
|
|
|
|
wget --no-check-certificate http://curl.haxx.se/$(DOWNLOAD_PATH)/curl-$(CURL_VERSION).tar.gz -O $(DOWNLOAD_PATH)/curl-$(CURL_VERSION).tar.gz
|
2015-09-03 13:35:29 -04:00
|
|
|
|
2016-09-06 15:31:41 -04:00
|
|
|
libs/curl-$(CURL_VERSION): $(DOWNLOAD_PATH)/curl-$(CURL_VERSION).tar.gz
|
|
|
|
# prepare
|
|
|
|
rm -r -f libs/curl-*
|
|
|
|
tar xvf $(DOWNLOAD_PATH)/curl-$(CURL_VERSION).tar.gz
|
|
|
|
# build
|
|
|
|
cd curl-$(CURL_VERSION) && ./configure --disable-shared --with-ssl="`pwd`/../libs/openssl-$(OPENSSL_VERSION)"
|
2015-09-03 13:35:29 -04:00
|
|
|
#cd curl-$(CURL_VERSION) && make install exec_prefix="`pwd`/../libs"
|
|
|
|
cd curl-$(CURL_VERSION) && make
|
2016-09-06 15:31:41 -04:00
|
|
|
# copy files
|
|
|
|
mkdir -p libs/curl-$(CURL_VERSION).tmp/include/curl
|
|
|
|
cp curl-$(CURL_VERSION)/include/curl/*.h libs/curl-$(CURL_VERSION).tmp/include/curl/
|
|
|
|
mkdir -p libs/curl-$(CURL_VERSION).tmp/lib
|
|
|
|
cp curl-$(CURL_VERSION)/lib/.libs/libcurl.a libs/curl-$(CURL_VERSION).tmp/lib/
|
2015-09-03 13:35:29 -04:00
|
|
|
rm -r -f curl-$(CURL_VERSION)
|
2016-09-06 15:31:41 -04:00
|
|
|
mv libs/curl-$(CURL_VERSION).tmp libs/curl-$(CURL_VERSION)
|
2015-09-03 13:35:29 -04:00
|
|
|
|
2016-09-06 15:31:41 -04:00
|
|
|
sqlcipher: libs/sqlcipher-$(SQLCIPHER_VERSION)
|
2015-09-03 13:35:29 -04:00
|
|
|
|
2016-09-06 15:31:41 -04:00
|
|
|
$(DOWNLOAD_PATH)/tcl$(TCL_VERSION)-src.tar.gz:
|
|
|
|
wget http://prdownloads.sourceforge.net/tcl/tcl$(TCL_VERSION)-src.tar.gz -O $(DOWNLOAD_PATH)/tcl$(TCL_VERSION)-src.tar.gz
|
2015-09-03 13:35:29 -04:00
|
|
|
|
2016-09-06 15:31:41 -04:00
|
|
|
$(DOWNLOAD_PATH)/sqlcipher-$(SQLCIPHER_VERSION).tar.gz:
|
|
|
|
wget --no-check-certificate https://github.com/sqlcipher/sqlcipher/archive/v$(SQLCIPHER_VERSION).tar.gz -O $(DOWNLOAD_PATH)/sqlcipher-$(SQLCIPHER_VERSION).tar.gz
|
|
|
|
|
|
|
|
libs/sqlcipher-$(SQLCIPHER_VERSION): $(DOWNLOAD_PATH)/tcl$(TCL_VERSION)-src.tar.gz $(DOWNLOAD_PATH)/sqlcipher-$(SQLCIPHER_VERSION).tar.gz
|
|
|
|
# prepare
|
|
|
|
rm -r -f libs/sqlcipher-*
|
2015-09-03 13:35:29 -04:00
|
|
|
# tcl
|
2016-09-06 15:31:41 -04:00
|
|
|
tar xvf $(DOWNLOAD_PATH)/tcl$(TCL_VERSION)-src.tar.gz
|
2015-09-03 13:35:29 -04:00
|
|
|
mkdir -p tcl$(TCL_VERSION)/build
|
|
|
|
cd tcl$(TCL_VERSION)/build && ../win/configure
|
|
|
|
cd tcl$(TCL_VERSION)/build && make
|
|
|
|
#sqlcipher
|
2016-09-06 15:31:41 -04:00
|
|
|
tar xvf $(DOWNLOAD_PATH)/sqlcipher-$(SQLCIPHER_VERSION).tar.gz
|
2015-09-03 13:35:29 -04:00
|
|
|
cd sqlcipher-$(SQLCIPHER_VERSION) && ln -s ../tcl$(TCL_VERSION)/build/tclsh86.exe tclsh
|
|
|
|
mkdir -p tcl$(TCL_VERSION)/lib
|
|
|
|
ln -s `pwd`/tcl$(TCL_VERSION)/library `pwd`/tcl$(TCL_VERSION)/lib/tcl8.6
|
2016-09-06 15:31:41 -04:00
|
|
|
# build
|
|
|
|
cd sqlcipher-$(SQLCIPHER_VERSION) && PATH=.:$$PATH:`pwd`/../tcl$(TCL_VERSION)/build && LIBS="-L`pwd`/../libs/openssl-$(OPENSSL_VERSION)/lib -lgdi32 $$LIBS" && export LIBS && ./configure --disable-shared --enable-static --enable-tempstore=yes CFLAGS="-DSQLITE_HAS_CODEC -I`pwd`/../libs/openssl-$(OPENSSL_VERSION)/include -I`pwd`/../tcl$(TCL_VERSION)/generic" LDFLAGS="-L`pwd`/../libs/openssl-$(OPENSSL_VERSION)/lib -lcrypto -lgdi32" --with-tcl="`pwd`/../tcl$(TCL_VERSION)/build" && make install prefix="`pwd`/install"
|
|
|
|
# copy files
|
|
|
|
mkdir -p libs/sqlcipher-$(SQLCIPHER_VERSION).tmp/include
|
|
|
|
cp -r sqlcipher-$(SQLCIPHER_VERSION)/install/include/* libs/sqlcipher-$(SQLCIPHER_VERSION).tmp/include/
|
|
|
|
mkdir -p libs/sqlcipher-$(SQLCIPHER_VERSION).tmp/lib
|
|
|
|
cp sqlcipher-$(SQLCIPHER_VERSION)/install/lib/libsqlcipher.a libs/sqlcipher-$(SQLCIPHER_VERSION).tmp/lib/
|
|
|
|
mkdir -p libs/sqlcipher-$(SQLCIPHER_VERSION).tmp/bin
|
|
|
|
cp sqlcipher-$(SQLCIPHER_VERSION)/install/bin/sqlcipher.exe libs/sqlcipher-$(SQLCIPHER_VERSION).tmp/bin/
|
2015-09-03 13:35:29 -04:00
|
|
|
rm -r -f sqlcipher-$(SQLCIPHER_VERSION)
|
|
|
|
rm -r -f tcl$(TCL_VERSION)
|
2016-09-06 15:31:41 -04:00
|
|
|
mv libs/sqlcipher-$(SQLCIPHER_VERSION).tmp libs/sqlcipher-$(SQLCIPHER_VERSION)
|
|
|
|
|
|
|
|
libmicrohttpd: libs/libmicrohttpd-$(LIBMICROHTTPD_VERSION)
|
2015-09-03 13:35:29 -04:00
|
|
|
|
2016-09-06 15:31:41 -04:00
|
|
|
$(DOWNLOAD_PATH)/libmicrohttpd-$(LIBMICROHTTPD_VERSION).tar.gz:
|
|
|
|
wget --no-check-certificate http://ftp.gnu.org/gnu/libmicrohttpd/libmicrohttpd-$(LIBMICROHTTPD_VERSION).tar.gz -O $(DOWNLOAD_PATH)/libmicrohttpd-$(LIBMICROHTTPD_VERSION).tar.gz
|
2015-09-03 13:35:29 -04:00
|
|
|
|
2016-09-06 15:31:41 -04:00
|
|
|
libs/libmicrohttpd-$(LIBMICROHTTPD_VERSION): $(DOWNLOAD_PATH)/libmicrohttpd-$(LIBMICROHTTPD_VERSION).tar.gz
|
|
|
|
# prepare
|
|
|
|
rm -r -f libs/libmicrohttpd-*
|
|
|
|
tar xvf $(DOWNLOAD_PATH)/libmicrohttpd-$(LIBMICROHTTPD_VERSION).tar.gz
|
|
|
|
# build
|
|
|
|
cd libmicrohttpd-$(LIBMICROHTTPD_VERSION) && ./configure --disable-shared --enable-static --prefix="`pwd`/../libs/libmicrohttpd-$(LIBMICROHTTPD_VERSION).tmp"
|
2016-08-15 05:49:36 -04:00
|
|
|
cd libmicrohttpd-$(LIBMICROHTTPD_VERSION) && make install
|
2016-09-06 15:31:41 -04:00
|
|
|
# copy files
|
2015-09-03 13:35:29 -04:00
|
|
|
rm -r -f libmicrohttpd-$(LIBMICROHTTPD_VERSION)
|
2016-09-06 15:31:41 -04:00
|
|
|
mv libs/libmicrohttpd-$(LIBMICROHTTPD_VERSION).tmp libs/libmicrohttpd-$(LIBMICROHTTPD_VERSION)
|
2015-09-03 13:35:29 -04:00
|
|
|
|
2016-09-06 15:31:41 -04:00
|
|
|
ffmpeg: libs/ffmpeg-$(FFMPEG_VERSION)
|
2015-09-06 01:06:04 -04:00
|
|
|
|
2016-09-06 15:31:41 -04:00
|
|
|
$(DOWNLOAD_PATH)/ffmpeg-$(FFMPEG_VERSION).tar.gz:
|
|
|
|
wget --no-check-certificate https://ffmpeg.org/releases/ffmpeg-$(FFMPEG_VERSION).tar.gz -O $(DOWNLOAD_PATH)/ffmpeg-$(FFMPEG_VERSION).tar.gz
|
|
|
|
|
|
|
|
libs/ffmpeg-$(FFMPEG_VERSION): $(DOWNLOAD_PATH)/ffmpeg-$(FFMPEG_VERSION).tar.gz
|
|
|
|
# prepare
|
|
|
|
rm -r -f libs/ffmpeg-*
|
|
|
|
tar xvf $(DOWNLOAD_PATH)/ffmpeg-$(FFMPEG_VERSION).tar.gz
|
|
|
|
# build
|
|
|
|
cd ffmpeg-$(FFMPEG_VERSION) && ./configure --disable-shared --enable-static --disable-programs --disable-ffmpeg --disable-ffplay --disable-ffprobe --disable-ffserver --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-yasm --disable-everything --enable-encoder=mpeg4 --enable-decoder=mpeg4 --prefix="`pwd`/../libs/ffmpeg-$(FFMPEG_VERSION).tmp"
|
2016-08-15 05:49:36 -04:00
|
|
|
cd ffmpeg-$(FFMPEG_VERSION) && make install
|
2016-09-06 15:31:41 -04:00
|
|
|
# copy files
|
2015-09-06 01:06:04 -04:00
|
|
|
rm -r -f ffmpeg-$(FFMPEG_VERSION)
|
2016-09-06 15:31:41 -04:00
|
|
|
mv libs/ffmpeg-$(FFMPEG_VERSION).tmp libs/ffmpeg-$(FFMPEG_VERSION)
|
|
|
|
|
|
|
|
copylibs:
|
|
|
|
if [ "$(COPY_ANSWER)" = "" ] ; then \
|
|
|
|
read -p "Do you want to copy libs to retroshare? (y|n)" answer; \
|
|
|
|
else \
|
|
|
|
answer=$(COPY_ANSWER) ; \
|
|
|
|
fi ; \
|
|
|
|
if [ "$$answer" = "y" ] ; then \
|
|
|
|
rm -r -f $(LIBS_PATH) ; \
|
|
|
|
mkdir -p $(LIBS_PATH) ; \
|
|
|
|
cp ./libs/gcc-version $(LIBS_PATH) ; \
|
|
|
|
find ./libs -mindepth 1 -maxdepth 1 -type d -not -name "*.tmp" -print -exec cp -r {}/. $(LIBS_PATH) \; ; \
|
2015-09-03 13:35:29 -04:00
|
|
|
fi
|