board/csky: fixup gdb instructions in readme.txt
[buildroot-gz.git] / package / s6-dns / s6-dns.mk
blobd77956fa2905b8ef83ef75a9b9c93888344c2f4e
1 ################################################################################
3 # s6-dns
5 ################################################################################
7 S6_DNS_VERSION = 2.1.0.0
8 S6_DNS_SITE = http://skarnet.org/software/s6-dns
9 S6_DNS_LICENSE = ISC
10 S6_DNS_LICENSE_FILES = COPYING
11 S6_DNS_INSTALL_STAGING = YES
12 S6_DNS_DEPENDENCIES = skalibs
14 S6_DNS_CONF_OPTS = \
15 --prefix=/usr \
16 --with-sysdeps=$(STAGING_DIR)/usr/lib/skalibs/sysdeps \
17 --with-include=$(STAGING_DIR)/usr/include \
18 --with-dynlib=$(STAGING_DIR)/usr/lib \
19 --with-lib=$(STAGING_DIR)/usr/lib/skalibs \
20 $(if $(BR2_STATIC_LIBS),,--disable-allstatic) \
21 $(SHARED_STATIC_LIBS_OPTS)
23 define S6_DNS_CONFIGURE_CMDS
24 (cd $(@D); $(TARGET_CONFIGURE_OPTS) ./configure $(S6_DNS_CONF_OPTS))
25 endef
27 define S6_DNS_BUILD_CMDS
28 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
29 endef
31 define S6_DNS_REMOVE_STATIC_LIB_DIR
32 rm -rf $(TARGET_DIR)/usr/lib/s6-dns
33 endef
35 S6_DNS_POST_INSTALL_TARGET_HOOKS += S6_DNS_REMOVE_STATIC_LIB_DIR
37 define S6_DNS_INSTALL_TARGET_CMDS
38 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install
39 endef
41 define S6_DNS_INSTALL_STAGING_CMDS
42 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(STAGING_DIR) install
43 endef
45 $(eval $(generic-package))