2017-08-09 23:09:14 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://www.nlnetlabs.nl/projects/ldns/
|
2015-06-13 01:03:31 +02:00
|
|
|
TERMUX_PKG_DESCRIPTION="Library for simplifying DNS programming and supporting recent and experimental RFCs"
|
2019-01-21 13:53:58 +01:00
|
|
|
TERMUX_PKG_LICENSE="BSD 3-Clause"
|
2020-12-20 14:16:34 +01:00
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
2022-02-23 21:25:01 +01:00
|
|
|
TERMUX_PKG_VERSION=1.8.1
|
2017-08-09 23:09:14 +02:00
|
|
|
TERMUX_PKG_SRCURL=https://www.nlnetlabs.nl/downloads/ldns/ldns-${TERMUX_PKG_VERSION}.tar.gz
|
2022-02-23 21:25:01 +01:00
|
|
|
TERMUX_PKG_SHA256=958229abce4d3aaa19a75c0d127666564b17216902186e952ca4aef47c6d7fa3
|
2022-02-19 10:46:52 +01:00
|
|
|
TERMUX_PKG_REVISION=1
|
|
|
|
TERMUX_PKG_DEPENDS="openssl-1.1"
|
2019-07-20 10:42:33 +02:00
|
|
|
TERMUX_PKG_BREAKS="ldns-dev"
|
|
|
|
TERMUX_PKG_REPLACES="ldns-dev"
|
2019-08-12 17:28:41 +02:00
|
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
2019-07-20 10:42:33 +02:00
|
|
|
|
2017-01-29 17:41:33 +01:00
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
|
|
|
--with-ssl=$TERMUX_PREFIX
|
2018-09-11 22:43:19 +02:00
|
|
|
--disable-gost
|
2020-10-09 12:40:43 +02:00
|
|
|
--with-drill
|
2017-01-29 17:41:33 +01:00
|
|
|
"
|
2017-03-23 12:16:58 +01:00
|
|
|
|
2022-02-19 10:46:52 +01:00
|
|
|
termux_step_pre_configure() {
|
|
|
|
CFLAGS="-I$TERMUX_PREFIX/include/openssl-1.1 $CFLAGS"
|
|
|
|
CPPFLAGS="-I$TERMUX_PREFIX/include/openssl-1.1 $CPPFLAGS"
|
|
|
|
CXXFLAGS="-I$TERMUX_PREFIX/include/openssl-1.1 $CXXFLAGS"
|
|
|
|
LDFLAGS="-L$TERMUX_PREFIX/lib/openssl-1.1 -Wl,-rpath=$TERMUX_PREFIX/lib/openssl-1.1 $LDFLAGS"
|
|
|
|
|
|
|
|
autoreconf -fi
|
|
|
|
}
|
|
|
|
|
2017-03-23 12:16:58 +01:00
|
|
|
termux_step_post_make_install() {
|
|
|
|
# The ldns build doesn't install its pkg-config:
|
|
|
|
mkdir -p $TERMUX_PREFIX/lib/pkgconfig
|
|
|
|
cp packaging/libldns.pc $TERMUX_PREFIX/lib/pkgconfig/libldns.pc
|
|
|
|
}
|
2022-02-19 10:46:52 +01:00
|
|
|
|
|
|
|
|