aboutsummaryrefslogtreecommitdiffstats
path: root/german/steak/Makefile
blob: 9277127dc01064a5618246ac9feaf6a4a0249331 (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
47
48
49
50
51
52
53
54
55
# Created by: Heiner <h.eichmann@gmx.de>
# $FreeBSD$

PORTNAME=   steak
PORTVERSION=    1.7.3
PORTREVISION=   7
CATEGORIES= german
MASTER_SITES=   SF/${PORTNAME}/${PORTNAME}/Steak%20${PORTVERSION} \
        http://www.tm.informatik.uni-frankfurt.de/%7Erazi/steak/program/
DISTNAME=   Steak.${PORTVERSION}

MAINTAINER= conrads@cox.net
COMMENT=    English <-> German dictionary under the GPL

RUN_DEPENDS=    ispell:${PORTSDIR}/textproc/aspell-ispell

USE_XORG=   xt
MAKE_JOBS_UNSAFE=   yes

.if defined(WITHOUT_XSTEAK)
USE_XORG=   x11
.else
USE_GNOME=  gtk12
MAKE_ARGS=  -D xsteak
.endif
WRKSRC=     ${WRKDIR}/Steak
USE_BZIP2=  yes

.if defined(WITHOUT_XSTEAK)
PLIST_SUB+= NOXSTEAK:="@comment "
.else
PLIST_SUB+= NOXSTEAK:=""
.endif

NO_STAGE=   yes
post-patch:
    ${REINPLACE_CMD} -e "s,\$$HOME/bin/Steak/Datensatz,${PREFIX}/share/steak/Datensatz,; \
            s,BINDIR=\$$HOME/bin/Steak,BINDIR=${DATADIR},; \
            s,$$BINDIR/help.txt,${DATADIR}/help.txt,g" ${WRKSRC}/woerterbuch
    ${REINPLACE_CMD} -e "s,/usr/X11R6/,${LOCALBASE}/,g" ${WRKSRC}/Printbuffer/Makefile

do-install:
.if !defined(WITHOUT_XSTEAK)
    ${INSTALL_PROGRAM} ${WRKSRC}/Xsteak/xsteak ${PREFIX}/bin/
.endif
    ${INSTALL_SCRIPT} ${WRKSRC}/woerterbuch ${PREFIX}/bin/steak
    ${MKDIR} ${DATADIR}/Datensatz
    ${INSTALL_DATA} ${WRKSRC}/Datensatz/* ${DATADIR}/Datensatz
    cd ${WRKSRC}; ${INSTALL_DATA} README README.eng help.txt \
        mini_steak_icon.xpm pinguin_steak_icon.xpm \
        .Steakconfig ${DATADIR}
    ${INSTALL_DATA} ${WRKSRC}/Xpm/* ${DATADIR}
    ${INSTALL_SCRIPT} ${WRKSRC}/iso2txt ${DATADIR}
    cd ${WRKSRC}; ${INSTALL_PROGRAM} poll printbuffer spacefilter ${DATADIR}
.include <bsd.port.mk>