From 0b69e93928b32148a0f7e79d5e3bc7d43d4cba2b Mon Sep 17 00:00:00 2001 From: swalker Date: Wed, 13 Jul 2011 05:33:58 +0000 Subject: [PATCH] [packages] ldns: add the ldns library (#9374), thanks Cybjit git-svn-id: svn://svn.openwrt.org/openwrt/packages@27602 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- libs/ldns/Makefile | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 libs/ldns/Makefile diff --git a/libs/ldns/Makefile b/libs/ldns/Makefile new file mode 100644 index 000000000..6facbc4fe --- /dev/null +++ b/libs/ldns/Makefile @@ -0,0 +1,48 @@ +# +# Copyright (C) 2011 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=ldns +PKG_VERSION:=1.6.10 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=http://www.nlnetlabs.nl/downloads/ldns +PKG_MD5SUM:=fadf8e38fbd2d3434a2c46097d9932d5 + +PKG_FIXUP:=libtool +PKG_INSTALL:=1 +PKG_LIBTOOL_PATHS:= ./libtool + +include $(INCLUDE_DIR)/package.mk + +define Package/libldns + SECTION:=libs + CATEGORY:=Libraries + TITLE:=A library to simplify DNS programming + URL:=http://www.nlnetlabs.nl/projects/ldns/ + DEPENDS:=+libopenssl +endef + +CONFIGURE_ARGS += \ + --disable-gost \ + --with-ssl="$(STAGING_DIR)/usr" + +define Build/InstallDev + $(INSTALL_DIR) $(1)/usr/include/ldns + $(CP) $(PKG_INSTALL_DIR)/usr/include/ldns/*.h $(1)/usr/include/ldns/ + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libldns.{so*,a,la} $(1)/usr/lib/ +endef + +define Package/libldns/install + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libldns.so.* $(1)/usr/lib/ +endef + +$(eval $(call BuildPackage,libldns)) -- 2.11.0