switch to multi-packages instead of abusing flavors; requested by espie@

ok steven@
This commit is contained in:
naddy 2008-10-30 16:48:37 +00:00
parent 8397223cf2
commit 7cae428465
7 changed files with 44 additions and 34 deletions

View File

@ -1,10 +1,14 @@
# $OpenBSD: Makefile,v 1.10 2008/09/10 22:01:04 martynas Exp $
# $OpenBSD: Makefile,v 1.11 2008/10/30 16:48:37 naddy Exp $
COMMENT= draw maps and charts
COMMENT-main= draw maps and charts
COMMENT-high= high resolution coastline data for GMT
COMMENT-full= full resolution coastline data for GMT
V= 4.1.3
DISTNAME= GMT${V}
PKGNAME= gmt-${V}p1
DISTNAME= GMT$V
PKGNAME-main= gmt-$Vp2
PKGNAME-high= gmt-high-$V
PKGNAME-full= gmt-full-$V
CATEGORIES= graphics geo
HOMEPAGE= http://gmt.soest.hawaii.edu/
@ -17,44 +21,36 @@ 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 \
DISTFILES= GMT$V_src.tar.bz2 \
GMT$V_man.tar.bz2 \
GMT$V_share.tar.bz2 \
GMT4.1_coast.tar.bz2 \
GMT4.1_high.tar.bz2 \
GMT4.1_full.tar.bz2
EXTRACT_CASES= GMT4.1_*.tar.bz2) bzip2 -dc ${FULLDISTDIR}/$$archive | \
tar xf - -C ${WRKDIST};;
MULTI_PACKAGES= -main -high -full
LIB_DEPENDS-main= netcdf.>=1::math/netcdf
WANTLIB-main= c m
RUN_DEPENDS-high= :gmt-$V:graphics/gmt
RUN_DEPENDS-full= :gmt-$V:graphics/gmt
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

View File

@ -6,7 +6,4 @@ illuminated surfaces and 3-D perspective views. GMT supports ~30 map
projections and transformations and comes with support data such as
coastlines, rivers, and political boundaries.
Flavors:
high: adds high resolution coastline data
full: adds full resolution coastline data
This package adds full resolution coastline data to GMT.

View File

@ -0,0 +1,9 @@
GMT is an open source collection of ~60 tools for manipulating
geographic and Cartesian data sets (including filtering, trend fitting,
gridding, projecting, etc.) and producing PostScript illustrations
ranging from simple x-y plots via contour maps to artificially
illuminated surfaces and 3-D perspective views. GMT supports ~30 map
projections and transformations and comes with support data such as
coastlines, rivers, and political boundaries.
This package adds high resolution coastline data to GMT.

View File

@ -0,0 +1,7 @@
GMT is an open source collection of ~60 tools for manipulating
geographic and Cartesian data sets (including filtering, trend fitting,
gridding, projecting, etc.) and producing PostScript illustrations
ranging from simple x-y plots via contour maps to artificially
illuminated surfaces and 3-D perspective views. GMT supports ~30 map
projections and transformations and comes with support data such as
coastlines, rivers, and political boundaries.

View File

@ -1,4 +1,5 @@
@comment $OpenBSD: PFRAG.full,v 1.2 2006/06/01 04:04:45 steven Exp $
@comment $OpenBSD: PLIST-full,v 1.1 2008/10/30 16:48:37 naddy Exp $
@pkgpath graphics/gmt,full
share/gmt/share/coast/binned_GSHHS_f.cdf
share/gmt/share/coast/binned_border_f.cdf
share/gmt/share/coast/binned_river_f.cdf

View File

@ -1,4 +1,5 @@
@comment $OpenBSD: PFRAG.high,v 1.2 2006/06/01 04:04:45 steven Exp $
@comment $OpenBSD: PLIST-high,v 1.1 2008/10/30 16:48:37 naddy Exp $
@pkgpath graphics/gmt,high
share/gmt/share/coast/binned_GSHHS_h.cdf
share/gmt/share/coast/binned_border_h.cdf
share/gmt/share/coast/binned_river_h.cdf

View File

@ -1,4 +1,5 @@
@comment $OpenBSD: PLIST,v 1.4 2008/07/30 17:14:37 martynas Exp $
@comment $OpenBSD: PLIST-main,v 1.1 2008/10/30 16:48:37 naddy Exp $
@pkgpath graphics/gmt
bin/GMT
@bin bin/blockmean
@bin bin/blockmedian
@ -186,8 +187,6 @@ share/gmt/share/coast/binned_border_l.cdf
share/gmt/share/coast/binned_river_c.cdf
share/gmt/share/coast/binned_river_i.cdf
share/gmt/share/coast/binned_river_l.cdf
%%full%%
%%high%%
share/gmt/share/cpt/
share/gmt/share/cpt/GMT_cool.cpt
share/gmt/share/cpt/GMT_copper.cpt