the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: antiprism
Version: 0.17
Revision: 1001
BuildDepends: fink (>= 0.24.12-1), freeglut (>= 2.4.0-2), x11-dev
Depends: freeglut-shlibs (>= 2.4.0-2), x11
GCC: 4.0
Source: mirror:sourceforge:%n/%n-%v.tar.gz
Source-MD5: dc2eced921c8b462c63c76da1f9ba1d3
PatchFile: %n.patch
PatchFile-MD5: b09baf2515a74a1799171997a5dc825d
PatchScript: <<
%{default_script}
perl -pi -e 's/minmax/minmax-%n/g' doc/*.html NEWS
mv doc/minmax.html doc/minmax-%n.html
<<
SetCPPFLAGS: -I/usr/X11R6/include
SetLDFLAGS: -L/usr/X11R6/lib -framework OpenGL -dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
SetCFLAGS: -g -Os -Wall
SetCXXFLAGS: -g -Os -Wall
ConfigureParams: --disable-dependency-tracking
InstallScript: <<
make install DESTDIR=%d
mv %i/bin/minmax %i/bin/minmax-%n
mv %i/share/doc/%n-%v %i/share/doc/%n
<<
DocFiles: COPYING
DescPackaging: <<
Make sure all doc files wind up in consistent location.
Need versioned freeglut dep to ensure libglut.la is present in
case %n ever gets libtoolized.
Rename the %p/bin/minmax command to "minmax-%n" to avoid
collision with same command-name in gmt package.
<<
Description: Polyhedra manipulations and viewing
License: BSD
Homepage: http://www.antiprism.com
Maintainer: Daniel Macks
diff -Nurd -x'*~' antiprism-0.15.orig/src/minmax.cc antiprism-0.15/src/minmax.cc
--- antiprism-0.15.orig/src/minmax.cc 2007-07-12 04:24:56.000000000 -0400
+++ antiprism-0.15/src/minmax.cc 2007-08-27 21:50:36.000000000 -0400
@@ -53,7 +53,7 @@
string ifile;
string ofile;
- mm_opts(): prog_opts("minmax"), num_iters(1000), algm('a'),
+ mm_opts(): prog_opts("minmax-antiprism"), num_iters(1000), algm('a'),
placement('n'), shorten_by(1.0), lengthen_by(0.0)
{}