View | Details | Raw Unified | Return to bug 214758 | Differences between
and this patch

Collapse All | Expand All

(-)i/graphics/openorienteering-mapper/Makefile (+51 lines)
Added Link Here
1
# Created by: Nikolay Korotkiy <sikmir@gmail.com>
2
# $FreeBSD$
3
4
PORTNAME=	openorienteering-mapper
5
PORTVERSION=	0.8.1
6
DISTVERSIONPREFIX=	v
7
CATEGORIES=	graphics geography
8
9
MAINTAINER=	sikmir@gmail.com
10
COMMENT=	Map drawing program from OpenOrienteering
11
12
LICENSE=	GPLv3
13
LICENSE_FILE=	${WRKSRC}/COPYING
14
15
LIB_DEPENDS=	libpolyclipping.so:graphics/polyclipping \
16
		libproj.so:graphics/proj
17
18
USE_GITHUB=	yes
19
GH_ACCOUNT=	OpenOrienteering
20
GH_PROJECT=	mapper
21
22
USES=		cmake:outsource,noninja compiler:c++14-lang \
23
		desktop-file-utils gmake shared-mime-info
24
USE_QT5=	buildtools_build qmake_build core gui \
25
		location network printsupport sensors widgets
26
27
CMAKE_ARGS+=	-DLICENSING_PROVIDER=freebsd \
28
		-DMapper_PACKAGE_NAME=${PORTNAME} \
29
		-Wno-dev
