aboutsummaryrefslogtreecommitdiffstats
path: root/dns/c-ares/Makefile
blob: 336c663d3acb140077a550c32e6fb7c2f1d36b66 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Created by: roam@FreeBSD.org
# $FreeBSD$

PORTNAME=   c-ares
PORTVERSION=    1.11.0
CATEGORIES= dns
MASTER_SITES=   http://c-ares.haxx.se/download/ \
        http://obsd.isc.org/pub/OpenBSD/distfiles/ \
        http://mirrors.rit.edu/zi/

MAINTAINER= zi@FreeBSD.org
COMMENT=    Asynchronous DNS resolver library

LICENSE=    MIT

GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --disable-werror
INSTALL_TARGET= install-strip
SSP_UNSAFE= Refuses -l in LDFLAGS
USES=       libtool pathfix compiler:c++11-lang
USE_LDCONFIG=   yes

PROGRAMS=   acountry adig ahost

OPTIONS_DEFINE=     CONFIG_INFO DEBUG HIDE_SYMBOLS OPTIMIZED_CFLAGS
OPTIONS_DEFAULT=    CONFIG_INFO HIDE_SYMBOLS

CONFIG_INFO_DESC=   Add the ares_config_info patch
HIDE_SYMBOLS_DESC=  Hide internal library symbols
OPTIMIZED_CFLAGS_DESC=  Build with compiler optimizations

CONFLICTS=      ares-1.*

MAKE_JOBS_UNSAFE=   yes

CONFIG_INFO_EXTRA_PATCHES=  ${FILESDIR}/ares-config-info.patch
DEBUG_CONFIGURE_ENABLE= debug
HIDE_SYMBOLS_CONFIGURE_ENABLE=  symbol-hiding
OPTIMIZED_CFLAGS_CONFIGURE_ENABLE=  optimize

post-install:
    ${INSTALL_PROGRAM} ${PROGRAMS:S@^@${WRKSRC}/.libs/@} ${STAGEDIR}${PREFIX}/bin/

.include <bsd.port.mk>