# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
categories graphics print games textproc
maintainers {snc @nerdling} 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 \
homepage http://www.nomic.net/~uckelman/mkhexgrid
depends_lib port:gd2 port:boost
master_sites ${homepage}/releases
distname ${name}-${version}.src
worksrcdir ${name}-${version}
checksums rmd160 81afd57bd41307369c9f305d600308ff3236eadd \
sha256 122609261cc91c2063ab5315d4316a27c9a0ab164f663a6cb781dd87310be3dc
patchfiles patch-Makefile.diff \
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
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.url ${homepage}
livecheck.regex "${name}-(\\d+\\.\\d+(\\.\\d+)?)\\.src${extract.suffix}"