30
31
OPTIONS_DEFINE=	DOCS EXAMPLES GDAL NLS TEST TIFF
32
OPTIONS_DEFAULT=	GDAL
33
OPTIONS_SUB=	yes
34
DOCS_CMAKE_BOOL=	Mapper_WITH_DOCS
35
DOCS_BUILD_DEPENDS=	doxygen:devel/doxygen
36
DOCS_USE=	QT5=assistant_run
37
EXAMPLES_CMAKE_BOOL=	Mapper_WITH_EXAMPLES
38
GDAL_DESC=	Use the GDAL library
39
GDAL_CMAKE_BOOL=	Mapper_USE_GDAL
40
GDAL_LIB_DEPENDS=	libgdal.so:graphics/gdal
41
NLS_CMAKE_BOOL=	Mapper_WITH_NLS
42
NLS_BUILD_DEPENDS=	gsed:textproc/gsed
43
NLS_USE=	QT5=linguisttools_build
44
NLS_USES=	gettext-runtime
45
TEST_CMAKE_BOOL=	Mapper_WITH_TEST
46
TEST_USE=	QT5=testlib_build
47
TEST_TEST_TARGET=	test
48
TIFF_DESC=	Support for TIFF
49
TIFF_USE=	QT5=imageformats
50
51
.include <bsd.port.mk>
(-)i/graphics/openorienteering-mapper/distinfo (+3 lines)
Added Link Here
1
TIMESTAMP = 1523720387
2
SHA256 (OpenOrienteering-mapper-v0.8.1_GH0.tar.gz) = 14debf0c31a3ca5b608154e264007a7582ea87d3466bd7d30527157396ae16d7
3
SIZE (OpenOrienteering-mapper-v0.8.1_GH0.tar.gz) = 8449610
(-)i/graphics/openorienteering-mapper/files/patch-CMakeLists.txt (+47 lines)
Added Link Here
1
--- CMakeLists.txt.orig	2018-03-11 14:00:07 UTC
2
+++ CMakeLists.txt
3
@@ -69,6 +69,11 @@ option(Mapper_DEBUG_TRANSLATIONS "Debug 
4
 # Used for some Linux distributions which do not provide the polyclipping lib.
5
 option(Mapper_BUILD_CLIPPER "Build the Clipper package from source" OFF)
6
 
7
+option(Mapper_WITH_DOCS "Build and/or install documentation" ON)
8
+option(Mapper_WITH_EXAMPLES "Build and/or install examples" ON)
9
+option(Mapper_WITH_NLS "Native Language Support" ON)
10
+option(Mapper_WITH_TEST "Build the test suite" ON)
11
+
12
 option(Mapper_USE_GDAL   "Use the GDAL library" ON)
13
 
14
 if(CMAKE_BUILD_TYPE MATCHES Release|MinSizeRel|RelWithDebInfo)
15
@@ -227,10 +232,20 @@ endif()
16
 
17
 # Subdirectories
18
 
19
-add_subdirectory("doc/manual")
20
-add_subdirectory("examples")
21
+if (Mapper_WITH_DOCS)
22
+	add_subdirectory("doc/manual")
23
+endif()
24
+if (Mapper_WITH_EXAMPLES)
25
+	add_subdirectory("examples")
26
+endif()
27
 add_subdirectory("symbol sets")
28
-add_subdirectory("translations")
29
+if (Mapper_WITH_NLS)
30
+	add_subdirectory("translations")
31
+else()
32
+	execute_process(COMMAND "${CMAKE_COMMAND}" -E make_directory "packaging/linux")
33
+	execute_process(COMMAND "${CMAKE_COMMAND}" -E copy "${PROJECT_SOURCE_DIR}/packaging/linux/Mapper.desktop" "packaging/linux/")
34
+	execute_process(COMMAND "${CMAKE_COMMAND}" -E copy "${PROJECT_SOURCE_DIR}/packaging/linux/openorienteering-mapper.xml" "packaging/linux/")
35
+endif()
36
 add_subdirectory("3rd-party/qbezier")
37
 if(NOT ANDROID)
38
 	add_subdirectory("3rd-party/qtsingleapplication")
39
@@ -250,7 +265,7 @@ if(CMAKE_CROSSCOMPILING)
40
 	add_custom_target(TEST_WARNING ALL
41
 	  COMMENT "Crosscompiling, skipping all tests")
42
 	add_dependencies(TEST_WARNING Mapper)
43
-else()
44
+elseif(Mapper_WITH_TEST)
45
 	enable_testing()
46
 	add_subdirectory("test")
47
 endif()
(-)i/graphics/openorienteering-mapper/files/patch-doc_licensing_freebsd-licensing.cmake (+9 lines)
Added Link Here
1
--- doc/licensing/freebsd-licensing.cmake.orig	2018-04-14 16:13:40 UTC
2
+++ doc/licensing/freebsd-licensing.cmake
3
@@ -0,0 +1,6 @@
4
+include("linux-distribution.cmake")
5
+
6
+set(system_copyright_dir "/usr/local/share/licenses")
7
+set(copyright_pattern
8
+  "${system_copyright_dir}/@package@/LICENSE"
9
+)
(-)i/graphics/openorienteering-mapper/files/patch-packaging_CMakeLists.txt (+11 lines)
Added Link Here
1
--- packaging/CMakeLists.txt.orig	2018-03-11 14:00:07 UTC
2
+++ packaging/CMakeLists.txt
3
@@ -437,7 +437,7 @@ endforeach(_qt_plugin)
4
 if(UNIX AND NOT APPLE AND NOT ANDROID)
5
 	install(
6
 	  FILES "${PROJECT_SOURCE_DIR}/doc/man/Mapper.1"
7
-	  DESTINATION "share/man/man1")
8
+	  DESTINATION "man/man1")
9
 	install(
10
 	  FILES "${CMAKE_CURRENT_BINARY_DIR}/linux/Mapper.desktop"
11
 	  DESTINATION "share/applications")
(-)i/graphics/openorienteering-mapper/files/patch-packaging_custom__install.cmake.in (+8 lines)
Added Link Here
1
--- packaging/custom_install.cmake.in.orig	2018-03-11 14:00:07 UTC
2
+++ packaging/custom_install.cmake.in
3
@@ -215,4 +215,4 @@ endif()
4
 set(runtime "")
5
 set(dirs "@MAPPER_LIB_HINTS@")
6
 handle_qt_conf()
7
-fixup_bundle_portable("${runtime}" "${dirs}")
8
+#fixup_bundle_portable("${runtime}" "${dirs}")
(-)i/graphics/openorienteering-mapper/files/patch-src_CMakeLists.txt (+14 lines)
Added Link Here
1
--- src/CMakeLists.txt.orig	2018-03-11 14:00:07 UTC
2
+++ src/CMakeLists.txt
3
@@ -286,8 +286,9 @@ target_compile_definitions(Mapper_Common
4
   # MAPPER_ENABLE_COMPATIBILITY
5
 )
