Date: Mon, 20 Aug 2001 16:14:17 -0400 (EDT) From: Patrick Li <pat@databits.net> To: FreeBSD-gnats-submit@freebsd.org Subject: ports/29910: New port astro/starplot Message-ID: <200108202014.f7KKEHI74399@cc92687-a.wlgrv1.pa.home.com>
next in thread | raw e-mail | index | archive | help
>Number: 29910 >Category: ports >Synopsis: New port astro/starplot >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Aug 20 13:20:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Patrick Li >Release: FreeBSD 4.4-PRERELEASE i386 >Organization: N/A >Environment: System: FreeBSD bottlenek 4.4-PRERELEASE FreeBSD 4.4-PRERELEASE #0: Mon Aug 13 19:08:19 EDT 2001 pat@bottlenek:/usr/src/sys/compile/BOTTLENEK i386 >Description: StarPlot allows you to view three-dimensional perspective charts of stars. WWW: http://www.princeton.edu/~kmccarty/starplot.html Author: Kevin B. McCarty <kmccarty@princeton.edu> >How-To-Repeat: N/A >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # starplot # starplot/Makefile # starplot/distinfo # starplot/files # starplot/files/patch-Makefile # starplot/files/patch-gui::Makefile # starplot/files/patch-gui::filedialogs.cc # starplot/pkg-plist # starplot/pkg-comment # starplot/pkg-descr # echo c - starplot mkdir -p starplot > /dev/null 2>&1 echo x - starplot/Makefile sed 's/^X//' >starplot/Makefile << 'END-of-starplot/Makefile' X# New ports collection makefile for: starplot X# Date created: Mon Aug 20 09:08:07 EDT 2001 X# Whom: Patrick Li <pat@databits.net> X# X# $FreeBSD$ X# X XPORTNAME= starplot XPORTVERSION= 0.92.1 XCATEGORIES= astro XMASTER_SITES= http://www.princeton.edu/~kmccarty/downloads/ X XMAINTAINER= pat@databits.net X XUSE_X_PREFIX= yes XUSE_GMAKE= yes XUSE_GTK= yes XUSE_XPM= yes XMAKE_ENV= DATADIR="${DATADIR}" \ X DOCSDIR="${DOCSDIR}" X XMAN1= starplot.1 starconvert.1 X Xpre-patch: X @${PERL} -pi.orig -e 's|DATADIR|${DATADIR}|; s|DOCDIR|${DOCSDIR}|; \ X s|BINARYNAME|${PORTNAME}|; s|CONVERTNAME|starconvert|' \ X ${WRKSRC}/doc/man/* X @${PERL} -pi.orig -e 's|/usr/local/share/starplot|${DATADIR}|; \ X s|/usr/local/share/doc/starplot|${DOCSDIR}|' \ X ${WRKSRC}/gui/starplot.h X Xdo-install: X @${INSTALL_PROGRAM} ${WRKSRC}/starplot ${PREFIX}/bin X @${INSTALL_PROGRAM} ${WRKSRC}/starconvert ${PREFIX}/bin X @${INSTALL_MAN} ${WRKSRC}/doc/man/starplot-template \ X ${PREFIX}/man/man1/starplot.1 X @${INSTALL_MAN} ${WRKSRC}/doc/man/starconvert-template \ X ${PREFIX}/man/man1/starconvert.1 X @${MKDIR} ${DATADIR} X @${MKDIR} ${DATADIR}/examples X @${INSTALL_DATA} ${WRKSRC}/examples/*.stars \ X ${DATADIR}/examples X.if !defined(NOPORTDOCS) X @${MKDIR} ${DOCSDIR} X @${MKDIR} ${DOCSDIR}/examples X @${MKDIR} ${DOCSDIR}/html X @${MKDIR} ${DOCSDIR}/html/images X @${INSTALL_DATA} ${WRKSRC}/examples/example.spec \ X ${DOCSDIR}/examples X @${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} X @${INSTALL_DATA} ${WRKSRC}/doc/html/*.html ${DOCSDIR}/html X @${INSTALL_DATA} ${WRKSRC}/doc/html/images/* ${DOCSDIR}/html/images X.endif X X.include <bsd.port.mk> END-of-starplot/Makefile echo x - starplot/distinfo sed 's/^X//' >starplot/distinfo << 'END-of-starplot/distinfo' XMD5 (starplot-0.92.1.tar.gz) = a5fa82659bff3019ead4ec54dfa826d4 END-of-starplot/distinfo echo c - starplot/files mkdir -p starplot/files > /dev/null 2>&1 echo x - starplot/files/patch-Makefile sed 's/^X//' >starplot/files/patch-Makefile << 'END-of-starplot/files/patch-Makefile' X--- Makefile.orig Wed Jun 20 05:48:41 2001 X+++ Makefile Mon Aug 20 11:19:22 2001 X@@ -1,34 +1,9 @@ X-# Makefile for StarPlot X+BINARYNAME = starplot X+CONVERTNAME = starconvert X+CFLAGS += -Wall `${GTK_CONFIG} --cflags` X+LFLAGS = `${GTK_CONFIG} --libs` X X-# this is for easier debianizing: X-DESTDIR = X-TREEDIR = usr/local X-TOPDIR = $(DESTDIR)/$(TREEDIR) X- X-# installation locations: ----------------------------------------------- X-export BINARYNAME = starplot X-export CONVERTNAME = starconvert X-export DATADIR = $(TOPDIR)/share/$(BINARYNAME) X-export DOCDIR = $(TOPDIR)/share/doc/$(BINARYNAME) X-INSTALLDIR = $(TOPDIR)/bin X-MANDIR = $(TOPDIR)/man/man1 X- X-# locations of programs needed for compiling / installing: X-export CXX = g++ X-export SED = sed X-INSTALL = install X- X-# compiler flags: X-export CFLAGS = -Wall -pedantic -O2 X-LFLAGS = `gtk-config --libs` X- X-# targets --------------------------------------------------------------- X- X-.PHONY: all object-files conv-files doc-files starplot starconvert debian \ X- clean dist-clean debian-clean install install-bin install-doc \ X- install-debian install-examples install-gpl install-man uninstall X- X-all: object-files conv-files doc-files X+all: object-files conv-files X X object-files: X $(MAKE) -C classes X@@ -38,79 +13,3 @@ X conv-files: X $(MAKE) -C convert X $(CXX) convert/*.o classes/*.o -o $(CONVERTNAME) $(CFLAGS) -lm X- X-doc-files: X- $(MAKE) -C doc X- X-# The next two targets are not used by the default build and are just for X-# convenience if you only want to build one of the two programs. X-starplot: object-files X-starconvert: X- $(MAKE) -C classes X- $(MAKE) conv-files X- X-debian: X- dpkg-buildpackage -rfakeroot X- X-clean: X- $(MAKE) -C gui clean X- $(MAKE) -C classes clean X- $(MAKE) -C convert clean X- X-dist-clean: clean X- rm -f $(BINARYNAME) $(CONVERTNAME) build-stamp configure-stamp X- $(MAKE) -C doc clean X- X-debian-clean: dist-clean X- rm -rf debian/starplot/* X- rm -f debian/files debian/substvars X- rm -f debian/*.debhelper X- X-# install everything X-install: install-examples install-gpl X- X-# install only things relevant to creating a Debian package X-install-debian: install-examples install-doc X- X-# install just the binary and create an empty data directory X-install-bin: X- $(INSTALL) -d -m 0755 $(INSTALLDIR) $(DATADIR) X- $(INSTALL) -m 0755 -s $(BINARYNAME) $(INSTALLDIR) X- $(INSTALL) -m 0755 -s $(CONVERTNAME) $(INSTALLDIR) X- X-# install example star data files as well as the binary X-install-examples: install-bin X- $(INSTALL) -d -m 0755 $(DATADIR)/examples X- $(INSTALL) -m 0644 examples/*.stars $(DATADIR)/examples X- X-# install the text and HTML documentation only X-install-doc: X- $(INSTALL) -d -m 0755 $(DOCDIR) $(DOCDIR)/examples X- $(INSTALL) -m 0644 examples/example.spec $(DOCDIR)/examples X- $(INSTALL) -m 0644 README INSTALL Makefile $(DOCDIR) X- $(INSTALL) -d -m 0755 $(DOCDIR)/html $(DOCDIR)/html/images X- $(INSTALL) -m 0644 doc/html/*.html $(DOCDIR)/html X- $(INSTALL) -m 0644 doc/html/images/* $(DOCDIR)/html/images X- X-# install man pages too X-install-man: install-doc X- $(INSTALL) -d -m 0755 $(MANDIR) X- $(INSTALL) -m 0644 doc/man/starplot.1 $(MANDIR)/$(BINARYNAME).1 X- $(INSTALL) -m 0644 doc/man/starconvert.1 $(MANDIR)/$(CONVERTNAME).1 X- X-# install the GPL as well as the docs X-# (this is separate since most people already have more than enough copies X-# of the GPL lying around on their hard drives) X-install-gpl: install-man X- $(INSTALL) -m 0644 COPYING $(DOCDIR) X- X-# You can uninstall StarPlot even after deleting the source tree because X-# this Makefile will have been installed in $(DOCDIR). X- X-uninstall: X- -rm -f $(INSTALLDIR)/$(BINARYNAME) $(INSTALLDIR)/$(CONVERTNAME) X- -rm -rf $(DATADIR)/examples X- -rmdir $(DATADIR) X- -rm -rf $(DOCDIR) X- -rm -f $(MANDIR)/$(BINARYNAME).* $(MANDIR)/$(CONVERTNAME).* X- END-of-starplot/files/patch-Makefile echo x - starplot/files/patch-gui::Makefile sed 's/^X//' >starplot/files/patch-gui::Makefile << 'END-of-starplot/files/patch-gui::Makefile' X--- gui/Makefile.orig Fri Mar 2 08:39:03 2001 X+++ gui/Makefile Mon Aug 20 11:16:35 2001 X@@ -1,21 +1,21 @@ X HEADERS = starplot.h gtkviewer.h menu.h ../classes/stararray.h \ X ../classes/star.h ../classes/greek.h ../classes/specclass.h \ X ../classes/stringops.h ../classes/mathops.h ../classes/viewer.h X-DATADEF = -DDATADIR=\"$(DATADIR)\" X-DOCDEF = -DDOCDIR=\"$(DOCDIR)\" X+DATADEF = -DDATADIR=\"${DATADIR}\" X+DOCDEF = -DDOCDIR=\"${DOCSDIR}\" X+CFLAGS += `${GTK_CONFIG} --cflags` X X all: starplot.o menuops.o filedialogs.o infodialogs.o chartdialogs.o \ X hrdiagram.o X X %.o: %.cc $(HEADERS) X- $(CXX) -c $< `gtk-config --cflags` $(CFLAGS) $(DATADEF) X+ $(CXX) -c $< $(CFLAGS) $(DATADEF) X X menuops.o: menuops.cc $(HEADERS) xpmdata.h ../version.h X- $(CXX) -c menuops.cc `gtk-config --cflags` $(CFLAGS) \ X- $(DATADEF) $(DOCDEF) X+ $(CXX) -c menuops.cc $(CFLAGS) $(DATADEF) $(DOCDEF) X X starplot.o: starplot.cc $(HEADERS) ../version.h X- $(CXX) -c starplot.cc `gtk-config --cflags` $(CFLAGS) $(DATADEF) X+ $(CXX) -c starplot.cc $(CFLAGS) $(DATADEF) X X clean: X rm -f *.o *.cc~ *.h~ END-of-starplot/files/patch-gui::Makefile echo x - starplot/files/patch-gui::filedialogs.cc sed 's/^X//' >starplot/files/patch-gui::filedialogs.cc << 'END-of-starplot/files/patch-gui::filedialogs.cc' X--- gui/filedialogs.cc.orig Mon Aug 20 13:14:42 2001 X+++ gui/filedialogs.cc Mon Aug 20 13:14:52 2001 X@@ -159,7 +159,7 @@ X if (select_function == help_ok_sel || select_function == help_open_sel) { X if (!help_browser) X gtk_file_selection_set_filename (GTK_FILE_SELECTION(filew), X- "/usr/bin/"); X+ "~/"); X else X gtk_file_selection_set_filename (GTK_FILE_SELECTION(filew), X help_browser); END-of-starplot/files/patch-gui::filedialogs.cc echo x - starplot/pkg-plist sed 's/^X//' >starplot/pkg-plist << 'END-of-starplot/pkg-plist' Xbin/starplot Xbin/starconvert X%%PORTDOCS%%share/doc/starplot/README X%%PORTDOCS%%share/doc/starplot/examples/example.spec X%%PORTDOCS%%share/doc/starplot/html/ch1.html X%%PORTDOCS%%share/doc/starplot/html/images/bayerdes.png X%%PORTDOCS%%share/doc/starplot/html/images/coords.png X%%PORTDOCS%%share/doc/starplot/html/images/gcoords.png X%%PORTDOCS%%share/doc/starplot/html/images/hrdiagram.png X%%PORTDOCS%%share/doc/starplot/html/index.html Xshare/starplot/examples/sample.stars Xshare/starplot/examples/test.stars X@dirrm share/starplot/examples X@dirrm share/starplot/ X%%PORTDOCS%%@dirrm share/doc/starplot/html/images X%%PORTDOCS%%@dirrm share/doc/starplot/html X%%PORTDOCS%%@dirrm share/doc/starplot/examples X%%PORTDOCS%%@dirrm share/doc/starplot/ END-of-starplot/pkg-plist echo x - starplot/pkg-comment sed 's/^X//' >starplot/pkg-comment << 'END-of-starplot/pkg-comment' XA 3-Dimensional Star Chart Viewer END-of-starplot/pkg-comment echo x - starplot/pkg-descr sed 's/^X//' >starplot/pkg-descr << 'END-of-starplot/pkg-descr' XStarPlot allows you to view three-dimensional perspective charts Xof stars. Check the website to get more star data sets X XWWW: http://www.princeton.edu/~kmccarty/starplot.html XAuthor: Kevin B. McCarty <kmccarty@princeton.edu> X X- Patrick Li <pat@databits.net> END-of-starplot/pkg-descr exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200108202014.f7KKEHI74399>