2018-01-14 13:55:59 +00:00
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
i n c l u d e $( TOPDIR ) / r u l e s . m k
PKG_NAME := getdns
2019-01-03 01:16:23 +00:00
PKG_VERSION := 1.5.0
PKG_RELEASE := 1
2018-01-14 13:55:59 +00:00
PKG_LICENSE := BSD-3-Clause
PKG_LICENSE_FILES := LICENSE
2018-12-30 14:50:39 +00:00
PKG_MAINTAINER := Jonathan Underwood <jonathan.underwood@gmail.com>
2018-01-14 13:55:59 +00:00
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tar.gz
PKG_SOURCE_URL := https://getdnsapi.net/dist/
2019-01-03 01:16:23 +00:00
PKG_HASH := 577182c3ace919ee70cee5629505581a10dc530bd53fe5c241603ea91c84fa84
2018-01-14 13:55:59 +00:00
PKG_FIXUP := autoreconf
PKG_INSTALL := 1
PKG_CONFIG_DEPENDS := \
CONFIG_GETDNS_ENABLE_STUB_ONLY \
2019-01-03 01:16:23 +00:00
CONFIG_GETDNS_ENABLE_IDN_LIBIDN2
2018-01-14 13:55:59 +00:00
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
d e f i n e P a c k a g e / g e t d n s / D e f a u l t
TITLE:= getdns
URL:= https://getdnsapi.net/
e n d e f
d e f i n e P a c k a g e / g e t d n s
$( call Package/getdns/Default)
SECTION:= libs
CATEGORY:= Libraries
TITLE += ( library)
2018-09-10 03:59:23 +00:00
DEPENDS += +libopenssl +!GETDNS_ENABLE_STUB_ONLY:libunbound +GETDNS_ENABLE_IDN_LIBIDN2:libidn2
2018-01-14 13:55:59 +00:00
MENU:= 1
e n d e f
d e f i n e P a c k a g e / g e t d n s / d e s c r i p t i o n
2019-01-03 01:16:23 +00:00
This package contains the getdns library ( libgetdns) .
2018-01-14 13:55:59 +00:00
This package also contains the "getdns_query" command line wrapper for getdns exposing the features of this implementation ( both in the official API and the additional API functions) .
e n d e f
d e f i n e P a c k a g e / g e t d n s / c o n f i g
source " $( SOURCE) /Config.in "
e n d e f
CONFIGURE_ARGS += \
$( if $( CONFIG_GETDNS_ENABLE_STUB_ONLY) , --enable-stub-only, ) \
2018-04-17 22:10:59 +00:00
--without-libidn \
$( if $( CONFIG_GETDNS_ENABLE_IDN_LIBIDN2) , , --without-libidn2 ) \
2018-02-22 02:04:16 +00:00
--with-ssl= " $( STAGING_DIR) /usr " \
2018-01-14 13:55:59 +00:00
2018-09-10 08:00:48 +00:00
# This will make 'configure' think that our libbsd.so is missing the
2019-01-03 01:16:23 +00:00
# functions inet_pton, inet_ntop, strlcpy and use the builtin. This
2018-09-10 08:00:48 +00:00
# removes the libbsd dependency
2018-09-10 03:59:23 +00:00
CONFIGURE_VARS += LIBBSD_LIBS = -lc
2018-01-14 13:55:59 +00:00
d e f i n e B u i l d / I n s t a l l D e v
$( INSTALL_DIR) $( 1) /usr/include/getdns/
$( CP) $( PKG_INSTALL_DIR) /usr/include/getdns/getdns*.h $( 1) /usr/include/getdns/
$( INSTALL_DIR) $( 1) /usr/lib
$( CP) $( PKG_INSTALL_DIR) /usr/lib/libgetdns*.{ a,so*} $( 1) /usr/lib/
$( INSTALL_DIR) $( 1) /usr/lib/pkgconfig
$( CP) $( PKG_INSTALL_DIR) /usr/lib/pkgconfig/getdns*.pc $( 1) /usr/lib/pkgconfig/
e n d e f
2019-01-03 01:16:23 +00:00
2018-01-14 13:55:59 +00:00
d e f i n e P a c k a g e / g e t d n s / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/lib
$( INSTALL_DATA) $( PKG_INSTALL_DIR) /usr/lib/libgetdns.so.* $( 1) /usr/lib/
2019-01-03 01:16:23 +00:00
$( INSTALL_DIR) $( 1) /usr/sbin
2018-01-14 13:55:59 +00:00
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/bin/getdns_query $( 1) /usr/sbin/getdns_query
e n d e f
$( eval $ ( call BuildPackage ,getdns ) )