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
2018-05-11 19:32:42 +00:00
PKG_VERSION := 1.4.2
2018-09-06 05:42:22 +00:00
PKG_RELEASE := 2
2018-01-14 13:55:59 +00:00
PKG_LICENSE := BSD-3-Clause
PKG_LICENSE_FILES := LICENSE
PKG_MAINTAINER := David Mora <iamperson347+public@gmail.com>
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tar.gz
PKG_SOURCE_URL := https://getdnsapi.net/dist/
2018-05-11 19:32:42 +00:00
PKG_HASH := 1685b82dfe297cffc4bae08a773cdc88a3edf9a4e5a1ea27d8764bb5affc0e80
2018-01-14 13:55:59 +00:00
PKG_FIXUP := autoreconf
PKG_INSTALL := 1
PKG_CONFIG_DEPENDS := \
CONFIG_GETDNS_ENABLE_STUB_ONLY \
2018-04-17 22:10:59 +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
This package contains the getdns library ( libgetdns) .
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
# functions inet_pton, inet_ntop, strlcpy and use the builtin. This
# 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
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/
$( INSTALL_DIR) $( 1) /usr/sbin
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/bin/getdns_query $( 1) /usr/sbin/getdns_query
e n d e f
$( eval $ ( call BuildPackage ,getdns ) )