6
 
7
-mapper_translations_sources(${Mapper_Common_SRCS} ${Mapper_Common_HEADERS})
8
-
9
+if(Mapper_WITH_NLS)
10
+	mapper_translations_sources(${Mapper_Common_SRCS} ${Mapper_Common_HEADERS})
11
+endif()
12
 
13
 # Mapper executable
14
 
(-)i/graphics/openorienteering-mapper/files/patch-src_gdal_CMakeLists.txt (+15 lines)
Added Link Here
1
--- src/gdal/CMakeLists.txt.orig	2018-03-11 14:00:07 UTC
2
+++ src/gdal/CMakeLists.txt
3
@@ -34,8 +34,10 @@ set(MAPPER_GDAL_SOURCES
4
   ogr_template.cpp
5
   mapper-osmconf.ini
6
 )
7
-	
8
-mapper_translations_sources(${MAPPER_GDAL_HEADERS} ${MAPPER_GDAL_SOURCES})
9
+
10
+if(Mapper_WITH_NLS)
11
+	mapper_translations_sources(${MAPPER_GDAL_HEADERS} ${MAPPER_GDAL_SOURCES})
12
+endif()
13
 
14
 add_library(mapper-gdal STATIC ${MAPPER_GDAL_HEADERS} ${MAPPER_GDAL_SOURCES} "${PROJECT_BINARY_DIR}/gdal/mapper-osmconf.ini")
15
 
(-)i/graphics/openorienteering-mapper/files/patch-src_mapper__config.h.in (+10 lines)
Added Link Here
1
--- src/mapper_config.h.in.orig	2018-03-11 14:00:07 UTC
2
+++ src/mapper_config.h.in
3
@@ -30,6 +30,7 @@
4
 
5
 #cmakedefine Mapper_DEBUG_TRANSLATIONS
6
 #cmakedefine Mapper_PACKAGE_NAME
7
+#cmakedefine Mapper_WITH_DOCS
8
 #define MAPPER_DATA_DESTINATION  "@CMAKE_INSTALL_PREFIX@/@MAPPER_DATA_DESTINATION@"
9
 #define MAPPER_ABOUT_DESTINATION "@CMAKE_INSTALL_PREFIX@/@MAPPER_ABOUT_DESTINATION@"
10
 
(-)i/graphics/openorienteering-mapper/files/patch-translations_CMakeLists.txt (+31 lines)
Added Link Here
1
--- translations/CMakeLists.txt.orig	2018-03-11 14:00:07 UTC
2
+++ translations/CMakeLists.txt
3
@@ -220,24 +220,24 @@ else()
4
 		
5
 		set(pre_lupdate )
6
 		set(post_lupdate
7
-		  COMMAND sed -i -e "/<context>/N\\;/<name>Q[A-Z]/,/<.context>/d" "${CMAKE_CURRENT_SOURCE_DIR}/${translation}"
8
+		  COMMAND gsed -i -e "/<context>/N\\;/<name>Q[A-Z]/,/<.context>/d" "${CMAKE_CURRENT_SOURCE_DIR}/${translation}"
9
 		)
10
 		if("${ts_filename}" STREQUAL "OpenOrienteering_hu")
11
 			# No plural support for Hungarian in Qt
12
 			# Save first numerusform in translatorcomment
13
 			list(APPEND pre_lupdate
14
-			  COMMAND sed -i -f "${save_first_numerusform}" "${CMAKE_CURRENT_SOURCE_DIR}/${translation}"
15
+			  COMMAND gsed -i -f "${save_first_numerusform}" "${CMAKE_CURRENT_SOURCE_DIR}/${translation}"
16
 			)
17
 			# Restore first numerusform for translatorcomment
18
 			list(APPEND post_lupdate
19
-			  COMMAND sed -i -f "${restore_first_numerusform}" "${CMAKE_CURRENT_SOURCE_DIR}/${translation}"
20
+			  COMMAND gsed -i -f "${restore_first_numerusform}" "${CMAKE_CURRENT_SOURCE_DIR}/${translation}"
21
 			)
22
 		endif()
