aboutsummaryrefslogtreecommitdiffstats
path: root/misc/xrmap/Makefile
blob: b2a886e9347c4824407b33882c47067481ffd765 (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:    xrmap
# Date created:             25 Dec 2001
# Whom:                 petef
#
# $FreeBSD$
#

PORTNAME=   xrmap
PORTVERSION=    2.26
CATEGORIES= misc
MASTER_SITES=   ftp://ftp.ac-grenoble.fr/ge/geosciences/xrmap/ \
        ftp://ftp.ac-grenoble.fr/ge/geosciences/xrmap/data/ \
        http://frmas.free.fr/files/
DISTFILES=  ${XRMAPFILE} ${DISTFILE} \
        pdfmaps-1.1.tar.gz ${CIAFILE}
EXTRACT_ONLY=   ${XRMAPFILE}

MAINTAINER= gagnon__s@videotron.ca
COMMENT=    Map portions of the earth from a given longitude/latitude

USE_BZIP2=  yes
USE_IMAKE=  yes
USE_XPM=    yes
USE_REINPLACE=  yes

MAN1=   xrmap.1

CIAFILE=    CIA_WDB2.jpd.bz2
XRMAPFILE=  xrmap-2.26.tar.bz2
DISTFILE=   anthems-1.1.tar.bz2 \
        factbook_text_2002.tar.bz2 factbook_html_2002.tar.bz2 \
        flags-1.1.tar.bz2 hymns-1.2.tar.bz2

post-extract:
    for f in ${DISTFILE}; do \
    ${TAR} -jxf ${DISTDIR}/$${f} -C ${WRKSRC}; \
    done
    ${TAR} -zxf ${DISTDIR}/pdfmaps-1.1.tar.gz -C ${WRKSRC}
    ${BZIP2_CMD} -dk ${DISTDIR}/${CIAFILE}
    ${MV} ${DISTDIR}/CIA_WDB2.jpd ${WRKSRC}/

post-configure:
    ${REINPLACE_CMD} -e 's,/usr/X11R6,${X11BASE},g' ${WRKSRC}/Makefile
    ${REINPLACE_CMD} -e 's,/usr/X11R6,${X11BASE},g' ${WRKSRC}/editkit/Makefile

.include <bsd.port.mk>