|
root / devel / cmake / build.sh
build.sh Bash 19 lines 395 B
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
#!/bin/bash
# Build script for cmake

set -e
cd "$SRCDIR"

export PATH="/usr/gnu/bin:$PATH"

# CMake uses its own bootstrap script
# Note: --system-curl removed due to curl 8.x header incompatibility on illumos
# (CURL_NETRC_* defined as long instead of enum)
./bootstrap \
    --prefix=$PREFIX \
    --system-zlib \
    --parallel=${JOBS:-1}

gmake -j${JOBS:-1}
gmake install DESTDIR="$PKGDIR"