aboutsummaryrefslogtreecommitdiff
path: root/astro/merkaartor/Makefile
blob: 42a87de8e9dd8e39b50f33a6cfc6a1b623b58320 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# New ports collection makefile for:   merkaartor
# Date created:        9 January 2009
# Whom:                slaven@rezic.de
#
# $FreeBSD$
#

PORTNAME=	merkaartor
PORTVERSION=	0.17.0
CATEGORIES=	astro
MASTER_SITES=	http://www.merkaartor.be/attachments/download/192/

MAINTAINER=	slaven@rezic.de
COMMENT=	An openstreetmap mapping program

BUILD_DEPENDS=	${LOCALBASE}/include/boost/concept_check.hpp:${PORTSDIR}/devel/boost-libs

LICENSE=	GPLv2

USE_BZIP2=	yes

USE_QT_VER=	4
QT_COMPONENTS=	qmake_build uic_build moc_build rcc_build \
		gui network svg webkit xml imageformats script scripttools
MAKE_JOBS_SAFE=	yes
INSTALLS_ICONS=	yes

QMAKEFLAGS=	PREFIX=${PREFIX}

OPTIONS=	GEOIMAGE "Enable geotagged images (needs exiv2)" on\
		GDAL     "Use the Geospatial Data Abstraction Library" on\
		PROJ     "Use the Cartographic Projections Library" on\
		ZBAR     "Read barcodes from walking papers" off\
		DEBUG    "Enable debugging and verbose logging" off

.include <bsd.port.options.mk>

.if !defined(WITHOUT_GEOIMAGE)
QMAKEFLAGS+=	GEOIMAGE=1
LIB_DEPENDS+=	exiv2:${PORTSDIR}/graphics/exiv2
.endif

.if defined(WITH_GDAL)
QMAKEFLAGS+=	GDAL=1
LIB_DEPENDS+=	gdal:${PORTSDIR}/graphics/gdal
PLIST_SUB+=	GDAL=""
.else
PLIST_SUB+=	GDAL="@comment "
.endif

.if defined(WITH_PROJ)
QMAKEFLAGS+=	PROJ=1
LIB_DEPENDS+=	proj:${PORTSDIR}/graphics/proj
.endif

.if defined(WITH_ZBAR)
QMAKEFLAGS+=	ZBAR=1
LIB_DEPENDS+=	zbar:${PORTSDIR}/graphics/zbar
.endif

.if !defined(WITH_DEBUG)
QMAKEFLAGS+=	RELEASE=1 NODEBUG=1
.endif

.if defined(WITHOUT_NLS)
PLIST_SUB+=	NLS="@comment "
.else
PLIST_SUB+=	NLS=""
QT_COMPONENTS+=	linguist_build

pre-build:
	@cd ${WRKSRC}/translations && lrelease-qt4 ../src/src.pro
.endif

do-configure:
	@cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
		${QMAKE} ${QMAKEFLAGS}

.include <bsd.port.mk>