freebsd-ports/dns/c-ares/Makefile
Rong-En Fan f935a609c5 - Set --mandir and --infodir in CONFIGURE_ARGS if the configure script
supports them.  This is determined by running ``configure --help'' in
  do-configure target and set the shell variable _LATE_CONFIGURE_ARGS
  which is then passed to CONFIGURE_ARGS.
- Remove --mandir and --infodir in ports' Makefile where applicable
  Few ports use REINPLACE_CMD to achieve the same effect, remove them too.
- Correct some manual pages location from PREFIX/man to MANPREFIX/man
- Define INFO_PATH where necessary
- Document that .info files are installed in a subdirectory relative to
  PREFIX/INFO_PATH and slightly change add-plist-info to use INFO_PATH and
  subdirectory detection.

PR:		ports/111470
Approved by:	portmgr
Discussed with:	stas (Mk/*), gerald (info related stuffs)
Tested by:	pointyhat exp run
2007-07-23 09:36:51 +00:00

58 lines
1.3 KiB
Makefile

# New ports collection makefile for: ares
# Date created: 8 September 2003
# Whom: roam@FreeBSD.org
#
# $FreeBSD$
#
PORTNAME= c-ares
PORTVERSION= 1.4.0
CATEGORIES= dns
MASTER_SITES= http://daniel.haxx.se/projects/c-ares/
MAINTAINER= roam@FreeBSD.org
COMMENT= An asynchronous DNS resolver library
OPTIONS= CONFIG_INFO "Add the ares_config_info patch" ON
CONFLICTS= ares-1.*
.include <bsd.port.pre.mk>
.if defined(WITH_CONFIG_INFO)
EXTRA_PATCHES+= ${FILESDIR}/ares-config-info.patch
PKGNAMESUFFIX= -config
.endif
USE_LDCONFIG= yes
SHLIB_VER= 1
MAKE_ENV= SHLIB_VER="${SHLIB_VER}"
PLIST_SUB= SHLIB_VER="${SHLIB_VER}"
GNU_CONFIGURE= yes
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --enable-shared
MAN3= ares_cancel.3 \
ares_destroy.3 \
ares_expand_name.3 ares_expand_string.3 \
ares_fds.3 \
ares_free_hostent.3 ares_free_string.3 \
ares_gethostbyaddr.3 ares_gethostbyname.3 ares_getnameinfo.3 \
ares_getsock.3 \
ares_init.3 ares_init_options.3 \
ares_mkquery.3 \
ares_parse_a_reply.3 ares_parse_aaaa_reply.3 ares_parse_ptr_reply.3 \
ares_process.3 \
ares_query.3 \
ares_search.3 \
ares_send.3 \
ares_strerror.3 \
ares_timeout.3 \
ares_version.3 \
ares_parse_ns_reply.3 \
ares_destroy_options.3 \
ares_save_options.3
.include <bsd.port.post.mk>