[packages] ldns: add the ldns library (#9374), thanks Cybjit
[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.10
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:=fadf8e38fbd2d3434a2c46097d9932d5
17
18 PKG_FIXUP:=libtool
19 PKG_INSTALL:=1
20 PKG_LIBTOOL_PATHS:= ./libtool
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/libldns
25 SECTION:=libs
26 CATEGORY:=Libraries
27 TITLE:=A library to simplify DNS programming
28 URL:=http://www.nlnetlabs.nl/projects/ldns/
29 DEPENDS:=+libopenssl
30 endef
31
32 CONFIGURE_ARGS += \
33 --disable-gost \
34 --with-ssl="$(STAGING_DIR)/usr"
35
36 define Build/InstallDev
37 $(INSTALL_DIR) $(1)/usr/include/ldns
38 $(CP) $(PKG_INSTALL_DIR)/usr/include/ldns/*.h $(1)/usr/include/ldns/
39 $(INSTALL_DIR) $(1)/usr/lib
40 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libldns.{so*,a,la} $(1)/usr/lib/
41 endef
42
43 define Package/libldns/install
44 $(INSTALL_DIR) $(1)/usr/lib
45 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libldns.so.* $(1)/usr/lib/
46 endef
47
48 $(eval $(call BuildPackage,libldns))