summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorAaron Dalton <aaron@FreeBSD.org>2006-12-30 15:59:56 +0000
committerAaron Dalton <aaron@FreeBSD.org>2006-12-30 15:59:56 +0000
commit5e72726d93cdb330fe992fd3b8252b72f5165e04 (patch)
treef2813535a56d73b3c722f6474d5f91f12962a409 /games
parentmod_xsendfile is a small Apache2 module that processes X-SENDFILE headers (diff)
Adding port games/mkhexgrid, a fully configurable hex-grid generator.
Notes
Notes: svn path=/head/; revision=181063
Diffstat (limited to 'games')
-rw-r--r--games/Makefile1
-rw-r--r--games/mkhexgrid/Makefile40
-rw-r--r--games/mkhexgrid/distinfo3
-rw-r--r--games/mkhexgrid/pkg-descr8
4 files changed, 52 insertions, 0 deletions
diff --git a/games/Makefile b/games/Makefile
index 793ca6a3b4c4..60ffa87c6f45 100644
--- a/games/Makefile
+++ b/games/Makefile
@@ -444,6 +444,7 @@
SUBDIR += mindguard
SUBDIR += mirrormagic
SUBDIR += miscom
+ SUBDIR += mkhexgrid
SUBDIR += monkeybubble
SUBDIR += monopd
SUBDIR += monster-masher
diff --git a/games/mkhexgrid/Makefile b/games/mkhexgrid/Makefile
new file mode 100644
index 000000000000..b2f20b48a716
--- /dev/null
+++ b/games/mkhexgrid/Makefile
@@ -0,0 +1,40 @@
+# New ports collection makefile for: mkhexgrid
+# Date created: 29 Dec 2006
+# Whom: aaron@FreeBSD.org
+#
+# $FreeBSD$
+#
+
+PORTNAME= mkhexgrid
+PORTVERSION= 0.1.0
+CATEGORIES= games
+MASTER_SITES= http://www.nomic.net/~uckelman/mkhexgrid/releases/ \
+ http://aaron.daltons.ca/freebsd/
+EXTRACT_SUFX= .src.tar.gz
+
+MAINTAINER= aaron@FreeBSD.org
+COMMENT= A fully-configurable hex grid generator
+
+BUILD_DEPENDS= ${LOCALBASE}/include/boost/lexical_cast.hpp:${PORTSDIR}/devel/boost
+LIB_DEPENDS= gd.4:${PORTSDIR}/graphics/gd
+
+USE_GMAKE= yes
+
+PORTDOCS= mkhexgrid.html
+PLIST_FILES= bin/mkhexgrid
+
+post-patch:
+ @${REINPLACE_CMD} -e 's:^LDFLAGS=:LDFLAGS=-L${LOCALBASE}/lib :' ${WRKSRC}/Makefile
+ @${REINPLACE_CMD} -e 's:^CPPFLAGS=:CPPFLAGS=-I${LOCALBASE}/include :' ${WRKSRC}/Makefile
+
+do-install:
+ @${INSTALL_PROGRAM} ${WRKSRC}/mkhexgrid ${PREFIX}/bin
+
+post-install:
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+ @${INSTALL_DATA} ${WRKSRC}/mkhexgrid.html ${DOCSDIR}
+ @${ECHO} "Documentation has been installed in ${DOCSDIR}."
+.endif
+
+.include <bsd.port.mk>
diff --git a/games/mkhexgrid/distinfo b/games/mkhexgrid/distinfo
new file mode 100644
index 000000000000..11e8953f6796
--- /dev/null
+++ b/games/mkhexgrid/distinfo
@@ -0,0 +1,3 @@
+MD5 (mkhexgrid-0.1.0.src.tar.gz) = b542a24f10ff98968cc9077c2e02dda4
+SHA256 (mkhexgrid-0.1.0.src.tar.gz) = 9387a334852f25b660f2828834e912ad758c820c1eb1628558680595df292e6e
+SIZE (mkhexgrid-0.1.0.src.tar.gz) = 29355
diff --git a/games/mkhexgrid/pkg-descr b/games/mkhexgrid/pkg-descr
new file mode 100644
index 000000000000..2bd21ab1e8f4
--- /dev/null
+++ b/games/mkhexgrid/pkg-descr
@@ -0,0 +1,8 @@
+mkhexgrid 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
+be adjusted.from grid line thickness and color, to style and size of hex
+centers, to the style and position of hex coordinates. mkhexgrid makes it
+simple to create whatever hex grid you need.
+
+WWW: http://www.nomic.net/~uckelman/mkhexgrid/