packages/ldns: update to 1.6.11 (closes: #10308)
[openwrt/svn-archive/archive.git] / libs / ldns / Makefile
1 #
2 # Copyright (C) 2011 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=ldns
11 PKG_VERSION:=1.6.11
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.nlnetlabs.nl/downloads/ldns
16 PKG_MD5SUM:=c55b592a679672281712c457fbb41eb5
17
18 PKG_FIXUP:=libtool
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/libldns
24 SECTION:=libs
25 CATEGORY:=Libraries
26 TITLE:=A library to simplify DNS programming
27 URL:=http://www.nlnetlabs.nl/projects/ldns/
28 DEPENDS:=+libopenssl
29 endef
30
31 CONFIGURE_ARGS += \
32 --disable-gost \
33 --with-ssl="$(STAGING_DIR)/usr"
34
35 define Build/InstallDev
36 $(INSTALL_DIR) $(1)/usr/include
37 $(CP) $(PKG_INSTALL_DIR)/usr/include/ldns $(1)/usr/include/
38 $(INSTALL_DIR) $(1)/usr/lib
39 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libldns.{a,so*} $(1)/usr/lib/
40 endef
41
42 define Package/libldns/install
43 $(INSTALL_DIR) $(1)/usr/lib
44 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libldns.so.* $(1)/usr/lib/
45 endef
46
47 $(eval $(call BuildPackage,libldns))