1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-13 03:03:15 +00:00
freebsd-ports/net/dictd/Makefile
Ade Lovett dbd39ca660 Migration from bison 1.x to 2.x
PR:		117086
Tested by:	-exp runs
2007-10-17 10:13:01 +00:00

51 lines
1.3 KiB
Makefile

# ex:ts=8
# New ports collection makefile for: dictd
# Date created: Jan 23, 2001
# Whom: Ying-Chieh Liao <ijliao@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= dictd
PORTVERSION= 1.10.9
PORTREVISION= 1
CATEGORIES+= net textproc
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= dict
MAINTAINER?= clsung@FreeBSD.org
COMMENT= Dict protocol (RFC 2229) server
MAN1= dictzip.1
MAN8= dictd.8
USE_RC_SUBR= ${PORTNAME}.sh
USE_BISON= build
USE_AUTOTOOLS= libtool:15
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-etcdir=${PREFIX}/etc --with-cflags="${CFLAGS}" \
--without-local-zlib
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
SUB_FILES+= pkg-message
SUB_LIST+= PORTSDIR=${PORTSDIR}
USE_GMAKE= yes
ALL_TARGET= dictd dictzip
INSTALL_TARGET= install.dictd install.dictzip
post-patch:
.for i in Makefile.in dict.1.in dictd.8.in
@${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/$i
.endfor
@${REINPLACE_CMD} -e "s|\([\ \t(]\)T_USER|\1T_USERNAME|g" ${WRKSRC}/*.[chly]
post-install:
@${SED} "s|%%PREFIX%%|${PREFIX}|g" < ${FILESDIR}/${PORTNAME}.conf > ${PREFIX}/etc/${PORTNAME}.conf.sample
@[ -f ${PREFIX}/etc/${PORTNAME}.conf ] || ${CP} ${PREFIX}/etc/${PORTNAME}.conf.sample ${PREFIX}/etc/${PORTNAME}.conf
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>