2001-01-25 15:55:46 +00:00
|
|
|
# ex:ts=8
|
|
|
|
# New ports collection makefile for: dictd
|
|
|
|
# Date created: Jan 23, 2001
|
|
|
|
# Whom: Ying-Chieh Liao <ijliao@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= dictd
|
2002-06-09 18:58:48 +00:00
|
|
|
PORTVERSION= 1.7.1
|
2002-06-22 06:30:02 +00:00
|
|
|
PORTREVISION= 1
|
2002-07-19 09:14:29 +00:00
|
|
|
CATEGORIES+= net textproc
|
2002-06-09 18:58:48 +00:00
|
|
|
MASTER_SITES= ftp://ftp.dict.org/pub/dict/ \
|
|
|
|
${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= dict
|
2001-01-25 15:55:46 +00:00
|
|
|
|
2002-11-03 06:30:14 +00:00
|
|
|
MAINTAINER?= dd@FreeBSD.org
|
2001-01-25 15:55:46 +00:00
|
|
|
|
|
|
|
MAN1= dictzip.1
|
|
|
|
MAN8= dictd.8
|
|
|
|
|
2002-11-03 06:39:59 +00:00
|
|
|
USE_REINPLACE= yes
|
2002-06-09 18:58:48 +00:00
|
|
|
USE_BISON= yes
|
2001-01-25 15:55:46 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2001-08-22 17:27:22 +00:00
|
|
|
CONFIGURE_ARGS= --with-etcdir=${PREFIX}/etc --with-cflags="${CFLAGS}" \
|
|
|
|
--without-local-zlib
|
2001-01-28 19:16:41 +00:00
|
|
|
CONFIGURE_ENV= CFLAGS="${CFLAGS}"
|
2001-01-25 15:55:46 +00:00
|
|
|
USE_GMAKE= yes
|
|
|
|
|
|
|
|
ALL_TARGET= dictd dictzip
|
|
|
|
INSTALL_TARGET= install.dictd install.dictzip
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
.for i in dict.1 dictd.8
|
2002-11-03 06:39:59 +00:00
|
|
|
@${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/$i
|
2001-01-25 15:55:46 +00:00
|
|
|
.endfor
|
2001-01-30 19:17:03 +00:00
|
|
|
.for i in example.conf
|
2002-11-03 06:39:59 +00:00
|
|
|
@${REINPLACE_CMD} -e "s|/usr|${PREFIX}|g" ${WRKSRC}/$i
|
2001-01-25 15:55:46 +00:00
|
|
|
.endfor
|
2002-11-03 06:39:59 +00:00
|
|
|
@${REINPLACE_CMD} -e "s|%%CFLAGS%%|${CFLAGS}|g" ${WRKSRC}/zlib/Makefile
|
|
|
|
@${REINPLACE_CMD} -e "s|([\ \t(])T_USER|\1T_USERNAME|g" ${WRKSRC}/*.[chly]
|
2001-01-25 15:55:46 +00:00
|
|
|
|
|
|
|
post-install:
|
2001-07-10 13:54:22 +00:00
|
|
|
@${MKDIR} ${DATADIR}
|
2001-01-25 15:55:46 +00:00
|
|
|
.for i in example.conf example.dictrc example.site example2.conf example3.conf
|
2001-07-10 13:54:22 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/$i ${DATADIR}
|
2001-01-25 15:55:46 +00:00
|
|
|
.endfor
|
2001-01-30 19:17:03 +00:00
|
|
|
@${SED} "s|%%PREFIX%%|${PREFIX}|g" < ${FILESDIR}/${PORTNAME}.conf > ${PREFIX}/etc/${PORTNAME}.conf
|
|
|
|
@${SED} "s|%%PREFIX%%|${PREFIX}|g" < ${FILESDIR}/${PORTNAME}.sh > ${PREFIX}/etc/rc.d/${PORTNAME}.sh
|
|
|
|
@${CHMOD} +x ${PREFIX}/etc/rc.d/${PORTNAME}.sh
|
2001-01-25 15:55:46 +00:00
|
|
|
@${SED} "s|%%PREFIX%%|${PREFIX}|g" < ${PKGMESSAGE}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|