1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-02 01:20:54 +00:00
freebsd-ports/dns/c-ares/Makefile
Tijl Coosemans c8711e099a dns/c-ares:
- Add USES=libtool and bump dependent ports
- Move variable definitions in front of include bsd.port.options.mk
- Replace patch with USES=pathfix

Approved by:	portmgr (implicit, bump unstaged port)
2014-08-28 10:21:31 +00:00

66 lines
1.4 KiB
Makefile

# Created by: roam@FreeBSD.org
# $FreeBSD$
PORTNAME= c-ares
PORTVERSION= 1.10.0
PORTREVISION= 1
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
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
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MCONFIG_INFO}
EXTRA_PATCHES+= ${FILESDIR}/ares-config-info.patch
PKGNAMESUFFIX= -config
.endif
.if ${PORT_OPTIONS:MDEBUG}
CONFIGURE_ARGS+=--enable-debug
.else
CONFIGURE_ARGS+=--disable-debug
.endif
.if ${PORT_OPTIONS:MHIDE_SYMBOLS}
CONFIGURE_ARGS+=--enable-symbol-hiding
.else
CONFIGURE_ARGS+=--disable-symbol-hiding
.endif
.if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS}
CONFIGURE_ARGS+=--enable-optimize
.else
CONFIGURE_ARGS+=--disable-optimize
.endif
post-install:
${INSTALL_PROGRAM} ${PROGRAMS:S@^@${WRKSRC}/.libs/@} ${STAGEDIR}${PREFIX}/bin/
.include <bsd.port.mk>