aboutsummaryrefslogtreecommitdiffstats
path: root/astro
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2011-05-03 09:44:32 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2011-05-03 09:44:32 +0800
commitf4119545582425c5c79b714647906654edd24486 (patch)
tree8596a2f00bbe186c9f5c67cd8078491d78fe09d7 /astro
parent2607f1e52a1b1781ff040c071bc4f27dd3f5f4c1 (diff)
downloadfreebsd-ports-gnome-f4119545582425c5c79b714647906654edd24486.tar.gz
freebsd-ports-gnome-f4119545582425c5c79b714647906654edd24486.tar.zst
freebsd-ports-gnome-f4119545582425c5c79b714647906654edd24486.zip
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
Diffstat (limited to 'astro')
-rw-r--r--astro/Makefile1
-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
6 files changed, 66 insertions, 0 deletions
diff --git a/astro/Makefile b/astro/Makefile
index 3d71a5759f68..6a738b129835 100644
--- a/astro/Makefile
+++ b/astro/Makefile
@@ -42,6 +42,7 @@
SUBDIR += match
SUBDIR += merkaartor
SUBDIR += mkgmap
+ SUBDIR += mkgmap-splitter
SUBDIR += mymoon
SUBDIR += nightfall
SUBDIR += nova
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%%