Import JOSM, graphical editor for OpenStreetMap, improved & ok sthen@
This commit is contained in:
parent
7cfe9babd0
commit
ab841c2487
48
geo/josm/Makefile
Normal file
48
geo/josm/Makefile
Normal file
@ -0,0 +1,48 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2009/08/02 18:38:53 ian Exp $
|
||||
|
||||
COMMENT= OpenStreetMap map editor
|
||||
|
||||
SVN_REV= 1788
|
||||
DISTNAME= josm-1.5.${SVN_REV}
|
||||
PKG_ARCH= *
|
||||
|
||||
CATEGORIES= geo
|
||||
|
||||
HOMEPAGE= http://josm.openstreetmap.de/
|
||||
MASTER_SITES= http://www.darwinsys.com/mirror/josm/
|
||||
|
||||
MAINTAINER= Ian Darwin <ian@openbsd.org>
|
||||
|
||||
# GPLv2
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
MODULES= java \
|
||||
textproc/intltool
|
||||
MODJAVA_VER= 1.6+
|
||||
|
||||
RUN_DEPENDS= ::java/javaPathHelper \
|
||||
::devel/desktop-file-utils
|
||||
NO_REGRESS= Yes
|
||||
|
||||
do-build:
|
||||
@cd ${WRKDIST} && exec ${SETENV} ${MAKE_ENV} ant -q \
|
||||
-Dant.build.javac.source="1.5" -Dant.build.javac.target="1.5" dist
|
||||
|
||||
INSTALL_DIR = josm
|
||||
|
||||
do-install:
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/${INSTALL_DIR}
|
||||
${INSTALL_DATA} $(WRKDIST)/dist/josm-custom.jar ${PREFIX}/share/${INSTALL_DIR}/josm-latest.jar
|
||||
@${SUBST_CMD} -c files/josm.sh $(PREFIX)/bin/josm
|
||||
chown ${BINOWN}:${BINGRP} $(PREFIX)/bin/josm
|
||||
chmod +x $(PREFIX)/bin/josm
|
||||
nroff -man $(FILESDIR)/josm.1 > $(PREFIX)/man/cat1/josm.0
|
||||
${INSTALL_DATA} $(WRKDIST)/images/logo.png ${PREFIX}/share/${INSTALL_DIR}/osm_logo.png
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/applications/
|
||||
@${SUBST_CMD} -c ${FILESDIR}/josm.desktop ${PREFIX}/share/applications/josm.desktop
|
||||
chown ${SHAREOWN}:${SHAREGRP} $(PREFIX)/share/applications/josm.desktop
|
||||
|
||||
.include <bsd.port.mk>
|
5
geo/josm/distinfo
Normal file
5
geo/josm/distinfo
Normal file
@ -0,0 +1,5 @@
|
||||
MD5 (josm-1.5.1788.tar.gz) = lwpVn78ef4e+Fl4BjAbocw==
|
||||
RMD160 (josm-1.5.1788.tar.gz) = GwHHhPCYLu3JKyqG/f8Yjp1gbjw=
|
||||
SHA1 (josm-1.5.1788.tar.gz) = wnN4qAcMoXbj+fO4KRPuAnQK6ZQ=
|
||||
SHA256 (josm-1.5.1788.tar.gz) = 7tsoUUR1KC+MmJIlTqtOvo2mhpySXrLsAdO1C/nrYhY=
|
||||
SIZE (josm-1.5.1788.tar.gz) = 11105935
|
34
geo/josm/files/josm.1
Normal file
34
geo/josm/files/josm.1
Normal file
@ -0,0 +1,34 @@
|
||||
.\" $OpenBSD: josm.1,v 1.1.1.1 2009/08/02 18:38:53 ian Exp $
|
||||
.\"
|
||||
.\" The following requests are required for all man pages.
|
||||
.\"
|
||||
.Dd $Mdocdate: August 2 2009 $
|
||||
.Dt JOSM 1
|
||||
.Os
|
||||
.Sh NAME
|
||||
.Nm josm
|
||||
.Nd Map editor for the OpenStreetMap project.
|
||||
.Sh SYNOPSIS
|
||||
.Nm josm
|
||||
.Ar [file]
|
||||
.Sh DESCRIPTION
|
||||
The
|
||||
.Nm
|
||||
utility is a GUI tool to edit the free map of the world maintained at OpenStreetMap.org.
|
||||
It can edit existing map data, or it can create annotations over top of "raw" GPS tracks
|
||||
(loaded in GPX format), and upload them to the central OpenStreetMap server.
|
||||
Information on getting started can be found at
|
||||
http://wiki.openstreetmap.org/index.php/Starter_Tutorial.
|
||||
.Pp
|
||||
If you invoke
|
||||
.Nm
|
||||
with a file argument, it will be loaded,
|
||||
otherwise, load files via the GUI.
|
||||
.Sh FILES
|
||||
$HOME/.josm \-
|
||||
top level directory; has subdirectories to load plugins into, save bookmarks
|
||||
and plugins, etc.
|
||||
.Sh SEE ALSO
|
||||
.Xr gpsbabel 1 ,
|
||||
.Xr gpsd 8
|
||||
\- other GPX-related tools.
|
9
geo/josm/files/josm.desktop
Normal file
9
geo/josm/files/josm.desktop
Normal file
@ -0,0 +1,9 @@
|
||||
[Desktop Entry]
|
||||
Name=JOSM OpenStreetMap Editor
|
||||
Comment=OpenStreetMap Graphical Editor
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Categories=Graphics;Editor;
|
||||
MimeType=application/x-osm;
|
||||
Icon=${TRUEPREFIX}/share/josm/osm_logo.png
|
||||
Exec=${TRUEPREFIX}/bin/josm %f
|
5
geo/josm/files/josm.sh
Executable file
5
geo/josm/files/josm.sh
Executable file
@ -0,0 +1,5 @@
|
||||
#!/bin/ksh
|
||||
|
||||
JAVA_CMD=$(javaPathHelper -c josm)
|
||||
|
||||
${JAVA_CMD} -jar ${TRUEPREFIX}/share/josm/josm-latest.jar $*
|
18
geo/josm/patches/patch-build_xml
Normal file
18
geo/josm/patches/patch-build_xml
Normal file
@ -0,0 +1,18 @@
|
||||
$OpenBSD: patch-build_xml,v 1.1.1.1 2009/08/02 18:38:53 ian Exp $
|
||||
--- build.xml.orig Sat Aug 1 22:11:14 2009
|
||||
+++ build.xml Sat Aug 1 22:11:51 2009
|
||||
@@ -12,14 +12,7 @@
|
||||
|
||||
<target name="dist" depends="compile">
|
||||
|
||||
- <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
|
||||
- <env key="LANG" value="C"/>
|
||||
- <arg value="info"/>
|
||||
- <arg value="--xml"/>
|
||||
- <arg value="."/>
|
||||
- </exec>
|
||||
<xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
|
||||
- <delete file="REVISION"/>
|
||||
<property name="version.entry.commit.revision" value="UNKNOWN"/>
|
||||
<property name="version.entry.commit.date" value="UNKNOWN"/>
|
||||
|
10
geo/josm/pkg/DESCR
Normal file
10
geo/josm/pkg/DESCR
Normal file
@ -0,0 +1,10 @@
|
||||
JOSM is an editor for the free map of the world being built at
|
||||
OpenStreetMap (http://www.openstreetmap.org). The current version
|
||||
supports a wide range of graphical editing operations and "pre-sets"
|
||||
for common objects, and works on stand- alone GPX tracks, GPX track
|
||||
data from the OSM database and existing nodes, line segments and
|
||||
metadata tags from the OSM database.
|
||||
|
||||
Most of JOSM works nicely on OpenBSD. One exception is the WMS/Yahoo
|
||||
plugin, which requires a separate executable at present but which
|
||||
should someday be rewritten to use the Java 2D graphics API.
|
7
geo/josm/pkg/PLIST
Normal file
7
geo/josm/pkg/PLIST
Normal file
@ -0,0 +1,7 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2009/08/02 18:38:53 ian Exp $
|
||||
bin/josm
|
||||
@man man/cat1/josm.0
|
||||
share/applications/josm.desktop
|
||||
share/josm/
|
||||
share/josm/josm-latest.jar
|
||||
share/josm/osm_logo.png
|
Loading…
Reference in New Issue
Block a user