Import routino-3.3.2

ok rsadowski@

Routino is an application for finding a route between two points using
the dataset of topographical information collected by
http://www.OpenStreetMap.org.
This commit is contained in:
kirby 2020-08-22 06:01:08 +00:00
parent 6ed302ec63
commit 1f66968808
7 changed files with 221 additions and 0 deletions

32
geo/routino/Makefile Normal file
View File

@ -0,0 +1,32 @@
# $OpenBSD: Makefile,v 1.1.1.1 2020/08/22 06:01:08 kirby Exp $
COMMENT = OpenStreetMap routing software
DISTNAME = routino-3.3.2
SHARED_LIBS += routino 0.0
SHARED_LIBS += routino-slim 0.0
CATEGORIES = geo
HOMEPAGE = https://www.routino.org/
MAINTAINER = Kirill Bychkov <kirby@openbsd.org>
# AGPLv3+
PERMIT_PACKAGE = Yes
WANTLIB = bz2 c m pthread z
MASTER_SITES = https://www.routino.org/download/
EXTRACT_SUFX = .tgz
LIB_DEPENDS = archivers/bzip2
MAKE_FLAGS = CC=${CC} LD=${CC} \
CFLAGS="${CFLAGS} -pthread -DUSE_PTHREADS -I${LOCALBASE}/include" \
LDFLAGS="-lm -pthread -lbz2 -lz -L${LOCALBASE}/lib"
USE_GMAKE = Yes
.include <bsd.port.mk>

2
geo/routino/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (routino-3.3.2.tgz) = S3F012lV4FiYbTQ2NeChhDhfJ1b6T/wC614jmZIenbE=
SIZE (routino-3.3.2.tgz) = 2542029

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-Makefile,v 1.1.1.1 2020/08/22 06:01:08 kirby Exp $
Index: Makefile
--- Makefile.orig
+++ Makefile
@@ -24,7 +24,7 @@ include Makefile.conf
# Sub-directories and sub-makefiles
-SUBDIRS=src xml doc web extras python
+SUBDIRS=src xml doc web extras
########

View File

@ -0,0 +1,29 @@
$OpenBSD: patch-Makefile_conf,v 1.1.1.1 2020/08/22 06:01:08 kirby Exp $
Index: Makefile.conf
--- Makefile.conf.orig
+++ Makefile.conf
@@ -45,11 +45,11 @@ endif
# Installation locations (edit if required)
ifneq ($(HOST),MINGW)
- prefix=/usr/local
+ prefix=${TRUEPREFIX}
bindir=$(prefix)/bin
incdir=$(prefix)/include
libdir=$(prefix)/lib
- docdir=$(prefix)/doc/routino
+ docdir=$(prefix)/share/doc/routino
datadir=$(prefix)/share/routino
else
prefix="c:/Program Files/Routino"
@@ -133,8 +133,8 @@ endif
# Extra flags for compiling libroutino shared library (SONAME)
ifeq ($(HOST),UNIX)
- LDFLAGS_SONAME=-Wl,-soname=libroutino.so.$(SOVERSION)
- LDFLAGS_SLIM_SONAME=-Wl,-soname=libroutino-slim.so.$(SOVERSION)
+ LDFLAGS_SONAME=-Wl,-soname=libroutino.so.${libroutino_ltversion}
+ LDFLAGS_SLIM_SONAME=-Wl,-soname=libroutino-slim.so.${libroutino_slim_ltversion}
endif
# Put the current directory in the shared library path for the router using libroutino

View File

