summaryrefslogtreecommitdiff
path: root/textproc/dict-server/Makefile
blob: bbec5d5b0e4d2c19db1a54a3e60e9c5d716f3b38 (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
46
47
48
49
50
51
52
# $NetBSD: Makefile,v 1.4 2001/10/12 10:51:51 simonb Exp $

DISTNAME=       dictd-1.5.5
PKGNAME=	dict-server-1.5.5
CATEGORIES=	textproc
MASTER_SITES=	ftp://ftp.dict.org/pub/dict/ \
		ftp://ftp.dict.org/pub/dict/pre/
DISTFILES=	${DISTNAME}${EXTRACT_SUFX} \
		dict-gazetteer-1.2-pre.tar.gz \
		dict-misc-1.5-pre.tar.gz \
		dict-web1913-1.4-pre.tar.gz \
		dict-wn-1.5-pre.tar.gz

MAINTAINER=	mike@ethmoid.org
HOMEPAGE=	http://www.dict.org/
COMMENT=	Dictionary Service Protocol server

USE_GMAKE=		yes
GNU_CONFIGURE=		yes
CONFIGURE_ARGS+=	--with-etcdir=${PREFIX}/etc

ALL_TARGET=	dictd dictzip
INSTALL_TARGET=	install.dictd install.dictzip

LEXICONS=	easton.dict.dz \
		easton.index \
		elements.dict.dz \
		elements.index \
		foldoc.dict.dz \
		foldoc.index \
		gazetteer.dict.dz \
		gazetteer.index \
		hitchcock.dict.dz \
		hitchcock.index \
		jargon.dict.dz \
		jargon.index \
		web1913.dict.dz \
		web1913.index \
		wn.dict.dz \
		wn.index \
		world95.dict.dz \
		world95.index

post-install:
	${SED} "s#/usr/lib/dict#${PREFIX}/share/dictd#" \
		${WRKSRC}/dictd.conf >${PREFIX}/etc/dictd.conf
	${INSTALL_DATA_DIR} ${PREFIX}/share/dictd
.for FILE in ${LEXICONS}
		${INSTALL_DATA} ${WRKDIR}/${FILE} ${PREFIX}/share/dictd
.endfor

.include "../../mk/bsd.pkg.mk"