source: trunk/dports/graphics/mkhexgrid/Portfile

Last change on this file was 139491, checked in by snc@…, 2 years ago

mkhexgrid: fix CXX to use the right compiler

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
1# -*- 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
2# $Id: Portfile 139491 2015-08-18 19:03:45Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                mkhexgrid
7version             0.1.1
8revision            2
9categories          graphics print games textproc
10maintainers         snc openmaintainer
11license             GPL-2+
12description         Generates hexagonal grids often used for strategy games.
13long_description    ${name} is a small command-line program which generates \
14                    hexagonal grids of the sort used for strategy games. Hex \
15                    grids can be created as PNG or SVG images, and as \
16                    PostScript. Virtually every aspect of the output can be \
17                    adjustedfrom grid line thickness and color, to style and \
18                    size of hex centers, to the style and position of hex \
19                    coordinates. ${name} makes it simple to create whatever \
20                    hex grid you need.
21homepage            http://www.nomic.net/~uckelman/mkhexgrid
22
23platforms           freebsd darwin
24depends_lib         port:gd2 port:boost
25
26master_sites        ${homepage}/releases
27distname            ${name}-${version}.src
28worksrcdir          ${name}-${version}
29use_bzip2           yes
30checksums           rmd160  81afd57bd41307369c9f305d600308ff3236eadd \
31                    sha256  122609261cc91c2063ab5315d4316a27c9a0ab164f663a6cb781dd87310be3dc
32
33use_configure       no
34
35patchfiles          patch-Makefile.diff \
36                    patch-mkhexgrid.cpp.diff
37post-patch {
38    reinplace s|@@PREFIX@@|${destroot}${prefix}|g ${worksrcpath}/Makefile
39    reinplace s|@@CC@@|${configure.cc}|g ${worksrcpath}/Makefile
40    reinplace s|@@CPPFLAGS@@|${configure.cppflags}|g ${worksrcpath}/Makefile
41    reinplace s|@@LDFLAGS@@|${configure.ldflags}|g ${worksrcpath}/Makefile
42}
43
44notes "
45A tutorial is available here:
46
47    http://www.nomic.net/~uckelman/mkhexgrid/tutorial.html
48
49The Reference Manual is available here:
50
51    http://www.nomic.net/~uckelman/mkhexgrid/mkhexgrid.htm
52"
53
54livecheck.type      regex
55livecheck.url       ${homepage}
56livecheck.regex     "${name}-(\\d+\\.\\d+(\\.\\d+)?)\\.src${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.