# -*- 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 # $Id: Portfile 139491 2015-08-18 19:03:45Z snc@macports.org $ PortSystem 1.0 name mkhexgrid version 0.1.1 revision 2 categories graphics print games textproc maintainers snc openmaintainer license GPL-2+ 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 rmd160 81afd57bd41307369c9f305d600308ff3236eadd \ sha256 122609261cc91c2063ab5315d4316a27c9a0ab164f663a6cb781dd87310be3dc 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}"