blob: a6e67a02d27a888b7d2d589aa1fe5fef517c2b29 (
plain)
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
44
45
|
# $NetBSD: Makefile,v 1.11 2004/05/04 23:46:36 snj Exp $
DISTNAME= dictd-1.8.0
PKGNAME= dict-server-1.8.0
PKGREVISION= 2
CATEGORIES= textproc
MASTER_SITES= ftp://ftp.dict.org/pub/dict/
#MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=/dict}
MAINTAINER= mike@ethmoid.org
HOMEPAGE= http://www.dict.org/
COMMENT= Dictionary Service Protocol server
USE_BUILDLINK3= yes
USE_GNU_TOOLS+= make
USE_PKGINSTALL= yes
GNU_CONFIGURE= # defined
CONFIGURE_ARGS+=--with-etcdir=${PKG_SYSCONFDIR}
ALL_TARGET= dictd dictzip
INSTALL_TARGET= install.dictd install.dictzip install.dictfmt
EGDIR= ${PREFIX}/share/examples/dict-server
CONF_FILES= ${EGDIR}/dictd.conf \
${PKG_SYSCONFDIR}/dictd.conf
# 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
post-install:
${INSTALL_DATA_DIR} ${EGDIR}
${SED} "s#/usr/lib/dict#${PREFIX}/share/dictd#" \
${WRKSRC}/dictd.conf >${EGDIR}/dictd.conf
${INSTALL_DATA_DIR} ${PREFIX}/share/dictd
.include "../../devel/libtool/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|