openbsd-ports/graphics/gmt/Makefile
kili 262f516a1b Avoid references to PKGNAME.
Remove noops like WRKDIST=${WRKDIR}/${DISTNAME}.
Drop DIST_SUBDIR where appropriate.

Problem mentioned by naddy.
Some simplifications and ok, steven.
2006-11-04 19:19:15 +00:00

64 lines
1.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.7 2006/11/04 19:19:15 kili Exp $
COMMENT= "draw maps and charts"
V= 4.1.3
DISTNAME= GMT${V}
PKGNAME= gmt-${V}
CATEGORIES= graphics geo
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
LIB_DEPENDS= netcdf.>=1::math/netcdf
WANTLIB= c m
MASTER_SITES= ftp://ftp.soest.hawaii.edu/gmt/4/ \
ftp://falcon.grdl.noaa.gov/pub/gmt/4/ \
ftp://ftp.iris.washington.edu/pub/gmt/4/ \
ftp://ftp.geologi.uio.no/pub/gmt/4/ \
ftp://gd.tuwien.ac.at/pub/gmt/4/
DISTFILES= GMT${V}_src.tar.bz2 \
GMT${V}_man.tar.bz2 \
GMT${V}_share.tar.bz2 \
GMT4.1_coast.tar.bz2
SUPDISTFILES= GMT4.1_high.tar.bz2 \
GMT4.1_full.tar.bz2
EXTRACT_CASES= GMT4.1_*.tar.bz2) bzip2 -dc ${FULLDISTDIR}/$$archive | \
tar xf - -C ${WRKDIST};;
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= --datadir=${PREFIX}/share/gmt/share \
--enable-mansect=1 \
--enable-netcdf=${LOCALBASE}
FLAVORS= high full
FLAVOR?=
.if ${FLAVOR:L:Mhigh}
DISTFILES+= GMT4.1_high.tar.bz2
.endif
.if ${FLAVOR:L:Mfull}
DISTFILES+= GMT4.1_full.tar.bz2
.endif
NO_REGRESS= Yes
ALL_TARGET= gmt
INSTALL_TARGET= install install-data install-man
.include <bsd.port.mk>