[63407] trunk/dports/graphics

snc at macports.org snc at macports.org
Thu Feb 4 01:12:06 PST 2010


Revision: 63407
          http://trac.macports.org/changeset/63407
Author:   snc at macports.org
Date:     2010-02-04 01:12:05 -0800 (Thu, 04 Feb 2010)
Log Message:
-----------
create mkhexgrid

Added Paths:
-----------
    trunk/dports/graphics/mkhexgrid/
    trunk/dports/graphics/mkhexgrid/Portfile
    trunk/dports/graphics/mkhexgrid/files/
    trunk/dports/graphics/mkhexgrid/files/patch-Makefile.diff
    trunk/dports/graphics/mkhexgrid/files/patch-mkhexgrid.cpp.diff

Added: trunk/dports/graphics/mkhexgrid/Portfile
===================================================================
--- trunk/dports/graphics/mkhexgrid/Portfile	                        (rev 0)
+++ trunk/dports/graphics/mkhexgrid/Portfile	2010-02-04 09:12:05 UTC (rev 63407)
@@ -0,0 +1,54 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
+# $Id: Portfile 57375 2009-09-10 08:16:41Z ryandesign at macports.org $
+
+PortSystem          1.0
+
+name                mkhexgrid
+version             0.1.1
+categories          graphics print games textproc
+maintainers         snc openmaintainer
+description         Generates hexagonal grids often used for strategy games.
+long_description    ${name} is a small command-line program which generates \
+                    hexagonal grids of the sort used for strategy games. Hex \
+                    grids can be created as PNG or SVG images, and as \
+                    PostScript. Virtually every aspect of the output can be \
+                    adjusted—from grid line thickness and color, to style and \
+                    size of hex centers, to the style and position of hex \
+                    coordinates. ${name} makes it simple to create whatever \
+                    hex grid you need.
+homepage            http://www.nomic.net/~uckelman/mkhexgrid
+
+platforms           freebsd darwin
+depends_lib         port:gd2 port:boost
+
+master_sites        ${homepage}/releases
+distname            ${name}-${version}.src
+worksrcdir          ${name}-${version}
+use_bzip2           yes
+checksums           md5     5a0bdedbee65c97144288cd91e4415db \
+                    sha1    3b8e0be3636f90a3217a5e3556bdaf7bb0c49116 \
+                    rmd160  81afd57bd41307369c9f305d600308ff3236eadd
+
+use_configure       no
+
+patchfiles          patch-Makefile.diff \
+                    patch-mkhexgrid.cpp.diff
+post-patch {
+    reinplace s|@@PREFIX@@|${destroot}${prefix}|g ${worksrcpath}/Makefile
+    reinplace s|@@CC@@|${configure.cc}|g ${worksrcpath}/Makefile
+    reinplace s|@@CPPFLAGS@@|${configure.cppflags}|g ${worksrcpath}/Makefile
+    reinplace s|@@LDFLAGS@@|${configure.ldflags}|g ${worksrcpath}/Makefile
+}
+
+notes \
+"A tutorial is available here:
+
+    http://www.nomic.net/~uckelman/mkhexgrid/tutorial.html
+
+The Reference Manual is available here:
+
+    http://www.nomic.net/~uckelman/mkhexgrid/mkhexgrid.htm"
+
+livecheck.type      regex
+livecheck.url       ${homepage}
+livecheck.regex     "${name}-(\\d+\\.\\d+(\\.\\d+)?)\\.src${extract.suffix}"

Added: trunk/dports/graphics/mkhexgrid/files/patch-Makefile.diff
===================================================================
--- trunk/dports/graphics/mkhexgrid/files/patch-Makefile.diff	                        (rev 0)
+++ trunk/dports/graphics/mkhexgrid/files/patch-Makefile.diff	2010-02-04 09:12:05 UTC (rev 63407)
@@ -0,0 +1,21 @@
+--- Makefile.orig	2010-02-04 01:44:31.000000000 -0500
++++ Makefile	2010-02-04 01:49:41.000000000 -0500
+@@ -1,4 +1,4 @@
+-DESTDIR=/usr/local
++DESTDIR=@@PREFIX@@
+ BINDIR=$(DESTDIR)/bin
+ DOCDIR=$(DESTDIR)/share/doc
+ MANDIR=$(DESTDIR)/share/man
+@@ -8,9 +8,9 @@
+ DISTDIR=mkhexgrid-$(VERSION)
+ RPMDIR=/home/uckelman/rpmbuild
+ 
+-CC=g++
+-CPPFLAGS=-c -g -O2 -W -Wall -DVERSION='"$(VERSION)"'
+-LDFLAGS=-lm -lstdc++ -lgd
++CC=@@CC@@
++CPPFLAGS=-c -g -O2 -W -Wall -DVERSION='"$(VERSION)"' @@CPPFLAGS@@
++LDFLAGS=-lm -lstdc++ -lgd @@LDFLAGS@@
+ 
+ FILES=grid.h \
+       grid.cpp \

Added: trunk/dports/graphics/mkhexgrid/files/patch-mkhexgrid.cpp.diff
===================================================================
--- trunk/dports/graphics/mkhexgrid/files/patch-mkhexgrid.cpp.diff	                        (rev 0)
+++ trunk/dports/graphics/mkhexgrid/files/patch-mkhexgrid.cpp.diff	2010-02-04 09:12:05 UTC (rev 63407)
@@ -0,0 +1,11 @@
+--- mkhexgrid.cpp.orig	2010-02-04 04:08:54.000000000 -0500
++++ mkhexgrid.cpp	2010-02-04 04:09:16.000000000 -0500
+@@ -148,7 +148,7 @@
+       Grid g(opt);
+       g.draw();
+    }
+-   catch (exception &e) {
++   catch (std::exception &e) {
+       cerr << argv[0] << ": " << e.what() << endl;
+       exit(1);
+    }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100204/801a85da/attachment.html>


More information about the macports-changes mailing list