summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2002-09-13 15:29:01 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2002-09-13 15:29:01 +0000
commit868a6db3107bfa22d9547351e9b5145e28eaabb3 (patch)
tree540db6d37f8eeaabef9dce2c9bcabf54dc9d7878 /misc
parentRemove the FORBIDDEN tag; the exploitable bug was fixed prior to (diff)
add earthview 1.0
Produces a view output of an arbitrary region of the Earth
Notes
Notes: svn path=/head/; revision=66262
Diffstat (limited to 'misc')
-rw-r--r--misc/Makefile1
-rw-r--r--misc/earthview/Makefile30
-rw-r--r--misc/earthview/distinfo1
-rw-r--r--misc/earthview/files/patch-Makefile17
-rw-r--r--misc/earthview/pkg-comment1
-rw-r--r--misc/earthview/pkg-descr6
-rw-r--r--misc/earthview/pkg-plist8
7 files changed, 64 insertions, 0 deletions
diff --git a/misc/Makefile b/misc/Makefile
index 0d06678fbc63..4b2a8a9af7fc 100644
--- a/misc/Makefile
+++ b/misc/Makefile
@@ -60,6 +60,7 @@
SUBDIR += dnetc
SUBDIR += dog
SUBDIR += dotfile
+ SUBDIR += earthview
SUBDIR += edonkey-tool-hash
SUBDIR += edonkey-tool-list
SUBDIR += edonkey-tool-recovermet
diff --git a/misc/earthview/Makefile b/misc/earthview/Makefile
new file mode 100644
index 000000000000..fb8c584cff6f
--- /dev/null
+++ b/misc/earthview/Makefile
@@ -0,0 +1,30 @@
+# 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= ftp://ftp.ac-grenoble.fr/ge/geosciences/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= ports@FreeBSD.org
+
+USE_REINPLACE= yes
+USE_XLIB= yes
+CFLAGS+= -I${X11BASE}/include
+ALL_TARGET= 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>
diff --git a/misc/earthview/distinfo b/misc/earthview/distinfo
new file mode 100644
index 000000000000..19e803032c38
--- /dev/null
+++ b/misc/earthview/distinfo
@@ -0,0 +1 @@
+MD5 (earthview-1.0.tgz) = 2076221c30c771361e5affc2bb81ad16
diff --git a/misc/earthview/files/patch-Makefile b/misc/earthview/files/patch-Makefile
new file mode 100644
index 000000000000..8f1780581e3e
--- /dev/null
+++ b/misc/earthview/files/patch-Makefile
@@ -0,0 +1,17 @@
+--- Makefile.orig Wed Jul 31 20:33:51 2002
++++ Makefile Fri Sep 13 23:09:34 2002
+@@ -1,11 +1,11 @@
+-BINDIR=/usr/X11R6/bin
+-DATADIR=/usr/share/earthview
++BINDIR=%%PREFIX%%/bin
++DATADIR=%%PREFIX%%/share/earthview
+
+ all: earthview
+ cat WARNING
+
+ earthview: earthview.c
+- gcc -Wall -DDATADIR=\"$(DATADIR)\" earthview.c -o earthview -L/usr/X11R6/lib -lX11 -lm -lz -lbz2
++ %%CC%% %%CFLAGS%% -DDATADIR=\"$(DATADIR)\" earthview.c -o earthview -L%%X11BASE%%/lib -lX11 -lm -lz -lbz2
+
+ install:
+ install -c -s earthview $(BINDIR)
diff --git a/misc/earthview/pkg-comment b/misc/earthview/pkg-comment
new file mode 100644
index 000000000000..4bc185669024
--- /dev/null
+++ b/misc/earthview/pkg-comment
@@ -0,0 +1 @@
+Produces a view output of an arbitrary region of the Earth
diff --git a/misc/earthview/pkg-descr b/misc/earthview/pkg-descr
new file mode 100644
index 000000000000..0fa2a424baf6
--- /dev/null
+++ b/misc/earthview/pkg-descr
@@ -0,0 +1,6 @@
+Earthview produces a view or an image file output of an arbitrary region of
+the Earth, showing the elevation of lands and depth of oceans across the
+globe. It also supports other data sets such as the population density. The
+package only includes low-resolution samples, but earthview can make use of
+the GTOPO30 or ETOPO2 data sets, which have a resolution better than 1km on
+most land areas, and better than 4km in the oceans.
diff --git a/misc/earthview/pkg-plist b/misc/earthview/pkg-plist
new file mode 100644
index 000000000000..97913a31470c
--- /dev/null
+++ b/misc/earthview/pkg-plist
@@ -0,0 +1,8 @@
+bin/earthview
+share/earthview/topography/topography.cps
+share/earthview/topography/1440x720-2x2.az2
+share/earthview/population/population.cps
+share/earthview/population/4320x2160-6x6.pz2
+@dirrm share/earthview/topography
+@dirrm share/earthview/population
+@dirrm share/earthview