Permalink
Browse files

first commit

  • Loading branch information...
0 parents commit dd0853ad82d429ecc4978a52834eac866e7b7298 @timschmidt committed Jan 21, 2011
Showing with 1,752 additions and 0 deletions.
  1. +118 −0 ChangeLog
  2. +96 −0 GNUmakefile
  3. +38 −0 INSTALL
  4. +23 −0 LICENSE
  5. +98 −0 Makefile
  6. +66 −0 README
  7. +4 −0 depend
  8. +73 −0 license.c
  9. +66 −0 macros.h
  10. +421 −0 parse.c
  11. +100 −0 parse.h
  12. +167 −0 stl2pov.1
  13. +301 −0 stl2pov.c
  14. +119 −0 utils.c
  15. +59 −0 utils.h
  16. +3 −0 version.inc
118 ChangeLog
@@ -0,0 +1,118 @@
+commit 3337b7ef0cbcaa5e24ffd29688927452b1213657
+Author: Roland Smith <rsmith@slackbox.xs4all.nl>
+Date: Mon Mar 30 21:41:23 2009 +0200
+
+ Import data from FreeBSD port
+
+commit 39287d2e8d8704077461bad28ab4138b5cd8be8e
+Author: Roland Smith <rsmith@slackbox.xs4all.nl>
+Date: Sat Mar 28 09:55:05 2009 +0100
+
+ Update copyright notices before creating the release.
+
+commit cfe842e2e2e267a3e86a2b418f6cc52aa07cf310
+Author: Roland Smith <rsmith@slackbox.xs4all.nl>
+Date: Sat Mar 28 09:48:25 2009 +0100
+
+ Release 2.4.3. Change reading of binary files.
+
+commit 07cd5a986e34856a5f0ee4eb2944133697ae7e3b
+Author: Roland Smith <rsmith@slackbox.xs4all.nl>
+Date: Mon Mar 23 18:13:45 2009 +0100
+
+ Change docs from ps to pdf.
+
+commit 346a3e9c4b35c779b964f794b79bfbb00840fc1b
+Author: Roland Smith <rsmith@slackbox.xs4all.nl>
+Date: Tue Nov 18 19:44:22 2008 +0100
+
+ Change structure alignment on win32.
+
+commit c8f69bb7d6f96cabe1516c63abbd063bca4cacb6
+Author: Roland Smith <rsmith@slackbox.xs4all.nl>
+Date: Mon Nov 10 13:31:38 2008 +0100
+
+ Fix reading big binary files (metatron.stl) on windows.
+
+commit 857623dc5bd92545b391e07c8fbc24e1eae01def
+Author: Roland Smith <rsmith@rfs.erewhon.net>
+Date: Thu Nov 6 09:27:34 2008 +0100
+
+ Start bugfix on windoze.
+
+commit 364e8b2261fea1c294fba1044e70e858e6b14f18
+Author: Roland Smith <rsmith@slackbox.xs4all.nl>
+Date: Wed Feb 13 15:35:55 2008 +0100
+
+ Release 2.4.2.
+
+commit e96192486c4eb2bc154663ec97aad57059aafbc4
+Author: Roland Smith <rsmith@slackbox.xs4all.nl>
+Date: Thu Jul 19 12:33:18 2007 +0200
+
+ Enhance status reporting; make it more frequent.
+ Label as release 2.4.1.
+
+commit 9cbd3ef4ac86a81b558bee5fc3edf4f3c4fa1c13
+Author: Roland Smith <rsmith@slackbox.xs4all.nl>
+Date: Tue Jun 19 21:25:05 2007 +0200
+
+ Updated win makefile for 2.4.0.
+
+commit b915e143ff4123ab3448df2fec3d629a384d5a48
+Author: Roland Smith <rsmith@slackbox.xs4all.nl>
+Date: Tue Jun 19 21:20:25 2007 +0200
+
+ Edits for release 2.4.0.
+
+commit 5532be8a8888b22afdaa396911d6cd7d4ab90ba0
+Author: Roland Smith <rsmith@slackbox.xs4all.nl>
+Date: Tue Jun 19 00:31:44 2007 +0200
+
+ Made handling of binary files less fussy.
+ Updated copyright symbol and date in all source files.
+
+commit d51b76cf8f08207164206134a2b179d8faef7ccc
+Author: Roland Smith <rsmith@slackbox.xs4all.nl>
+Date: Mon Jun 5 14:09:06 2006 +0200
+
+ Version 2.3.0; chase mesh syntax change in povray.
+
+commit ac090ad16084ebe6ceb3709515a45404945cfd00
+Author: Roland Smith <rsmith@slackbox.xs4all.nl>
+Date: Sat Apr 8 20:04:13 2006 +0200
+
+ Switched from svn to git for ChangeLog generation.
+
+commit ceed7c2a32f62d693e299a20c2817b501ffeb5e7
+Author: Roland Smith <rsmith@slackbox.xs4all.nl>
+Date: Sat Apr 8 19:29:11 2006 +0200
+
+ Prepare for release 2.2.1. Changed port/distinfo and win/Makefile
+for release 2.2.1. Fix distinfo and pkg-list for FreeBSD port of
+release 2.2.1. Merge port makefile fixes from committer.
+
+commit 2af59b14b95ae70a418b50e0a01133973b4b3c29
+Author: Roland Smith <rsmith@slackbox.xs4all.nl>
+Date: Sat Apr 8 19:27:06 2006 +0200
+
+ Version 2.2.0. Add port infrastructure for FreeBSD. Fixed Makefile
+to mind PORTDOCS.
+
+commit 049648997711219e28d7f0cf1d2285bf05c9f2ee
+Author: Roland Smith <rsmith@slackbox.xs4all.nl>
+Date: Sat Apr 8 19:25:01 2006 +0200
+
+ Version 2.1.0.
+
+commit 187a552c501ddcf4b55283df08cfb3a16b352314
+Author: Roland Smith <rsmith@slackbox.xs4all.nl>
+Date: Sat Apr 8 19:22:11 2006 +0200
+
+ Version 2.0.0, with FreeBSD fixes applied.
+
+commit b5cb1eac0e426c8bbacb0ef6468c4fa6e5b28908
+Author: Roland Smith <rsmith@slackbox.xs4all.nl>
+Date: Sat Apr 8 19:18:03 2006 +0200
+
+ Initial import of version 1.0.0.
@@ -0,0 +1,96 @@
+# Time-stamp: <2009-10-29 07:31:52 rsmith>
+# This is the Makefile for stl2pov
+
+# Define the C compiler to be used, usually gcc.
+#CC = gcc
+
+# Package name and version: BASENAME-VMAJOR.VMINOR.VPATCH.tar.gz
+BASENAME = stl2pov
+include version.inc
+
+# Add appropriate CFLAGS and LFLAGS
+CFLAGS ?= -O2 -pipe
+CFLAGS += -Wall -Wshadow -Wpointer-arith -Wstrict-prototypes
+CFLAGS += -fmerge-constants -ffast-math -DNDEBUG
+LFLAGS += -s -pipe -fmerge-constants
+
+# Other libraries to link against
+LIBS += -lm
+
+# Base directory
+PREFIX ?= /usr/local
+
+# Location where the binary will be installed.
+BINDIR = $(PREFIX)/bin
+
+# Location where the manual-page will be installed.
+MANDIR = $(PREFIX)/man
+
+# Location where the documentation will be installed.
+DOCSDIR= $(PREFIX)/share/doc/$(BASENAME)
+
+##### Maintainer stuff goes here:
+
+# Standard files that need to be included in the distribution
+DISTFILES = README INSTALL LICENSE Makefile $(BASENAME).1 depend version.inc
+
+# Source files.
+SRCS = license.c parse.c stl2pov.c utils.c
+
+# Extra stuff to add into the distribution.
+XTRA_DIST=
+
+##### No editing necessary beyond this point
+# Object files.
+OBJS = $(SRCS:.c=.o)
+
+# Predefined directory/file names
+PKGDIR = $(BASENAME)-$(VMAJOR).$(VMINOR).$(VPATCH)
+TARFILE = $(PKGDIR).tar.gz
+
+# Version number
+VERSION = -DVERSION=\"$(VMAJOR).$(VMINOR).$(VPATCH)\"
+# Program name
+PACKAGE = -DPACKAGE=\"$(BASENAME)\"
+# Add to CFLAGS
+CFLAGS += $(VERSION) $(PACKAGE)
+
+.PHONY: clean install uninstall dist all log winbin
+
+all: $(BASENAME) $(BASENAME).1 README INSTALL
+
+# builds a binary.
+$(BASENAME): $(OBJS)
+ $(CC) $(LFLAGS) $(LDIRS) -o $(BASENAME) $(OBJS) $(LIBS)
+
+# Remove all generated files.
+clean:;
+ rm -f $(OBJS) $(BASENAME) *~ core gmon.out $(TARFILE)* \
+ $(LOG)
+
+
+# Install the program and manual page. You should be root to do this.
+install: $(BASENAME) $(BASENAME).1 LICENSE README INSTALL $(LOG)
+ @if [ `id -u` != 0 ]; then \
+ echo "You must be root to install the program!"; \
+ exit 1; \
+ fi
+ install -d $(BINDIR)
+ install -m 755 $(BASENAME) $(BINDIR)
+ install -d $(MANDIR)/man1
+ install -m 644 $(BASENAME).1 $(MANDIR)/man1
+ gzip -f $(MANDIR)/man1/$(BASENAME).1
+ install -d $(DOCSDIR)
+ install -m 644 LICENSE README INSTALL $(LOG) $(DOCSDIR)
+
+uninstall:;
+ @if [ `id -u` != 0 ]; then \
+ echo "You must be root to uninstall the program!"; \
+ exit 1; \
+ fi
+ rm -f $(BINDIR)/$(BASENAME)
+ rm -f $(MANDIR)/man1/$(BASENAME).1*
+ rm -rf $(DOCSDIR)
+
+# Dependencies after this line.
+include depend
38 INSTALL
@@ -0,0 +1,38 @@
+Installation instructions for stl2pov 2.4.4, released on 2009-10-29.
+
+Building the program
+--------------------
+
+Have a look at the Makefile. At the top of the Makefile there are some
+options that can be customized. Usually it is fine to leave them as they are.
+
+If you want to use different compiler and linker options, modify the CFLAGS
+and LFLAGS respectively. If you want to use another compiler instead of
+gcc, you will probably have to change them, along with the CC variable that
+specifies the compiler. If you don't know what this means, leave CC,
+CFLAGS and LFLAGS as they are.
+
+The variables whose name ends in DIR specify where different parts of the
+program are installed.
+
+It is usually not necessary to edit the makefile below the line
+"##### Maintainer stuff goes here:"
+
+To build the program, simply issue the "make" command. This should work
+without producing errors.
+
+If it fails because the compiler can't find a header file, first check if
+you have it installed, and then add an "-I" flag describing the location of
+the header file to CFLAGS. If it can't find a library, add the appropriate
+"-L" option to LFLAGS. See the compiler manual for further information.
+
+
+Installing the program
+----------------------
+
+If building the program succeeded, you should issue the "su" command to
+become root, and then give the "make install" command from the source
+directory to install the program.
+
+To remove the program, use "make uninstall" from the source directory as
+root.
23 LICENSE
@@ -0,0 +1,23 @@
+stl2pov is copyright © 2004--2007 R.F.Smith <rsmith@xs4all.nl>.
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGE.
@@ -0,0 +1,98 @@
+# Time-stamp: <2009-10-29 07:31:52 rsmith>
+# This is the Makefile for stl2pov
+
+# Define the C compiler to be used, usually gcc.
+#CC = gcc
+
+# Package name and version: BASENAME-VMAJOR.VMINOR.VPATCH.tar.gz
+BASENAME = stl2pov
+.include "version.inc"
+
+# Add appropriate CFLAGS and LFLAGS
+CFLAGS ?= -O2 -pipe
+CFLAGS += -Wall -Wshadow -Wpointer-arith -Wstrict-prototypes
+CFLAGS += -fmerge-constants -ffast-math -DNDEBUG
+LFLAGS += -s -pipe -fmerge-constants
+
+# Other libraries to link against
+LIBS += -lm
+
+# Base directory
+PREFIX ?= /usr/local
+
+# Location where the binary will be installed.
+BINDIR = $(PREFIX)/bin
+
+# Location where the manual-page will be installed.
+MANDIR = $(PREFIX)/man
+
+# Location where the documentation will be installed.
+DOCSDIR= $(PREFIX)/share/doc/$(BASENAME)
+
+##### Maintainer stuff goes here:
+
+# Standard files that need to be included in the distribution
+DISTFILES = README INSTALL LICENSE Makefile $(BASENAME).1 depend version.inc
+
+# Source files.
+SRCS = license.c parse.c stl2pov.c utils.c
+
+# Extra stuff to add into the distribution.
+XTRA_DIST=
+
+##### No editing necessary beyond this point
+# Object files.
+OBJS = $(SRCS:.c=.o)
+
+# Predefined directory/file names
+PKGDIR = $(BASENAME)-$(VMAJOR).$(VMINOR).$(VPATCH)
+TARFILE = $(PKGDIR).tar.gz
+
+# Version number
+VERSION = -DVERSION=\"$(VMAJOR).$(VMINOR).$(VPATCH)\"
+# Program name
+PACKAGE = -DPACKAGE=\"$(BASENAME)\"
+# Add to CFLAGS
+CFLAGS += $(VERSION) $(PACKAGE)
+
+.PHONY: clean install uninstall dist all log winbin
+
+all: $(BASENAME) $(BASENAME).1 README INSTALL
+
+# builds a binary.
+$(BASENAME): $(OBJS)
+ $(CC) $(LFLAGS) $(LDIRS) -o $(BASENAME) $(OBJS) $(LIBS)
+
+# Remove all generated files.
+clean:;
+ rm -f $(OBJS) $(BASENAME) *~ core gmon.out $(TARFILE)* \
+ $(LOG)
+
+
+# Install the program and manual page. You should be root to do this.
+install: $(BASENAME) $(BASENAME).1 LICENSE README INSTALL $(LOG)
+ @if [ `id -u` != 0 ]; then \
+ echo "You must be root to install the program!"; \
+ exit 1; \
+ fi
+ install -d $(BINDIR)
+ install -m 755 $(BASENAME) $(BINDIR)
+ install -d $(MANDIR)/man1
+ install -m 644 $(BASENAME).1 $(MANDIR)/man1
+ gzip -f $(MANDIR)/man1/$(BASENAME).1
+.if !defined(NOPORTDOCS)
+ install -d $(DOCSDIR)
+ install -m 644 LICENSE README INSTALL $(LOG) $(DOCSDIR)
+.endif
+
+uninstall:;
+ @if [ `id -u` != 0 ]; then \
+ echo "You must be root to uninstall the program!"; \
+ exit 1; \
+ fi
+ rm -f $(BINDIR)/$(BASENAME)
+ rm -f $(MANDIR)/man1/$(BASENAME).1*
+ rm -rf $(DOCSDIR)
+
+# Dependencies after this line.
+include depend
Oops, something went wrong.

0 comments on commit dd0853a

Please sign in to comment.