aboutsummaryrefslogtreecommitdiff
path: root/net/howl/Makefile
blob: 5ad80ec1e4255b62c1449395d6c67d747f5465a9 (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
# New ports collection makefile for:	howl
# Date created:			21 July 2003
# Whom:				David Magda <dmagda+howl@ee.ryerson.ca>
# $FreeBSD$
#

PORTNAME=	howl
PORTVERSION=	1.0.0
CATEGORIES?=	net devel
MASTER_SITES=	http://www.porchdogsoft.com/download/

MAINTAINER=	marcus@FreeBSD.org
COMMENT=	Zeroconf/Bonjour(tm) implementation

USE_GMAKE=	yes
USE_GNOME=	gnometarget pkgconfig
USE_GETOPT_LONG=yes
USE_AUTOTOOLS=	libtool:15
USE_RC_SUBR=	yes
CPPFLAGS+=	${PTHREAD_CFLAGS}
LDFLAGS+=	${PTHREAD_LIBS}
USE_REINPLACE=	yes

INSTALLS_SHLIB=	yes
MAN8=		mDNSResponder.8

PLIST_SUB=	VERSION="${PORTVERSION}"
RC_SCRIPTS_SUB=	RC_SUBR=${RC_SUBR} PREFIX=${PREFIX}

CONFIGURE_ENV+=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${PTHREAD_LIBS}"

post-extract:
	@${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
		${FILESDIR}/mdnsresponder.sh > ${WRKSRC}/mdnsresponder.sh

post-patch:
	@${REINPLACE_CMD} -e 's|-pthread||g' ${WRKSRC}/configure

post-install:
	${INSTALL_SCRIPT} ${WRKSRC}/mdnsresponder.sh \
		${PREFIX}/etc/rc.d/mdnsresponder.sh

.include <bsd.port.mk>