2004-03-28 23:43:26 +02:00
|
|
|
# $NetBSD: Makefile,v 1.10 2004/03/28 21:43:26 jmmv Exp $
|
1999-07-28 18:17:19 +02:00
|
|
|
|
2002-10-11 02:47:28 +02:00
|
|
|
DISTNAME= dictd-1.8.0
|
|
|
|
PKGNAME= dict-server-1.8.0
|
2004-03-28 23:43:26 +02:00
|
|
|
PKGREVISION= 2
|
1999-07-28 18:17:19 +02:00
|
|
|
CATEGORIES= textproc
|
2002-10-11 02:47:28 +02:00
|
|
|
MASTER_SITES= ftp://ftp.dict.org/pub/dict/
|
|
|
|
#MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=/dict}
|
1999-07-28 18:17:19 +02:00
|
|
|
|
|
|
|
MAINTAINER= mike@ethmoid.org
|
|
|
|
HOMEPAGE= http://www.dict.org/
|
2001-02-17 18:31:58 +01:00
|
|
|
COMMENT= Dictionary Service Protocol server
|
1999-07-28 18:17:19 +02:00
|
|
|
|
2002-10-11 02:47:28 +02:00
|
|
|
USE_BUILDLINK2= # defined
|
2004-01-24 16:06:57 +01:00
|
|
|
USE_GNU_TOOLS+= make
|
2004-03-28 23:43:26 +02:00
|
|
|
USE_PKGINSTALL= yes
|
2002-10-11 02:47:28 +02:00
|
|
|
GNU_CONFIGURE= # defined
|
2004-03-28 23:43:26 +02:00
|
|
|
CONFIGURE_ARGS+=--with-etcdir=${PKG_SYSCONFDIR}
|
1999-07-28 18:17:19 +02:00
|
|
|
|
|
|
|
ALL_TARGET= dictd dictzip
|
2002-10-11 02:47:28 +02:00
|
|
|
INSTALL_TARGET= install.dictd install.dictzip install.dictfmt
|
1999-07-28 18:17:19 +02:00
|
|
|
|
2004-03-28 23:43:26 +02:00
|
|
|
EGDIR= ${PREFIX}/share/examples/dict-server
|
|
|
|
CONF_FILES= ${EGDIR}/dictd.conf \
|
|
|
|
${PKG_SYSCONFDIR}/dictd.conf
|
|
|
|
|
2002-10-11 02:47:28 +02:00
|
|
|
# A symbol T_USER is defined in trap.h so...
|
|
|
|
post-patch:
|
|
|
|
${GREP} -lr T_USER ${WRKSRC} | \
|
|
|
|
while read f; do \
|
|
|
|
${MV} $$f $${f}.orig; \
|
|
|
|
${SED} \
|
|
|
|
-e 's/T_USER/T_XUSER/g' \
|
|
|
|
-e 's/DICT_XUSER/DICT_USER/g' \
|
|
|
|
$${f}.orig >$$f; \
|
|
|
|
done
|
|
|
|
|
1999-07-28 18:17:19 +02:00
|
|
|
post-install:
|
2004-03-28 23:43:26 +02:00
|
|
|
${INSTALL_DATA_DIR} ${EGDIR}
|
1999-07-28 18:17:19 +02:00
|
|
|
${SED} "s#/usr/lib/dict#${PREFIX}/share/dictd#" \
|
2004-03-28 23:43:26 +02:00
|
|
|
${WRKSRC}/dictd.conf >${EGDIR}/dictd.conf
|
2001-02-25 05:17:35 +01:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/dictd
|
1999-07-28 18:17:19 +02:00
|
|
|
|
2002-10-11 02:47:28 +02:00
|
|
|
.include "../../devel/libtool/buildlink2.mk"
|
1999-07-28 18:17:19 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|