2015-04-27 12:02:16 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2018-10-10 22:29:06 +00:00
|
|
|
error() {
|
|
|
|
echo "$@" >&2
|
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
|
2015-04-27 12:02:16 +00:00
|
|
|
ldns=$(dirname $(realpath $0))
|
|
|
|
cd $ldns
|
|
|
|
|
2018-10-10 22:29:06 +00:00
|
|
|
# Run autotools before we drop LOCALBASE out of PATH
|
2023-05-24 15:50:18 +00:00
|
|
|
libtoolize --copy && autoheader && autoconf
|
2018-10-10 22:29:06 +00:00
|
|
|
|
|
|
|
# Ensure we use the correct toolchain and clean our environment
|
|
|
|
export CC=$(echo ".include <bsd.lib.mk>" | make -f /dev/stdin -VCC)
|
|
|
|
export CPP=$(echo ".include <bsd.lib.mk>" | make -f /dev/stdin -VCPP)
|
|
|
|
unset CFLAGS CPPFLAGS LDFLAGS LD_LIBRARY_PATH LIBS
|
|
|
|
export PATH=/bin:/sbin:/usr/bin:/usr/sbin
|
|
|
|
|
2023-05-24 15:50:18 +00:00
|
|
|
./configure --prefix= --exec-prefix=/usr --with-drill --with-ssl
|