aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--astro/Makefile1
-rw-r--r--astro/starplot/Makefile49
-rw-r--r--astro/starplot/distinfo1
-rw-r--r--astro/starplot/files/patch-Makefile122
-rw-r--r--astro/starplot/files/patch-gui::Makefile30
-rw-r--r--astro/starplot/files/patch-gui::filedialogs.cc11
-rw-r--r--astro/starplot/pkg-comment1
-rw-r--r--astro/starplot/pkg-descr6
-rw-r--r--astro/starplot/pkg-plist18
9 files changed, 239 insertions, 0 deletions
diff --git a/astro/Makefile b/astro/Makefile
index d6a6edcecea3..083e54c53360 100644
--- a/astro/Makefile
+++ b/astro/Makefile
@@ -25,6 +25,7 @@
SUBDIR += setiathome
SUBDIR += spacechart
SUBDIR += sscalc
+ SUBDIR += starplot
SUBDIR += stars
SUBDIR += sunclock
SUBDIR += tkseti
diff --git a/astro/starplot/Makefile b/astro/starplot/Makefile
new file mode 100644
index 000000000000..9b2038bb66c4
--- /dev/null
+++ b/astro/starplot/Makefile
@@ -0,0 +1,49 @@
+# New ports collection makefile for: starplot
+# Date created: Mon Aug 20 09:08:07 EDT 2001
+# Whom: Patrick Li <pat@databits.net>
+#
+# $FreeBSD$
+#
+
+PORTNAME= starplot
+PORTVERSION= 0.92.1
+CATEGORIES= astro
+MASTER_SITES= http://www.princeton.edu/~kmccarty/downloads/
+
+MAINTAINER= pat@databits.net
+
+USE_X_PREFIX= yes
+USE_GMAKE= yes
+USE_GTK= yes
+USE_XPM= yes
+MAKE_ENV= DATADIR="${DATADIR}" \
+ DOCSDIR="${DOCSDIR}"
+
+MAN1= starplot.1 starconvert.1
+
+pre-patch:
+ @${PERL} -pi.orig -e 's|DATADIR|${DATADIR}|; s|DOCDIR|${DOCSDIR}|; \
+ s|BINARYNAME|${PORTNAME}|; s|CONVERTNAME|starconvert|' \
+ ${WRKSRC}/doc/man/*
+ @${PERL} -pi.orig -e 's|/usr/local/share/starplot|${DATADIR}|; \
+ s|/usr/local/share/doc/starplot|${DOCSDIR}|' \
+ ${WRKSRC}/gui/starplot.h
+
+do-install:
+ @${INSTALL_PROGRAM} ${WRKSRC}/starplot ${PREFIX}/bin
+ @${INSTALL_PROGRAM} ${WRKSRC}/starconvert ${PREFIX}/bin
+ @${INSTALL_MAN} ${WRKSRC}/doc/man/starplot-template \
+ ${PREFIX}/man/man1/starplot.1
+ @${INSTALL_MAN} ${WRKSRC}/doc/man/starconvert-template \
+ ${PREFIX}/man/man1/starconvert.1
+ @${MKDIR} ${DATADIR}/examples
+ @${INSTALL_DATA} ${WRKSRC}/examples/*.stars ${DATADIR}/examples
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}/examples ${DOCSDIR}/html/images
+ @${INSTALL_DATA} ${WRKSRC}/examples/example.spec ${DOCSDIR}/examples
+ @${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
+ @${INSTALL_DATA} ${WRKSRC}/doc/html/*.html ${DOCSDIR}/html
+ @${INSTALL_DATA} ${WRKSRC}/doc/html/images/* ${DOCSDIR}/html/images
+.endif
+
+.include <bsd.port.mk>
diff --git a/astro/starplot/distinfo b/astro/starplot/distinfo
new file mode 100644
index 000000000000..bd90da274198
--- /dev/null
+++ b/astro/starplot/distinfo
@@ -0,0 +1 @@
+MD5 (starplot-0.92.1.tar.gz) = a5fa82659bff3019ead4ec54dfa826d4
diff --git a/astro/starplot/files/patch-Makefile b/astro/starplot/files/patch-Makefile
new file mode 100644
index 000000000000..7d08d14c2757
--- /dev/null
+++ b/astro/starplot/files/patch-Makefile
@@ -0,0 +1,122 @@
+--- Makefile.orig Wed Jun 20 05:48:41 2001
++++ Makefile Mon Aug 20 11:19:22 2001
+@@ -1,34 +1,9 @@
+-# Makefile for StarPlot
++BINARYNAME = starplot
++CONVERTNAME = starconvert
++CFLAGS += -Wall `${GTK_CONFIG} --cflags`
++LFLAGS = `${GTK_CONFIG} --libs`
+
+-# this is for easier debianizing:
+-DESTDIR =
+-TREEDIR = usr/local
+-TOPDIR = $(DESTDIR)/$(TREEDIR)
+-
+-# installation locations: -----------------------------------------------
+-export BINARYNAME = starplot
+-export CONVERTNAME = starconvert
+-export DATADIR = $(TOPDIR)/share/$(BINARYNAME)
+-export DOCDIR = $(TOPDIR)/share/doc/$(BINARYNAME)
+-INSTALLDIR = $(TOPDIR)/bin
+-MANDIR = $(TOPDIR)/man/man1
+-
+-# locations of programs needed for compiling / installing:
+-export CXX = g++
+-export SED = sed
+-INSTALL = install
+-
+-# compiler flags:
+-export CFLAGS = -Wall -pedantic -O2
+-LFLAGS = `gtk-config --libs`
+-
+-# targets ---------------------------------------------------------------
+-
+-.PHONY: all object-files conv-files doc-files starplot starconvert debian \
+- clean dist-clean debian-clean install install-bin install-doc \
+- install-debian install-examples install-gpl install-man uninstall
+-
+-all: object-files conv-files doc-files
++all: object-files conv-files
+
+ object-files:
+ $(MAKE) -C classes
+@@ -38,79 +13,3 @@
+ conv-files:
+ $(MAKE) -C convert
+ $(CXX) convert/*.o classes/*.o -o $(CONVERTNAME) $(CFLAGS) -lm
+-
+-doc-files:
+- $(MAKE) -C doc
+-
+-# The next two targets are not used by the default build and are just for
+-# convenience if you only want to build one of the two programs.
+-starplot: object-files
+-starconvert:
+- $(MAKE) -C classes
+- $(MAKE) conv-files
+-
+-debian:
+- dpkg-buildpackage -rfakeroot
+-
+-clean:
+- $(MAKE) -C gui clean
+- $(MAKE) -C classes clean
+- $(MAKE) -C convert clean
+-
+-dist-clean: clean
+- rm -f $(BINARYNAME) $(CONVERTNAME) build-stamp configure-stamp
+- $(MAKE) -C doc clean
+-
+-debian-clean: dist-clean
+- rm -rf debian/starplot/*
+- rm -f debian/files debian/substvars
+- rm -f debian/*.debhelper
+-
+-# install everything
+-install: install-examples install-gpl
+-
+-# install only things relevant to creating a Debian package
+-install-debian: install-examples install-doc
+-
+-# install just the binary and create an empty data directory
+-install-bin:
+- $(INSTALL) -d -m 0755 $(INSTALLDIR) $(DATADIR)
+- $(INSTALL) -m 0755 -s $(BINARYNAME) $(INSTALLDIR)
+- $(INSTALL) -m 0755 -s $(CONVERTNAME) $(INSTALLDIR)
+-
+-# install example star data files as well as the binary
+-install-examples: install-bin
+- $(INSTALL) -d -m 0755 $(DATADIR)/examples
+- $(INSTALL) -m 0644 examples/*.stars $(DATADIR)/examples
+-
+-# install the text and HTML documentation only
+-install-doc:
+- $(INSTALL) -d -m 0755 $(DOCDIR) $(DOCDIR)/examples
+- $(INSTALL) -m 0644 examples/example.spec $(DOCDIR)/examples
+- $(INSTALL) -m 0644 README INSTALL Makefile $(DOCDIR)
+- $(INSTALL) -d -m 0755 $(DOCDIR)/html $(DOCDIR)/html/images
+- $(INSTALL) -m 0644 doc/html/*.html $(DOCDIR)/html
+- $(INSTALL) -m 0644 doc/html/images/* $(DOCDIR)/html/images
+-
+-# install man pages too
+-install-man: install-doc
+- $(INSTALL) -d -m 0755 $(MANDIR)
+- $(INSTALL) -m 0644 doc/man/starplot.1 $(MANDIR)/$(BINARYNAME).1
+- $(INSTALL) -m 0644 doc/man/starconvert.1 $(MANDIR)/$(CONVERTNAME).1
+-
+-# install the GPL as well as the docs
+-# (this is separate since most people already have more than enough copies
+-# of the GPL lying around on their hard drives)
+-install-gpl: install-man
+- $(INSTALL) -m 0644 COPYING $(DOCDIR)
+-
+-# You can uninstall StarPlot even after deleting the source tree because
+-# this Makefile will have been installed in $(DOCDIR).
+-
+-uninstall:
+- -rm -f $(INSTALLDIR)/$(BINARYNAME) $(INSTALLDIR)/$(CONVERTNAME)
+- -rm -rf $(DATADIR)/examples
+- -rmdir $(DATADIR)
+- -rm -rf $(DOCDIR)
+- -rm -f $(MANDIR)/$(BINARYNAME).* $(MANDIR)/$(CONVERTNAME).*
+-
diff --git a/astro/starplot/files/patch-gui::Makefile b/astro/starplot/files/patch-gui::Makefile
new file mode 100644
index 000000000000..67a5a1b38b66
--- /dev/null
+++ b/astro/starplot/files/patch-gui::Makefile
@@ -0,0 +1,30 @@
+--- gui/Makefile.orig Fri Mar 2 08:39:03 2001
++++ gui/Makefile Mon Aug 20 11:16:35 2001
+@@ -1,21 +1,21 @@
+ HEADERS = starplot.h gtkviewer.h menu.h ../classes/stararray.h \
+ ../classes/star.h ../classes/greek.h ../classes/specclass.h \
+ ../classes/stringops.h ../classes/mathops.h ../classes/viewer.h
+-DATADEF = -DDATADIR=\"$(DATADIR)\"
+-DOCDEF = -DDOCDIR=\"$(DOCDIR)\"
++DATADEF = -DDATADIR=\"${DATADIR}\"
++DOCDEF = -DDOCDIR=\"${DOCSDIR}\"
++CFLAGS += `${GTK_CONFIG} --cflags`
+
+ all: starplot.o menuops.o filedialogs.o infodialogs.o chartdialogs.o \
+ hrdiagram.o
+
+ %.o: %.cc $(HEADERS)
+- $(CXX) -c $< `gtk-config --cflags` $(CFLAGS) $(DATADEF)
++ $(CXX) -c $< $(CFLAGS) $(DATADEF)
+
+ menuops.o: menuops.cc $(HEADERS) xpmdata.h ../version.h
+- $(CXX) -c menuops.cc `gtk-config --cflags` $(CFLAGS) \
+- $(DATADEF) $(DOCDEF)
++ $(CXX) -c menuops.cc $(CFLAGS) $(DATADEF) $(DOCDEF)
+
+ starplot.o: starplot.cc $(HEADERS) ../version.h
+- $(CXX) -c starplot.cc `gtk-config --cflags` $(CFLAGS) $(DATADEF)
++ $(CXX) -c starplot.cc $(CFLAGS) $(DATADEF)
+
+ clean:
+ rm -f *.o *.cc~ *.h~
diff --git a/astro/starplot/files/patch-gui::filedialogs.cc b/astro/starplot/files/patch-gui::filedialogs.cc
new file mode 100644
index 000000000000..15a16f697b00
--- /dev/null
+++ b/astro/starplot/files/patch-gui::filedialogs.cc
@@ -0,0 +1,11 @@
+--- gui/filedialogs.cc.orig Mon Aug 20 13:14:42 2001
++++ gui/filedialogs.cc Mon Aug 20 13:14:52 2001
+@@ -159,7 +159,7 @@
+ if (select_function == help_ok_sel || select_function == help_open_sel) {
+ if (!help_browser)
+ gtk_file_selection_set_filename (GTK_FILE_SELECTION(filew),
+- "/usr/bin/");
++ "~/");
+ else
+ gtk_file_selection_set_filename (GTK_FILE_SELECTION(filew),
+ help_browser);
diff --git a/astro/starplot/pkg-comment b/astro/starplot/pkg-comment
new file mode 100644
index 000000000000..928fc9acbf39
--- /dev/null
+++ b/astro/starplot/pkg-comment
@@ -0,0 +1 @@
+3-dimensional viewer for star charts
diff --git a/astro/starplot/pkg-descr b/astro/starplot/pkg-descr
new file mode 100644
index 000000000000..533251f7d564
--- /dev/null
+++ b/astro/starplot/pkg-descr
@@ -0,0 +1,6 @@
+StarPlot allows you to view three-dimensional perspective charts
+of stars. Check the Web site to get more star data sets.
+
+WWW: http://www.princeton.edu/~kmccarty/starplot.html
+
+- Patrick Li <pat@databits.net>
diff --git a/astro/starplot/pkg-plist b/astro/starplot/pkg-plist
new file mode 100644
index 000000000000..eb9aca011a17
--- /dev/null
+++ b/astro/starplot/pkg-plist
@@ -0,0 +1,18 @@
+bin/starplot
+bin/starconvert
+%%PORTDOCS%%share/doc/starplot/README
+%%PORTDOCS%%share/doc/starplot/examples/example.spec
+%%PORTDOCS%%share/doc/starplot/html/ch1.html
+%%PORTDOCS%%share/doc/starplot/html/images/bayerdes.png
+%%PORTDOCS%%share/doc/starplot/html/images/coords.png
+%%PORTDOCS%%share/doc/starplot/html/images/gcoords.png
+%%PORTDOCS%%share/doc/starplot/html/images/hrdiagram.png
+%%PORTDOCS%%share/doc/starplot/html/index.html
+share/starplot/examples/sample.stars
+share/starplot/examples/test.stars
+@dirrm share/starplot/examples
+@dirrm share/starplot/
+%%PORTDOCS%%@dirrm share/doc/starplot/html/images
+%%PORTDOCS%%@dirrm share/doc/starplot/html
+%%PORTDOCS%%@dirrm share/doc/starplot/examples
+%%PORTDOCS%%@dirrm share/doc/starplot/