1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00
freebsd-ports/net/dictd/Makefile
Dmitry Marakasov 6f6fbe4bdf - Add LDFLAGS to CONFIGURE_ENV and MAKE_ENV (as it was done with LDFLAGS)
- Fix all ports that add {CPP,LD}FLAGS to *_ENV to modify flags instead

PR:		157936
Submitted by:	myself
Exp-runs by:	pav
Approved by:	pav
2011-09-23 22:26:39 +00:00

52 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.12.0
PORTREVISION= 1
CATEGORIES+= net textproc
MASTER_SITES= SF/dict/${PORTNAME}/${PORTNAME}-${PORTVERSION}
MAINTAINER?= clsung@FreeBSD.org
COMMENT= Dict protocol (RFC 2229) server
LIB_DEPENDS= maa.3:${PORTSDIR}/devel/libmaa
MAN1= dictzip.1
MAN8= dictd.8
USE_RC_SUBR= ${PORTNAME}
USE_BISON= build
USE_AUTOTOOLS= libtool
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-etcdir=${PREFIX}/etc --with-cflags="${CFLAGS}" \
--without-local-zlib
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
SUB_FILES+= dictd.conf 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:
@${CP} ${WRKDIR}/${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>