mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-18 17:30:35 +08:00
c4d48f9089
* limit windows dep libs to windows * fixing configure patch * fixing detect-openssl.patch * adapting portfile to linux * adding a linux-specific build sh * add missing endif() * bumping version * adding extra check for windows environment
24 lines
512 B
Bash
24 lines
512 B
Bash
#!/usr/bin/bash
|
|
set -e
|
|
export PATH=/usr/bin:$PATH
|
|
# Export HTTP(S)_PROXY as http(s)_proxy:
|
|
if [ "$HTTP_PROXY" ]; then
|
|
export http_proxy=$HTTP_PROXY
|
|
fi
|
|
if [ "$HTTPS_PROXY" ]; then
|
|
export https_proxy=$HTTPS_PROXY
|
|
fi
|
|
|
|
PATH_TO_BUILD_DIR=$1
|
|
PATH_TO_SRC_DIR=$2
|
|
PATH_TO_PACKAGE_DIR=$3
|
|
# Note: $4 is extra configure options
|
|
|
|
cd "$PATH_TO_BUILD_DIR"
|
|
echo "=== CONFIGURING ==="
|
|
"$PATH_TO_SRC_DIR/configure" "--prefix=$PATH_TO_PACKAGE_DIR" $4
|
|
echo "=== BUILDING ==="
|
|
make -j6
|
|
echo "=== INSTALLING ==="
|
|
make install
|