aboutsummaryrefslogtreecommitdiffstats
path: root/german/ding/Makefile
blob: 3a7139d229dad0b8f30416764c5ef285de175945 (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# New ports collection makefile for:    ding
# Date created:                         5/25/2001
# Whom:                                 n@nectar.com
#
# $FreeBSD$
#

PORTNAME=   ding
PORTVERSION=    1.7
CATEGORIES= german tk
MASTER_SITES=   ftp://ftp.tu-chemnitz.de/pub/Local/urz/ding/ \
        CRITICAL

MAINTAINER= beat@FreeBSD.org
COMMENT=    A German-English dictionary program for X windows/Unix

RUN_DEPENDS=    wish8.4:${PORTSDIR}/x11-toolkits/tk84 \
        agrep:${PORTSDIR}/textproc/agrep

USE_PERL5=  yes

MAN1=       ding.1

DICTFILE=   de-en.txt
SWISSDICT=  de_ch-en.txt

do-build:
    ${SED} -E -e '1,/^exec/ s!wish!wish8.4!' \
      -e 's!/usr/share/dict/de-en.txt!${PREFIX}/share/ding/de-en.txt!' \
      ${WRKSRC}/ding > ${WRKSRC}/dingX
    ${SED} -E -e 's!/usr/share/bin/!${PREFIX}/bin/!' \
      ${WRKSRC}/ding.desktop > ${WRKSRC}/ding.desktop.sed
    @${CP} ${WRKSRC}/${DICTFILE} ${WRKSRC}/${SWISSDICT}
    ${PERL5} -pi.orig -e '$${sz}="\x{009F}"; s/Ã$${sz}/ss/g' \
      ${WRKSRC}/${SWISSDICT}

do-install:
    ${MKDIR} ${PREFIX}/share/ding
    ${INSTALL_SCRIPT} ${WRKSRC}/dingX ${PREFIX}/bin/ding
    ${INSTALL_DATA} ${WRKSRC}/${DICTFILE} ${PREFIX}/share/ding/de-en.txt
    ${INSTALL_DATA} ${WRKSRC}/${SWISSDICT} ${PREFIX}/share/ding
    ${INSTALL_DATA} ${WRKSRC}/ding.png ${PREFIX}/share/ding/ding.png
    ${INSTALL_DATA} ${WRKSRC}/ding.desktop.sed ${PREFIX}/share/ding/ding.desktop
    ${INSTALL_MAN} ${WRKSRC}/ding.1 ${PREFIX}/man/man1

.include <bsd.port.mk>