2006-11-04 14:19:15 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.7 2006/11/04 19:19:15 kili Exp $
|
2005-11-01 19:02:50 -05:00
|
|
|
|
|
|
|
COMMENT= "draw maps and charts"
|
|
|
|
|
2006-06-01 00:04:45 -04:00
|
|
|
V= 4.1.3
|
2006-04-10 16:43:01 -04:00
|
|
|
DISTNAME= GMT${V}
|
|
|
|
PKGNAME= gmt-${V}
|
2006-11-02 02:03:29 -05:00
|
|
|
CATEGORIES= graphics geo
|
2005-11-01 19:02:50 -05:00
|
|
|
|
|
|
|
HOMEPAGE= http://gmt.soest.hawaii.edu/
|
|
|
|
|
|
|
|
MAINTAINER= David Cathcart <cathcart@openbsd.org>
|
|
|
|
|
|
|
|
# GPL
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2006-08-03 08:43:20 -04:00
|
|
|
LIB_DEPENDS= netcdf.>=1::math/netcdf
|
2005-11-01 19:02:50 -05:00
|
|
|
|
|
|
|
WANTLIB= c m
|
|
|
|
|
2006-04-10 16:43:01 -04:00
|
|
|
MASTER_SITES= ftp://ftp.soest.hawaii.edu/gmt/4/ \
|
2005-11-01 19:02:50 -05:00
|
|
|
ftp://falcon.grdl.noaa.gov/pub/gmt/4/ \
|
|
|
|
ftp://ftp.iris.washington.edu/pub/gmt/4/ \
|
|
|
|
ftp://ftp.geologi.uio.no/pub/gmt/4/ \
|
2006-04-10 16:43:01 -04:00
|
|
|
ftp://gd.tuwien.ac.at/pub/gmt/4/
|
2005-11-01 19:02:50 -05:00
|
|
|
|
2006-06-01 00:04:45 -04:00
|
|
|
DISTFILES= GMT${V}_src.tar.bz2 \
|
|
|
|
GMT${V}_man.tar.bz2 \
|
|
|
|
GMT${V}_share.tar.bz2 \
|
|
|
|
GMT4.1_coast.tar.bz2
|
2005-11-01 19:02:50 -05:00
|
|
|
|
2006-06-01 00:04:45 -04:00
|
|
|
SUPDISTFILES= GMT4.1_high.tar.bz2 \
|
|
|
|
GMT4.1_full.tar.bz2
|
2005-11-01 19:02:50 -05:00
|
|
|
|
2006-06-01 00:04:45 -04:00
|
|
|
EXTRACT_CASES= GMT4.1_*.tar.bz2) bzip2 -dc ${FULLDISTDIR}/$$archive | \
|
2006-04-10 16:43:01 -04:00
|
|
|
tar xf - -C ${WRKDIST};;
|
2005-11-01 19:02:50 -05:00
|
|
|
|
2006-04-10 16:43:01 -04:00
|
|
|
CONFIGURE_STYLE= gnu
|
2005-11-01 19:02:50 -05:00
|
|
|
|
2006-04-10 16:43:01 -04:00
|
|
|
CONFIGURE_ARGS+= --datadir=${PREFIX}/share/gmt/share \
|
|
|
|
--enable-mansect=1 \
|
|
|
|
--enable-netcdf=${LOCALBASE}
|
2005-11-01 19:02:50 -05:00
|
|
|
|
|
|
|
|
|
|
|
FLAVORS= high full
|
|
|
|
FLAVOR?=
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mhigh}
|
2006-06-01 00:04:45 -04:00
|
|
|
DISTFILES+= GMT4.1_high.tar.bz2
|
2005-11-01 19:02:50 -05:00
|
|
|
.endif
|
|
|
|
.if ${FLAVOR:L:Mfull}
|
2006-06-01 00:04:45 -04:00
|
|
|
DISTFILES+= GMT4.1_full.tar.bz2
|
2005-11-01 19:02:50 -05:00
|
|
|
.endif
|
|
|
|
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
2006-04-10 16:43:01 -04:00
|
|
|
ALL_TARGET= gmt
|
|
|
|
INSTALL_TARGET= install install-data install-man
|
2005-11-01 19:02:50 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|