aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/dict/Makefile
blob: fceac3e04c7f9d7b5c5a95a14126c58b86e79d0c (plain) (blame)
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
# Created by: Josh Gilliam <josh@quick.net>
# $FreeBSD$

PORTNAME=   dict
PORTVERSION=    1.12.1
CATEGORIES= textproc
MASTER_SITES=   SF/${PORTNAME}/${PORTNAME}d/${PORTNAME}d-${PORTVERSION}
DISTNAME=   ${PORTNAME}d-${PORTVERSION}

MAINTAINER= sunpoet@FreeBSD.org
COMMENT=    Dictionary Server Protocol (RFC2229) client

LICENSE=    GPLv2
LICENSE_FILE=   ${WRKSRC}/COPYING

LIB_DEPENDS=    libmaa.so:${PORTSDIR}/devel/libmaa

ALL_TARGET= dict
GNU_CONFIGURE=  yes
INSTALL_TARGET= install.dict
USES=       bison gmake libtool:build localbase

post-patch:
    @${REINPLACE_CMD} -e 's|^        mkdir| mkdir|' ${WRKSRC}/Makefile.in
    @${REINPLACE_CMD} -e 's|/etc/|${PREFIX}/etc/|g' ${WRKSRC}/dict.1.in

post-install:
    ${INSTALL_DATA} ${FILESDIR}/dict.conf ${STAGEDIR}${PREFIX}/etc/dict.conf.sample

.include <bsd.port.mk>