aboutsummaryrefslogtreecommitdiff
path: root/astro/mkgmap-splitter
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2011-05-03 01:44:32 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2011-05-03 01:44:32 +0000
commitb247c2c438190563eced8acd4398867918ee0c68 (patch)
tree56283e2088e749a70f3e489a006a1c4beefd95bd /astro/mkgmap-splitter
parent4e045607e9967f8cedda9d1892f8beb2239d6eaf (diff)
downloadports-b247c2c438190563eced8acd4398867918ee0c68.tar.gz
ports-b247c2c438190563eced8acd4398867918ee0c68.zip
Notes
Diffstat (limited to 'astro/mkgmap-splitter')
-rw-r--r--astro/mkgmap-splitter/Makefile40
-rw-r--r--astro/mkgmap-splitter/distinfo2
-rw-r--r--astro/mkgmap-splitter/files/splitter.sh.in7
-rw-r--r--astro/mkgmap-splitter/pkg-descr6
-rw-r--r--astro/mkgmap-splitter/pkg-plist10
5 files changed, 65 insertions, 0 deletions
diff --git a/astro/mkgmap-splitter/Makefile b/astro/mkgmap-splitter/Makefile
new file mode 100644
index 000000000000..ede770daa59c
--- /dev/null
+++ b/astro/mkgmap-splitter/Makefile
@@ -0,0 +1,40 @@
+# New ports collection makefile for: mkgmap-splitter
+# Date created: 03 May 2011
+# Whom: Dmitry Marakasov <amdmi3@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= splitter
+PORTVERSION= r171
+CATEGORIES= astro converters java
+MASTER_SITES= http://www.mkgmap.org.uk/splitter/ \
+ http://mirror.amdmi3.ru/distfiles/
+PKGNAMEPREFIX= mkgmap-
+
+MAINTAINER= amdmi3@FreeBSD.org
+COMMENT= Tile splitter for mkgmap
+
+NO_BUILD= yes
+
+USE_JAVA= yes
+JAVA_VERSION= 1.6+
+
+SUB_FILES= ${PORTNAME}.sh
+
+PORTDOCS= *
+
+DATADIR= ${PREFIX}/share/${PKGNAMEPREFIX}${PORTNAME}
+
+do-install:
+ ${MKDIR} ${DATADIR}/lib
+ ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.jar ${DATADIR}/
+ ${INSTALL_DATA} ${WRKSRC}/lib/*.jar ${DATADIR}/lib/
+ ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${PREFIX}/bin/${PKGNAMEPREFIX}${PORTNAME}
+.if !defined(NOPORTDOCS)
+post-install:
+ ${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/doc/intro.txt ${DOCSDIR}/
+.endif
+
+.include <bsd.port.mk>
diff --git a/astro/mkgmap-splitter/distinfo b/astro/mkgmap-splitter/distinfo
new file mode 100644
index 000000000000..7eb9dffe535e
--- /dev/null
+++ b/astro/mkgmap-splitter/distinfo
@@ -0,0 +1,2 @@
+SHA256 (splitter-r171.tar.gz) = d3e26938003e5dd80de07241c0dd3ed121fd26cc7239fcbf0c53c01b47bb76e8
+SIZE (splitter-r171.tar.gz) = 2224789
diff --git a/astro/mkgmap-splitter/files/splitter.sh.in b/astro/mkgmap-splitter/files/splitter.sh.in
new file mode 100644
index 000000000000..aa94d65a8d84
--- /dev/null
+++ b/astro/mkgmap-splitter/files/splitter.sh.in
@@ -0,0 +1,7 @@
+#!/bin/sh
+#
+# $FreeBSD$
+
+JAVA="%%LOCALBASE%%/bin/java"
+
+exec "${JAVA}" -Xmx1024m -jar %%DATADIR%%/splitter.jar "$@"
diff --git a/astro/mkgmap-splitter/pkg-descr b/astro/mkgmap-splitter/pkg-descr
new file mode 100644
index 000000000000..7ba244ff1652
--- /dev/null
+++ b/astro/mkgmap-splitter/pkg-descr
@@ -0,0 +1,6 @@
+The format used for Garmin maps has, in effect, a maximum size,
+meaning that you have to split an .osm file that contains large
+well mapped regions into a number of smaller tiles. This program
+does that.
+
+WWW: http://www.mkgmap.org.uk/page/tile-splitter
diff --git a/astro/mkgmap-splitter/pkg-plist b/astro/mkgmap-splitter/pkg-plist
new file mode 100644
index 000000000000..4e36b6aff312
--- /dev/null
+++ b/astro/mkgmap-splitter/pkg-plist
@@ -0,0 +1,10 @@
+bin/mkgmap-splitter
+%%DATADIR%%/lib/dsiutils-1.0.11.jar
+%%DATADIR%%/lib/fastutil.jar
+%%DATADIR%%/lib/osmpbf.jar
+%%DATADIR%%/lib/protobuf.jar
+%%DATADIR%%/lib/testng-5.9-jdk15.jar
+%%DATADIR%%/lib/xpp3-1.1.4c.jar
+%%DATADIR%%/splitter.jar
+@dirrm %%DATADIR%%/lib
+@dirrm %%DATADIR%%