2014-04-04 22:36:47 +02:00
|
|
|
# Created by: Slaven Rezic <slaven@rezic.de>
|
2009-01-15 02:44:35 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= merkaartor
|
2015-12-31 11:11:30 +01:00
|
|
|
PORTVERSION= 0.18.2
|
2009-01-15 02:44:35 +01:00
|
|
|
CATEGORIES= astro
|
|
|
|
|
2011-02-12 13:50:56 +01:00
|
|
|
MAINTAINER= dev2@heesakkers.info
|
2013-11-22 13:55:18 +01:00
|
|
|
COMMENT= Openstreetmap mapping program
|
2009-01-15 02:44:35 +01:00
|
|
|
|
2010-08-19 03:28:22 +02:00
|
|
|
LICENSE= GPLv2
|
2015-12-31 11:11:30 +01:00
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
2010-08-19 03:28:22 +02:00
|
|
|
|
2016-04-01 15:29:15 +02:00
|
|
|
LIB_DEPENDS= libgdal.so:graphics/gdal \
|
|
|
|
libproj.so:graphics/proj \
|
|
|
|
libquazip5.so:archivers/quazip-qt5 \
|
|
|
|
libsqlite3.so:databases/sqlite3
|
2015-12-31 11:11:30 +01:00
|
|
|
|
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= openstreetmap
|
|
|
|
GH_PROJECT= ${PORTNAME}
|
|
|
|
USES= pkgconfig qmake
|
2011-02-12 13:50:56 +01:00
|
|
|
USE_LDCONFIG= yes
|
2009-01-15 02:44:35 +01:00
|
|
|
|
2015-12-31 11:11:30 +01:00
|
|
|
QMAKE_ARGS= SYSTEM_QUAZIP=1
|
|
|
|
USE_QT5= buildtools_build \
|
|
|
|
concurrent core gui imageformats network printsupport svg \
|
|
|
|
webkit widgets xml
|
2012-01-21 01:47:16 +01:00
|
|
|
|
2014-03-17 18:44:51 +01:00
|
|
|
OPTIONS_DEFINE= DEBUG GEOIMAGE NLS ZBAR
|
2012-06-17 21:45:53 +02:00
|
|
|
OPTIONS_DEFAULT= GEOIMAGE
|
2009-12-30 13:59:00 +01:00
|
|
|
|
2013-11-22 13:55:18 +01:00
|
|
|
GEOIMAGE_DESC= Enable geotagged images (needs exiv2)
|
|
|
|
GEOIMAGE_QMAKE_ON= GEOIMAGE=1
|
2016-04-01 15:29:15 +02:00
|
|
|
GEOIMAGE_LIB_DEPENDS= libexiv2.so:graphics/exiv2
|
2009-01-15 02:44:35 +01:00
|
|
|
|
2014-03-17 18:44:51 +01:00
|
|
|
ZBAR_DESC= Read barcodes from walking papers (BROKEN)
|
2013-11-22 13:55:18 +01:00
|
|
|
ZBAR_QMAKE_ON= ZBAR=1
|
2016-04-01 15:29:15 +02:00
|
|
|
ZBAR_LIB_DEPENDS= libzbar.so:graphics/zbar
|
2015-12-31 11:11:30 +01:00
|
|
|
# graphics/zbar needs to be built with Qt support (and needs a Qt5 version)
|
2015-08-19 15:29:59 +02:00
|
|
|
ZBAR_BROKEN= Does not build with option ZBAR selected
|
2009-12-30 13:59:00 +01:00
|
|
|
|
2013-11-22 13:55:18 +01:00
|
|
|
DEBUG_QMAKE_OFF= NODEBUG=1 RELEASE=1
|
2011-01-19 09:41:03 +01:00
|
|
|
|
2015-12-31 11:11:30 +01:00
|
|
|
NLS_USE= QT5=linguist_build
|
2011-01-19 09:41:03 +01:00
|
|
|
|
2015-08-19 15:29:59 +02:00
|
|
|
OPTIONS_SUB= yes
|
2009-12-30 13:59:00 +01:00
|
|
|
|
2015-08-19 15:29:59 +02:00
|
|
|
pre-build-NLS-on:
|
2013-11-22 13:55:18 +01:00
|
|
|
@cd ${WRKSRC}/translations && ${LRELEASE} ../src/src.pro
|
2014-03-17 18:44:51 +01:00
|
|
|
|
2015-08-19 15:29:59 +02:00
|
|
|
post-install-NLS-on:
|
2014-03-17 18:44:51 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}/translations
|
|
|
|
@(cd ${WRKSRC}/translations && ${COPYTREE_SHARE} "merkaartor_*.qm" \
|
|
|
|
${STAGEDIR}${DATADIR}/translations)
|
2009-01-15 02:44:35 +01:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|