mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-19 23:01:03 +08:00
9ba7210922
* [nmap] Integration of nmap netwotk utilities(#5530) * [nmap] adding openssl and openssh2 support * [nmap] Integration of nmap netwotk utilities(#5530) * [nmap] correction of the DIR option with-openssl and with-openssh
25 lines
633 B
Bash
25 lines
633 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="`cygpath "$1"`"
|
|
PATH_TO_SRC_DIR="`cygpath "$2"`"
|
|
PATH_TO_PACKAGE_DIR="`cygpath "$3"`"
|
|
# Note: $4 is extra configure options
|
|
|
|
cd "$PATH_TO_BUILD_DIR"
|
|
echo "=== CONFIGURING ==="
|
|
echo "building nmap package $PATH_TO_SRC_DIR"
|
|
"$PATH_TO_SRC_DIR/configure" CC=cl.exe LD=link.exe CXX=lc.exe "--prefix=$PATH_TO_PACKAGE_DIR" $4
|
|
echo "=== BUILDING ==="
|
|
make -j6
|
|
echo "=== INSTALLING ==="
|
|
make install
|