aboutsummaryrefslogtreecommitdiffstats
path: root/www/amaya/Makefile
blob: 29f0f777e873c9c6e92b89721cffccdd2043ceb5 (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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# New ports collection makefile for:    amaya
# Version required: 2.0
# Date created:     26 Dec 1998
# Whom:         Don Croyle <croyle@gelemna.ft-wayne.in.us>
#
# $Id: Makefile,v 1.2 1999/01/18 02:39:02 steve Exp $
#

DISTNAME=   amaya-src-2.0
PKGNAME=    amaya-2.0
CATEGORIES=     www
MASTER_SITES=   http://www.w3.org/Amaya/Distribution/ \
        ftp://ftp.w3.org/pub/amaya/ \
        ftp://mirror.aarnet.edu.au/pub/amaya/

MAINTAINER= croyle@gelemna.ft-wayne.in.us

REQUIRES_MOTIF= yes
USE_XLIB=   yes
USE_GMAKE=  yes

DIST_SUBDIR=    amaya
DISTFILES=  ${DISTNAME}${EXTRACT_SUFX}
.ifdef ENGLISH_DICT
DISTFILES+= English.tar.gz
.endif
.ifdef FRENCH_DICT
DISTFILES+= French.tar.gz
.endif

WRKSRC=     ${WRKDIR}/Amaya/obj

GNU_CONFIGURE=  yes
CONFIGURE_SCRIPT=   ../configure
CONFIGURE_ARGS= --with-amaya

pre-fetch:
.if !defined(ENGLISH_DICT) && !defined(FRENCH_DICT)
    @${ECHO_MSG} To enable spell checking, define either
    @${ECHO_MSG} ENGLISH_DICT or FRENCH_DICT
.endif

post-extract:
    ${MKDIR} ${WRKSRC}

post-configure:
    ${CP} ${WRKSRC}/Options.orig ${WRKSRC}/Options

post-install:
.for file in amaya print
    strip ${PREFIX}/Amaya/applis/bin/${file}
.endfor
    ${INSTALL_DATA} ${WRKSRC}/../amaya/COPYRIGHT.html ${PREFIX}/Amaya/amaya/
.ifdef ENGLISH_DICT
    ${INSTALL_DATA} ${WRKDIR}/Thot/dicopar/Eprinc.dic ${PREFIX}/Amaya/dicopar/
    ${MV} ${TMPPLIST} ${TMPPLIST}.new
    ${ECHO} Amaya/dicopar/Eprinc.dic > ${TMPPLIST}
    ${CAT} ${TMPPLIST}.new >> ${TMPPLIST}
    ${RM} ${TMPPLIST}.new
.endif
.ifdef FRENCH_DICT
    ${INSTALL_DATA} ${WRKDIR}/Thot/dicopar/Fprinc.dic ${PREFIX}/Amaya/dicopar/
    ${MV} ${TMPPLIST} ${TMPPLIST}.new
    ${ECHO} Amaya/dicopar/Fprinc.dic > ${TMPPLIST}
    ${CAT} ${TMPPLIST}.new >> ${TMPPLIST}
    ${RM} ${TMPPLIST}.new
.endif

.include <bsd.port.mk>