|
|
@ -31,68 +31,65 @@ if [ -e config/config.mk ]; then
|
|
|
|
make distclean
|
|
|
|
make distclean
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
make config
|
|
|
|
make config # 2>/dev/null >/dev/null
|
|
|
|
|
|
|
|
|
|
|
|
build=0
|
|
|
|
|
|
|
|
if [ $PLATFORM == "linux" -a "$linux" == "true" ]; then build=1; fi
|
|
|
|
|
|
|
|
if [ $PLATFORM == "macosx" -a "$macosx" == "true" ]; then build=1; fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
##
|
|
|
|
|
|
|
|
# decide what to do about libcurl and libssh
|
|
|
|
|
|
|
|
export withcurl=''
|
|
|
|
|
|
|
|
export withssh=''
|
|
|
|
|
|
|
|
if grep -q curl ./configure ; then
|
|
|
|
|
|
|
|
if [ "$curl" == "true" ]; then withcurl=--with-curl ; else withcurl=--without-curl; fi
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
if grep -q ssh ./configure ; then
|
|
|
|
|
|
|
|
if [ "$ssh" == "true" ]; then withssh=--with-ssh ; else withssh=--without-ssh ; fi
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
if [ "$PLATFORM" == "cygwin" ]; then
|
|
|
|
if [ "$PLATFORM" == "cygwin" ]; then
|
|
|
|
# export LIBS=-lintl
|
|
|
|
|
|
|
|
# I've given up:
|
|
|
|
|
|
|
|
# 1 trying to get Cygwin to build with gettext and friends
|
|
|
|
|
|
|
|
# 2 trying to get Cygwin to install into a local directory
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ "$label" == "MSVC" ] ; then
|
|
|
|
if [ "$label" == "MSVC" ] ; then
|
|
|
|
##
|
|
|
|
if [ "$msvc" == "true" ]; then
|
|
|
|
# Invoke MSVC build
|
|
|
|
##
|
|
|
|
export ACTION=/rebuild
|
|
|
|
# Invoke MSVC build
|
|
|
|
export BuildEnv=native
|
|
|
|
|
|
|
|
export Builder=2005
|
|
|
|
|
|
|
|
export COMPILER=G++
|
|
|
|
|
|
|
|
export debug=false
|
|
|
|
|
|
|
|
export dll=true
|
|
|
|
|
|
|
|
export expat=true
|
|
|
|
|
|
|
|
export libssh=false
|
|
|
|
|
|
|
|
export Linux=true
|
|
|
|
|
|
|
|
export MSVC=true
|
|
|
|
|
|
|
|
export openssl=false
|
|
|
|
|
|
|
|
export release=true
|
|
|
|
|
|
|
|
export static=false
|
|
|
|
|
|
|
|
export teste=false
|
|
|
|
|
|
|
|
export testr=false
|
|
|
|
|
|
|
|
export tests=true
|
|
|
|
|
|
|
|
export testv=false
|
|
|
|
|
|
|
|
export Win32=false
|
|
|
|
|
|
|
|
export x64=true
|
|
|
|
|
|
|
|
export zlib=true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
rm -rf $PWD/bin
|
|
|
|
rm -rf $PWD/bin
|
|
|
|
mkdir $PWD/bind
|
|
|
|
mkdir $PWD/bin
|
|
|
|
|
|
|
|
|
|
|
|
PATH=$PATH:/cygdrive/c/Windows/System32
|
|
|
|
PATH=$PATH:/cygdrive/c/Windows/System32
|
|
|
|
cmd.exe /c "cd $(cygpath -aw .) && call jenkins_build.bat"
|
|
|
|
cmd.exe /c "cd $(cygpath -aw .) && call jenkins_build.bat"
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
echo "*** msvc build not requested ***"
|
|
|
|
|
|
|
|
fi
|
|
|
|
exit $?
|
|
|
|
exit $?
|
|
|
|
else
|
|
|
|
else
|
|
|
|
./configure --disable-nls
|
|
|
|
# export LIBS=-lintl
|
|
|
|
|
|
|
|
# I've given up:
|
|
|
|
|
|
|
|
# 1. trying to get Cygwin to build with gettext and friends
|
|
|
|
|
|
|
|
# 2. trying to get Cygwin to install into a local directory
|
|
|
|
|
|
|
|
./configure --disable-nls $withcurl $withssh
|
|
|
|
make
|
|
|
|
make
|
|
|
|
make install
|
|
|
|
make install
|
|
|
|
make samples
|
|
|
|
make samples
|
|
|
|
make tests
|
|
|
|
if [ "$tests" == true ]; then
|
|
|
|
|
|
|
|
make tests
|
|
|
|
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
if [ "$build" == "1" ]; then
|
|
|
|
build=0
|
|
|
|
./configure --prefix=$PWD/usr
|
|
|
|
if [ $PLATFORM == "linux" -a "$linux" == "true" ]; then build=1; fi
|
|
|
|
|
|
|
|
if [ $PLATFORM == "macosx" -a "$macosx" == "true" ]; then build=1; fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ $build == 1 ]; then
|
|
|
|
|
|
|
|
echo -------------
|
|
|
|
|
|
|
|
echo ./configure --prefix=$PWD/usr $withcurl $withssh
|
|
|
|
|
|
|
|
echo -------------
|
|
|
|
|
|
|
|
./configure --prefix=$PWD/usr $withcurl $withssh
|
|
|
|
make "LDFLAGS=-L${PWD}/usr/lib -L${PWD}/xmpsdk/src/.libs"
|
|
|
|
make "LDFLAGS=-L${PWD}/usr/lib -L${PWD}/xmpsdk/src/.libs"
|
|
|
|
make install
|
|
|
|
make install
|
|
|
|
make samples CXXFLAGS=-I${PWD}/usr/include "LDFLAGS=-L${PWD}/usr/lib -L${PWD}/xmpsdk/src/.libs -lexiv2"
|
|
|
|
make samples "CXXFLAGS=-I${PWD}/usr/include -I${PWD}/src" "LDFLAGS=-L${PWD}/usr/lib -L${PWD}/xmpsdk/src/.libs -lexiv2"
|
|
|
|
if [ "$tests" == true ]; then
|
|
|
|
if [ "$tests" == true ]; then
|
|
|
|
make tests
|
|
|
|
make tests
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# That's all Folks!
|
|
|
|
# That's all Folks!
|
|
|
|
##
|
|
|
|
##
|
|
|
|