aboutsummaryrefslogtreecommitdiffstats
path: root/misc/earthview/Makefile
blob: 6e7eaf86bda39e487453463a10c961a1f7ceb2c7 (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
# ex:ts=8
# Ports collection makefile for:    earthview
# Date created:         Sep 13, 2002
# Whom:             ijliao
#
# $FreeBSD$
#

PORTNAME=   earthview
PORTVERSION=    1.0
CATEGORIES= misc
MASTER_SITES=   http://fresh.t-systems-sfr.com/unix/src/privat2/
EXTRACT_SUFX=   .tgz

MAINTAINER= ports@FreeBSD.org
COMMENT=    Produces a view output of an arbitrary region of the Earth

USE_XLIB=   yes
CFLAGS+=    -I${X11BASE}/include
ALL_TARGET= earthview

PLIST_FILES=    bin/earthview share/earthview/topography/topography.cps \
        share/earthview/topography/1440x720-2x2.az2 \
        share/earthview/population/population.cps \
        share/earthview/population/4320x2160-6x6.pz2
PLIST_DIRS= share/earthview/topography share/earthview/population \
        share/earthview

post-patch:
    @${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" -e "s|%%CC%%|${CC}|g" \
        -e "s|%%CFLAGS%%|${CFLAGS}|g" -e "s|%%X11BASE%%|${X11BASE}|g" \
        ${WRKSRC}/Makefile

pre-build:
    @${RM} -f ${WRKSRC}/earthview

.include <bsd.port.mk>