freebsd-ports/dns/nss_mdns/Makefile
Jeremy Messenger 789d75c728 -Repocopy devel/libtool15 -> libtool22 and libltdl15 -> libltdl22.
-Update libtool and libltdl to 2.2.6a.
-Remove devel/libtool15 and devel/libltdl15.
-Fix ports build with libtool22/libltdl22.
-Bump ports that depend on libltdl22 due to shared library version change.
-Explain what to do update in the UPDATING.

It has been tested with GNOME2, XFCE4, KDE3, KDE4 and other many wm/desktop
and applications in the runtime.

With help:	marcus and kwm
Pointyhat-exp:	a few times by pav
Tested by:	pgollucci, "Romain Tartière" <romain@blogreen.org>, and
		a few MarcusCom CVS users. Also, I might have missed a few.
Repocopy by:	marcus
Approved by:	portmgr
2009-08-02 19:36:34 +00:00

68 lines
1.9 KiB
Makefile

# New ports collection makefile for: nss_mdns
# Date Created: Jan 19 2007
# Whom: Bruce M. Simpson <bms@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= nss_mdns
PORTVERSION= 0.10
PORTREVISION= 1
CATEGORIES= dns ipv6
MASTER_SITES= http://0pointer.de/lennart/projects/nss-mdns/
DISTNAME= nss-mdns-${PORTVERSION}
MAINTAINER= wahjava@gmail.com
COMMENT= NSS module implementing multicast DNS name resolution
USE_AUTOTOOLS= autoconf:262 automake:19 libtool:22
USE_GMAKE= yes
USE_LDCONFIG= yes
LIB_DEPENDS+= avahi-client:${PORTSDIR}/net/avahi-app
OPTIONS= \
SEARCH_DOMAINS "Honour search domains in resolv.conf" Off
CONFIGURE_ARGS+= \
--sysconfdir=/etc \
--localstatedir=/var \
--disable-static \
--enable-shared \
--enable-avahi \
--disable-legacy \
--disable-lynx
INSTALLED_MODULES=nss_mdns nss_mdns_minimal
#
# libtool is used, therefore we must perform a GNU make based install,
# followed by removal of build rubble; we must create our own .so symlinks;
# we do this from the do-install target so as to avoid causing any
# problems if we are later packaged.
#
do-install:
@( cd ${INSTALL_WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET} )
.for INSTALLED_MODULE in ${INSTALLED_MODULES}
( cd ${PREFIX}/lib ; ${LN} -s ${INSTALLED_MODULE}.so.1 ${INSTALLED_MODULE}.so )
${RM} ${PREFIX}/lib/${INSTALLED_MODULE}.a ${PREFIX}/lib/${INSTALLED_MODULE}.la
.endfor
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}/
${INSTALL_DATA} ${INSTALL_WRKSRC}/doc/README ${DOCSDIR}
${INSTALL_DATA} ${INSTALL_WRKSRC}/doc/README.html ${DOCSDIR}
.endif
# TODO: Print a message about the etc directory used for mdns.allow
# being relative to ${PREFIX}.
PLIST_FILES= ${INSTALLED_MODULES:C/^/lib\//:C/$/.so/} ${INSTALLED_MODULES:C/^/lib\//:C/$/.so.1/}
PORTDOCS= README README.html
.include <bsd.port.pre.mk>
.if defined(WITH_SEARCH_DOMAINS)
CONFIGURE_ARGS+= --enable-search-domains
.endif
.include <bsd.port.post.mk>