summaryrefslogtreecommitdiff
path: root/converters
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2011-06-22 13:43:45 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2011-06-22 13:43:45 +0000
commit2372f8ec7a36a9fb85bb69311ce81114d5bd1a04 (patch)
treefd5e3c04c33b6a0f6c34cc9fb1f122495db6c0f0 /converters
parent- Update to 0.6.6 (diff)
OpenStreetMap data into Polish map format (MP) convertor
WWW: http://code.google.com/p/osm2mp/
Notes
Notes: svn path=/head/; revision=276067
Diffstat (limited to 'converters')
-rw-r--r--converters/Makefile1
-rw-r--r--converters/osm2mp/Makefile42
-rw-r--r--converters/osm2mp/distinfo2
-rw-r--r--converters/osm2mp/files/pkg-message.in3
-rw-r--r--converters/osm2mp/pkg-descr3
-rw-r--r--converters/osm2mp/pkg-plist35
6 files changed, 86 insertions, 0 deletions
diff --git a/converters/Makefile b/converters/Makefile
index fc415d11c56d..30eb323cebad 100644
--- a/converters/Makefile
+++ b/converters/Makefile
@@ -48,6 +48,7 @@
SUBDIR += mule-ucs
SUBDIR += nomyso
SUBDIR += o3read
+ SUBDIR += osm2mp
SUBDIR += p5-Boulder
SUBDIR += p5-Convert-ASCII-Armour
SUBDIR += p5-Convert-ASN1
diff --git a/converters/osm2mp/Makefile b/converters/osm2mp/Makefile
new file mode 100644
index 000000000000..3a403f87cea8
--- /dev/null
+++ b/converters/osm2mp/Makefile
@@ -0,0 +1,42 @@
+# New ports collection makefile for: osm2mp
+# Date created: 21 Jun 2011
+# Whom: Dmitry Marakasov <amdmi3@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= osm2mp
+PORTVERSION= r475
+CATEGORIES= converters geography
+MASTER_SITES= http://mirror.amdmi3.ru/distfiles/
+
+MAINTAINER= amdmi3@FreeBSD.org
+COMMENT= OpenStreetMap data into Polish map format (MP) convertor
+
+RUN_DEPENDS= ${SITE_PERL}/YAML.pm:${PORTSDIR}/textproc/p5-YAML \
+ ${SITE_PERL}/Encode/Locale.pm:${PORTSDIR}/converters/p5-Encode-Locale \
+ ${SITE_PERL}/Math/Polygon.pm:${PORTSDIR}/math/p5-Math-Polygon \
+ ${SITE_PERL}/Math/Polygon/Tree.pm:${PORTSDIR}/math/p5-Math-Polygon-Tree \
+ ${SITE_PERL}/Tree/R.pm:${PORTSDIR}/devel/p5-Tree-R \
+ ${SITE_PERL}/${PERL_ARCH}/Template.pm:${PORTSDIR}/www/p5-Template-Toolkit \
+ ${SITE_PERL}/${PERL_ARCH}/Math/Geometry/Planar/GPC/Polygon.pm:${PORTSDIR}/math/p5-Math-Geometry-Planar-GPC-Polygon \
+ ${SITE_PERL}/${PERL_ARCH}/List/MoreUtils.pm:${PORTSDIR}/lang/p5-List-MoreUtils
+
+LICENSE= GPLv2
+
+USE_BZIP2= yes
+USE_PERL5_RUN= yes
+NO_BUILD= yes
+
+SUB_FILES= pkg-message
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|garmin.yml|${DATADIR}/&|' ${WRKSRC}/osm2mp.pl
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/osm2mp.pl ${PREFIX}/bin/osm2mp
+ ${MKDIR} ${DATADIR}
+ cd ${WRKSRC} && ${COPYTREE_SHARE} '*.cmap *.yml *.txt *.typ polish-mp' ${DATADIR}/
+ @${ECHO_CMD}; ${CAT} ${PKGMESSAGE}; ${ECHO_CMD}
+
+.include <bsd.port.mk>
diff --git a/converters/osm2mp/distinfo b/converters/osm2mp/distinfo
new file mode 100644
index 000000000000..dc08279a09aa
--- /dev/null
+++ b/converters/osm2mp/distinfo
@@ -0,0 +1,2 @@
+SHA256 (osm2mp-r475.tar.bz2) = 9ca7083594a6b433d7bf515587cc7d55650a9f7041fafc442c7dd838d1d4d65c
+SIZE (osm2mp-r475.tar.bz2) = 47053
diff --git a/converters/osm2mp/files/pkg-message.in b/converters/osm2mp/files/pkg-message.in
new file mode 100644
index 000000000000..7855063b879d
--- /dev/null
+++ b/converters/osm2mp/files/pkg-message.in
@@ -0,0 +1,3 @@
+If you need to tune osm2mp configuration files, you may copy
+%%DATADIR%% to some directory you own and use
+osm2mp's --config option to point it to modified files.
diff --git a/converters/osm2mp/pkg-descr b/converters/osm2mp/pkg-descr
new file mode 100644
index 000000000000..3a7c72f8bd4f
--- /dev/null
+++ b/converters/osm2mp/pkg-descr
@@ -0,0 +1,3 @@
+OpenStreetMap data into Polish map format (MP) convertor
+
+WWW: http://code.google.com/p/osm2mp/
diff --git a/converters/osm2mp/pkg-plist b/converters/osm2mp/pkg-plist
new file mode 100644
index 000000000000..d89902306626
--- /dev/null
+++ b/converters/osm2mp/pkg-plist
@@ -0,0 +1,35 @@
+bin/osm2mp
+%%DATADIR%%/cp1250.cmap
+%%DATADIR%%/cp1251.cmap
+%%DATADIR%%/garmin-auto-ru.yml
+%%DATADIR%%/garmin-auto.yml
+%%DATADIR%%/garmin-ru.yml
+%%DATADIR%%/garmin-water.yml
+%%DATADIR%%/garmin.yml
+%%DATADIR%%/iso-3166-1-a2-en.txt
+%%DATADIR%%/iso-3166-1-a2-ru.txt
+%%DATADIR%%/osm.typ
+%%DATADIR%%/osm_pv.txt
+%%DATADIR%%/polish-mp/nodes-common-en.yml
+%%DATADIR%%/polish-mp/nodes-common-ru.yml
+%%DATADIR%%/polish-mp/nodes-common-univ.yml
+%%DATADIR%%/polish-mp/nodes-common.yml
+%%DATADIR%%/polish-mp/nodes-garmin-custom-univ.yml
+%%DATADIR%%/polish-mp/nodes-garmin-custom.yml
+%%DATADIR%%/polish-mp/nodes-garmin-marine.yml
+%%DATADIR%%/polish-mp/output-polish.yml
+%%DATADIR%%/polish-mp/ways-areas-common-univ.yml
+%%DATADIR%%/polish-mp/ways-areas-common.yml
+%%DATADIR%%/polish-mp/ways-areas-garmin-custom-univ.yml
+%%DATADIR%%/polish-mp/ways-areas-garmin-custom.yml
+%%DATADIR%%/polish-mp/ways-lines-common-univ.yml
+%%DATADIR%%/polish-mp/ways-lines-common.yml
+%%DATADIR%%/polish-mp/ways-lines-garmin-custom-univ.yml
+%%DATADIR%%/polish-mp/ways-lines-garmin-custom.yml
+%%DATADIR%%/polish-mp/ways-roads-common-univ.yml
+%%DATADIR%%/polish-mp/ways-roads-common.yml
+%%DATADIR%%/polish-mp/ways-roads-garmin-univ.yml
+%%DATADIR%%/polish-mp/ways-roads-garmin.yml
+%%DATADIR%%/polish-mp/ways-roads-waterway.yml
+@dirrm %%DATADIR%%/polish-mp
+@dirrm %%DATADIR%%