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
|
|
|
|
(cd $ldns && libtoolize --copy && autoheader && autoconf)
|
|
|
|
(cd $ldns/drill && aclocal && autoheader && autoconf)
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
cd $ldns
|
2018-10-11 08:14:31 +00:00
|
|
|
./configure --prefix= --exec-prefix=/usr
|
2015-04-27 12:02:16 +00:00
|
|
|
|
|
|
|
cd $ldns/drill
|
|
|
|
./configure --prefix= --exec-prefix=/usr
|