23
 		
24
 		add_custom_target(Mapper_${ts_filename}_update
25
 		  ${pre_lupdate}
26
 		  COMMAND "${Qt5_LUPDATE_EXECUTABLE}" ${lupdate_options} "@${listfile}" -ts "${CMAKE_CURRENT_SOURCE_DIR}/${translation}"
27
-		  COMMAND sed -i -e "/<context>/N;/<name>Q[A-Z]/,/<.context>/d" "${CMAKE_CURRENT_SOURCE_DIR}/${translation}"
28
+		  COMMAND gsed -i -e "/<context>/N;/<name>Q[A-Z]/,/<.context>/d" "${CMAKE_CURRENT_SOURCE_DIR}/${translation}"
29
 		  ${post_lupdate}
30
 		  VERBATIM
31
 		)
(-)i/graphics/openorienteering-mapper/files/patch-translations_translate__text__files.sh (+58 lines)
Added Link Here
1
--- translations/translate_text_files.sh.orig	2018-03-11 14:00:07 UTC
2
+++ translations/translate_text_files.sh
3
@@ -21,8 +21,8 @@ set -e
4
 
5
 for FILE
6
 do
7
-	echo -n "$FILE" | sed -e 's/.*OpenOrienteering_/Comment[/;s/\.ts$/]=/'
8
-	cat ${FILE} | sed -n -e '
9
+	echo -n "$FILE" | gsed -e 's/.*OpenOrienteering_/Comment[/;s/\.ts$/]=/'
10
+	cat ${FILE} | gsed -n -e '
11
 	  /<source>A free software for drawing orienteering maps</! d
12
 	  n
13
 	  /<translation>/! n
14
@@ -31,22 +31,22 @@ do
15
 	  p
16
 	  q
17
 	'
18
-done | sed -e "
19
+done | gsed -e "
20
   s/^[^=]*\]=\(Comment\)/\1/
21
   /^[^=]*\]=$/ d
22
   s/&quot;/\"/
23
   s/&apos;/'/
24
 " > desktop_file_comment.txt
25
 
26
-sed -i "../packaging/linux/Mapper.desktop" -e '
27
+gsed -i "../packaging/linux/Mapper.desktop" -e '
28
   /^Comment=/ r desktop_file_comment.txt
