forked from alisw/alidist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gsoap.sh
30 lines (29 loc) · 905 Bytes
/
gsoap.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package: gSOAP
version: "%(tag_basename)s"
tag: alice/v2.7.13
source: https://github.com/alisw/gsoap.git
build_requires:
- autotools
- "OpenSSL:(?!osx)"
- "osx-system-openssl:(osx.*)"
- "GCC-Toolchain:(?!osx)"
---
#!/bin/bash -e
rsync -a --exclude='**/.git' --delete --delete-excluded \
$SOURCEDIR/ ./
# On mac we use openssl coming from homebrew.
case $ARCHITECTURE in
osx*)
[ ! "X$OPENSSL_ROOT" = X ] || OPENSSL_ROOT=`brew --prefix openssl`
;;
esac
export CFLAGS="$CFLAGS ${OPENSSL_ROOT:+-I$OPENSSL_ROOT/include -L$OPENSSL_ROOT/lib} ${ZLIB_ROOT:+-I$ZLIB_ROOT/include -L$ZLIB_ROOT/lib}"
export CXXFLAGS="$CFLAGS"
export CPPFLAGS="$CFLAGS"
autoreconf -ivf
./configure --prefix=$INSTALLROOT \
--enable-ssl \
${OPENSSL_ROOT:+--with-openssl=$OPENSSL_ROOT}
# Does not build in multicore!
make
make install