aboutsummaryrefslogtreecommitdiffstats
path: root/databases/grass-i18n/Makefile
blob: 0e6862999205a71a73638bc7aacf620e1966108b (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
# New ports collection makefile for:    grass
# Version required: 5.0beta5
# Date created:     15 January 2000
# Whom:         reg
#
# $FreeBSD$
#

DISTNAME=   grass5.0beta5
PKGNAME=    grass-5.0b5
CATEGORIES= databases
MASTER_SITES=   ftp://grass.baylor.edu/pub/grass/grass5.0beta/source/ \
        http://www.geog.uni-hannover.de/grass/grass5/source/

MAINTAINER= reg@FreeBSD.org

LIB_DEPENDS=    tiff.4:${PORTSDIR}/graphics/tiff
BUILD_DEPENDS=  wish8.0:${PORTSDIR}/x11-toolkits/tk80
RUN_DEPENDS=    wish8.0:${PORTSDIR}/x11-toolkits/tk80

HAS_CONFIGURE=  yes
CONFIGURE_ARGS+= --with-tiff-includes=${LOCALBASE}/include \
        --with-tiff-libs=${LOCALBASE}/lib \
        --prefix=${WRKDIR}/grass5 \
        --with-bindir=${WRKDIR}/grass5/bin

WRKSRC=     ${WRKDIR}/grass5.0beta

ALL_TARGET= install

SED_FILES= \
        bin/gmake5 \
        bin/gmakelinks5 \
        bin/grass5.0beta5 \
        dev/create_fifos.sh \
        etc/paint/driver.rsh \
        etc/monitorcap \
        scripts/create_fifos.sh

pre-configure:
    @${MKDIR} ${WRKDIR}/grass5/bin

do-install:
    ${MKDIR} ${PREFIX}/grass5
    ${CHMOD} 755 ${PREFIX}/grass5
    cd ${WRKDIR}/grass5 && ${TAR} -cf - * | \
        ${TAR} -xpf - -C ${PREFIX}/grass5
.for F in ${SED_FILES}
    ${SED} -e "s^${WRKDIR}^${PREFIX}^g" \
      ${WRKDIR}/grass5/$F > ${PREFIX}/grass5/$F
.endfor

.include <bsd.port.mk>