29
   /^Comment\[/ d
30
 '
31
 
32
 for FILE
33
 do
34
-	echo -n "$FILE" | sed -e 's/.*OpenOrienteering_/     <comment xml:lang="/;s/\.ts$/">/'
35
-	cat ${FILE} | sed -n -e '
36
+	echo -n "$FILE" | gsed -e 's/.*OpenOrienteering_/     <comment xml:lang="/;s/\.ts$/">/'
37
+	cat ${FILE} | gsed -n -e '
38
 	  /<source>Orienteering map</! d
39
 	  n
40
 	  /<translation>/! n
41
@@ -55,7 +55,7 @@ do
42
 	  p
43
 	  q
44
 	'
45
-done | sed -e "
46
+done | gsed -e "
47
   s/^[^>]*>\( *<comment\)/\1/
48
   /\">$/ d
49
   s/$/<\/comment>/
50
@@ -63,7 +63,7 @@ done | sed -e "
51
   s/&apos;/'/
52
 " > mime_type_comment.txt
53
 
54
-sed -i "../packaging/linux/openorienteering-mapper.xml" -e '
55
+gsed -i "../packaging/linux/openorienteering-mapper.xml" -e '
56
   /^ *<comment>/ r mime_type_comment.txt
57
   /^ *<comment [^>]*lang=/ d
58
 '
(-)i/graphics/openorienteering-mapper/pkg-descr (+6 lines)
Added Link Here
1
OpenOrienteering Mapper (OOM).
2
3
OpenOrienteering Mapper is a software for creating
4
maps for the orienteering sport.
5
6
WWW: http://www.openorienteering.org/apps/mapper/
(-)i/graphics/openorienteering-mapper/pkg-plist (+100 lines)
Added Link Here
1
bin/Mapper
2
man/man1/Mapper.1.gz
3
share/applications/Mapper.desktop
4
%%DOCSDIR%%/3rd-party/qtsingleapplication.txt
5
%%DOCS%%%%PORTDOCS%%%%DOCSDIR%%/Mapper 0.8.1 Manual.qch
6
%%DOCS%%%%PORTDOCS%%%%DOCSDIR%%/Mapper 0.8.1 Manual.qhc
7
%%DOCSDIR%%/common-licenses/GPL-3.txt
8
%%DOCSDIR%%/licensing.html
9
share/icons/hicolor/128x128/apps/Mapper.png
10
share/icons/hicolor/128x128/mimetypes/application-x-openorienteering-ocd.png
11
share/icons/hicolor/128x128/mimetypes/application-x-openorienteering-xmap.png
12
share/icons/hicolor/16x16/apps/Mapper.png
13
share/icons/hicolor/16x16/mimetypes/application-x-openorienteering-ocd.png
14
share/icons/hicolor/16x16/mimetypes/application-x-openorienteering-xmap.png
15
share/icons/hicolor/24x24/apps/Mapper.png
16
share/icons/hicolor/24x24/mimetypes/application-x-openorienteering-ocd.png
17
share/icons/hicolor/24x24/mimetypes/application-x-openorienteering-xmap.png
18
share/icons/hicolor/256x256/apps/Mapper.png
19
share/icons/hicolor/256x256/mimetypes/application-x-openorienteering-ocd.png
20
share/icons/hicolor/256x256/mimetypes/application-x-openorienteering-xmap.png
21
share/icons/hicolor/32x32/apps/Mapper.png
22
share/icons/hicolor/32x32/mimetypes/application-x-openorienteering-ocd.png
23
share/icons/hicolor/32x32/mimetypes/application-x-openorienteering-xmap.png
24
share/icons/hicolor/48x48/apps/Mapper.png
25
share/icons/hicolor/48x48/mimetypes/application-x-openorienteering-ocd.png
26
share/icons/hicolor/48x48/mimetypes/application-x-openorienteering-xmap.png
27
share/icons/hicolor/512x512/apps/Mapper.png
28
share/icons/hicolor/512x512/mimetypes/application-x-openorienteering-ocd.png
29
share/icons/hicolor/512x512/mimetypes/application-x-openorienteering-xmap.png
30
share/icons/hicolor/96x96/apps/Mapper.png
31
share/icons/hicolor/96x96/mimetypes/application-x-openorienteering-ocd.png
32
share/icons/hicolor/96x96/mimetypes/application-x-openorienteering-xmap.png
33
share/mime/packages/openorienteering-mapper.xml
34
%%EXAMPLES%%%%DATADIR%%/examples/complete map.omap
35
%%EXAMPLES%%%%DATADIR%%/examples/forest sample.omap
36
%%EXAMPLES%%%%DATADIR%%/examples/overprinting.omap
37
%%GDAL%%%%DATADIR%%/gdal/mapper-osmconf.ini
38
%%DATADIR%%/symbol sets/10000/Course_Design_10000.omap
39
%%DATADIR%%/symbol sets/10000/ISMTBOM_10000.omap
40
%%DATADIR%%/symbol sets/10000/ISOM2000_10000.omap
41
%%DATADIR%%/symbol sets/10000/ISOM2017_10000.omap
42
%%DATADIR%%/symbol sets/10000/ISSkiOM_10000.omap
43
%%DATADIR%%/symbol sets/15000/Course_Design_15000.omap
44
%%DATADIR%%/symbol sets/15000/ISMTBOM_15000.omap
45
%%DATADIR%%/symbol sets/15000/ISOM2000_15000.omap
46
%%DATADIR%%/symbol sets/15000/ISOM2017_15000.omap
47
%%DATADIR%%/symbol sets/15000/ISSkiOM_15000.omap
48
%%DATADIR%%/symbol sets/20000/ISMTBOM_20000.omap
49
%%DATADIR%%/symbol sets/4000/Course_Design_4000.omap
50
%%DATADIR%%/symbol sets/4000/ISSOM_4000.omap
51
%%DATADIR%%/symbol sets/5000/Course_Design_5000.omap
52
%%DATADIR%%/symbol sets/5000/ISMTBOM_5000.omap
53
%%DATADIR%%/symbol sets/5000/ISSOM_5000.omap
54
%%DATADIR%%/symbol sets/5000/ISSkiOM_5000.omap
55
%%DATADIR%%/symbol sets/7500/ISMTBOM_7500.omap
56
%%DATADIR%%/symbol sets/ISOM2000-ISOM2017.crt
57
%%DATADIR%%/symbol sets/ISOM2000-ISSOM.crt
58
%%DATADIR%%/symbol sets/OSM-ISOM2000.crt
59
%%DATADIR%%/symbol sets/OSM-ISOM2017.crt
60
%%DATADIR%%/symbol sets/OSM-ISSOM.crt
61
%%NLS%%%%DATADIR%%/translations/OpenOrienteering_cs.qm
62
%%NLS%%%%DATADIR%%/translations/OpenOrienteering_da.qm
63
%%NLS%%%%DATADIR%%/translations/OpenOrienteering_de.qm
64
%%NLS%%%%DATADIR%%/translations/OpenOrienteering_en.qm
65
%%NLS%%%%DATADIR%%/translations/OpenOrienteering_eo.qm
66
%%NLS%%%%DATADIR%%/translations/OpenOrienteering_es.qm
67
%%NLS%%%%DATADIR%%/translations/OpenOrienteering_fi.qm
68
%%NLS%%%%DATADIR%%/translations/OpenOrienteering_fr.qm
69
%%NLS%%%%DATADIR%%/translations/OpenOrienteering_hu.qm
70
%%NLS%%%%DATADIR%%/translations/OpenOrienteering_id.qm
71
%%NLS%%%%DATADIR%%/translations/OpenOrienteering_it.qm
72
%%NLS%%%%DATADIR%%/translations/OpenOrienteering_ja.qm
73
%%NLS%%%%DATADIR%%/translations/OpenOrienteering_lv.qm
74
%%NLS%%%%DATADIR%%/translations/OpenOrienteering_nb.qm
75
%%NLS%%%%DATADIR%%/translations/OpenOrienteering_nl.qm
76
%%NLS%%%%DATADIR%%/translations/OpenOrienteering_pl.qm
77
%%NLS%%%%DATADIR%%/translations/OpenOrienteering_pt_BR.qm
78
%%NLS%%%%DATADIR%%/translations/OpenOrienteering_ru.qm
79
%%NLS%%%%DATADIR%%/translations/OpenOrienteering_sv.qm
80
%%NLS%%%%DATADIR%%/translations/OpenOrienteering_uk.qm
81
%%NLS%%%%DATADIR%%/translations/OpenOrienteering_zh_CN.qm
82
%%NLS%%%%DATADIR%%/translations/map_symbols_cs.qm
83
%%NLS%%%%DATADIR%%/translations/map_symbols_da.qm
84
%%NLS%%%%DATADIR%%/translations/map_symbols_de.qm
85
%%NLS%%%%DATADIR%%/translations/map_symbols_eo.qm
86
%%NLS%%%%DATADIR%%/translations/map_symbols_es.qm
87
%%NLS%%%%DATADIR%%/translations/map_symbols_fi.qm
88
%%NLS%%%%DATADIR%%/translations/map_symbols_fr.qm
89
%%NLS%%%%DATADIR%%/translations/map_symbols_hu.qm
90
%%NLS%%%%DATADIR%%/translations/map_symbols_it.qm
91
%%NLS%%%%DATADIR%%/translations/map_symbols_nl.qm
92
%%NLS%%%%DATADIR%%/translations/map_symbols_ru.qm
93
%%NLS%%%%DATADIR%%/translations/map_symbols_sv.qm
94
%%NLS%%%%DATADIR%%/translations/map_symbols_uk.qm
95
%%NLS%%%%DATADIR%%/translations/qt_eo.qm
96
%%NLS%%%%DATADIR%%/translations/qt_et.qm
97
%%NLS%%%%DATADIR%%/translations/qt_id.qm
98
%%NLS%%%%DATADIR%%/translations/qt_lv.qm
99
%%NLS%%%%DATADIR%%/translations/qt_nb.qm
100
%%NLS%%%%DATADIR%%/translations/qt_nl.qm

Return to bug 214758