@ -0,0 +1,69 @@
$OpenBSD: patch-src_Makefile,v 1.1.1.1 2020/08/22 06:01:08 kirby Exp $
Index: src/Makefile
--- src/Makefile.orig
+++ src/Makefile
@@ -38,9 +38,7 @@ EXE=planetsplitter$(.EXE) planetsplitter-slim$(.EXE) r
router+lib$(.EXE) router+lib-slim$(.EXE)
ifneq ($(HOST),MINGW)
- LIB =libroutino.so libroutino-slim.so
- LIB+=libroutino.so.$(SOVERSION) libroutino-slim.so.$(SOVERSION)
- LIB+=libroutino.so.$(LIBVERSION) libroutino-slim.so.$(LIBVERSION)
+ LIB =libroutino.so.${libroutino_ltversion} libroutino-slim.so.${libroutino_slim_ltversion}
else
LIB =routino.dll routino-slim.dll
LIB+=routino.def routino-slim.def
@@ -50,8 +48,8 @@ endif
INC=routino.h
ifneq ($(HOST),MINGW)
- LINK_LIB=libroutino.so
- LINK_SLIM_LIB=libroutino-slim.so
+ LINK_LIB=libroutino.so.${libroutino_ltversion}
+ LINK_SLIM_LIB=libroutino-slim.so.${libroutino_slim_ltversion}
else
LINK_LIB=routino.dll
LINK_SLIM_LIB=routino-slim.dll
@@ -206,15 +204,9 @@ ifeq ($(HOST),MINGW)
LIBROUTINO_OBJ+=mman-win32.o
endif
-libroutino.so.$(LIBVERSION) : $(LIBROUTINO_OBJ)
+libroutino.so.${libroutino_ltversion} : $(LIBROUTINO_OBJ)
$(LD) $^ -o $@ $(LDFLAGS) $(LDFLAGS_LIB) $(LDFLAGS_SONAME)
-libroutino.so.$(SOVERSION) : libroutino.so.$(LIBVERSION)
- ln -sf $< $@
-
-libroutino.so : libroutino.so.$(LIBVERSION)
- ln -sf $< $@
-
routino.dll : $(LIBROUTINO_OBJ)
$(LD) $^ -o $@ $(LDFLAGS) $(LDFLAGS_LIB)
@@ -236,15 +228,9 @@ ifeq ($(HOST),MINGW)
LIBROUTINO_SLIM_OBJ+=mman-win32.o
endif
-libroutino-slim.so.$(LIBVERSION) : $(LIBROUTINO_SLIM_OBJ)
+libroutino-slim.so.${libroutino_slim_ltversion} : $(LIBROUTINO_SLIM_OBJ)
$(LD) $^ -o $@ $(LDFLAGS) $(LDFLAGS_LIB) $(LDFLAGS_SLIM_SONAME)
-libroutino-slim.so.$(SOVERSION) : libroutino-slim.so.$(LIBVERSION)
- ln -sf $< $@
-
-libroutino-slim.so : libroutino-slim.so.$(LIBVERSION)
- ln -sf $< $@
-
routino-slim.dll : $(LIBROUTINO_SLIM_OBJ)
$(LD) $^ -o $@ $(LDFLAGS) $(LDFLAGS_LIB)
@@ -299,7 +285,7 @@ install-local: all-local
@for file in $(LIB); do \
if [ -f $$file ]; then \
echo cp $$file $(DESTDIR)$(libdir) ;\
- cp -df $$file $(DESTDIR)$(libdir) ;\
+ cp -f $$file $(DESTDIR)$(libdir) ;\
fi ;\
done

26
geo/routino/pkg/DESCR Normal file
View File

@ -0,0 +1,26 @@
Routino is an application for finding a route between two points using
the dataset of topographical information collected by
http://www.OpenStreetMap.org.
This router uses a routing algorithm that takes OSM format data as its
input and calculates either the shortest or quickest route between two
points. To optimise the routing a custom database format is used. This
allows the routing to be performed quickly after a modest one-off
pre-processing stage.
A selection is possible for any of the major OSM transport types and for
each of the main OSM highway types a preference can be provided and a
speed limit. Restrictions on one-way streets, weight, height, width and
length are also options. Further preferences about road properties (e.g.
paved or not) can also be selected.
The processing of the input XML file is based on rules in a
configuration file that transform the highway tags into tags that are
understood by Routino. The generation of the output files (HTML and GPX)
uses language fragments selected from another configuration file which
allows multi-lingual output from the same database.
The router takes into account private/public/permissive restrictions on
highways as well as tagged speed limits and barriers (gates, bollards).
The simplest and most common turn restriction relations (those composed
of a way, node and way) are also supported.

49
geo/routino/pkg/PLIST Normal file
View File

@ -0,0 +1,49 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2020/08/22 06:01:08 kirby Exp $
@bin bin/filedumper
@bin bin/filedumper-slim
@bin bin/filedumperx
@bin bin/planetsplitter
@bin bin/planetsplitter-slim
@bin bin/router
@bin bin/router+lib
@bin bin/router+lib-slim
@bin bin/router-slim
include/routino.h
@lib lib/libroutino-slim.so.${LIBroutino-slim_VERSION}
@lib lib/libroutino.so.${LIBroutino_VERSION}
share/doc/routino/
share/doc/routino/ALGORITHM.txt
share/doc/routino/CONFIGURATION.txt
share/doc/routino/DATA.txt
share/doc/routino/DATALIFE.txt
share/doc/routino/INSTALL-MS-WIN.txt
share/doc/routino/INSTALL.txt
share/doc/routino/LIBRARY.txt
share/doc/routino/LIMITS.txt
share/doc/routino/NEWS.txt
share/doc/routino/OUTPUT.txt
share/doc/routino/README.txt
share/doc/routino/TAGGING.txt
share/doc/routino/USAGE.txt
share/doc/routino/agpl-3.0.txt
share/doc/routino/html/
share/doc/routino/html/algorithm.html
share/doc/routino/html/configuration.html
share/doc/routino/html/data.html
share/doc/routino/html/index.html
share/doc/routino/html/installation-ms-windows.html
share/doc/routino/html/installation.html
share/doc/routino/html/library.html
share/doc/routino/html/limits.html
share/doc/routino/html/output.html
share/doc/routino/html/readme.html
share/doc/routino/html/style.css
share/doc/routino/html/tagging.html
share/doc/routino/html/usage.html
share/routino/
share/routino/profiles.xml
share/routino/tagging-drive.xml
share/routino/tagging-ride.xml
share/routino/tagging-walk.xml
share/routino/tagging.xml
share/routino/translations.xml