blob: 21774b74e7c7bd0e4f60e9acd7bd42661d27fe48 (
plain)
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
|
# Created by: slaven@rezic.de
# $FreeBSD$
PORTNAME= merkaartor
PORTVERSION= 0.18.1
PORTREVISION= 2
CATEGORIES= astro
MASTER_SITES= http://merkaartor.be/attachments/download/301/ \
https://secure.ohos.nl/downloads/
MAINTAINER= dev2@heesakkers.info
COMMENT= An openstreetmap mapping program
LICENSE= GPLv2
LIB_DEPENDS= gdal:${PORTSDIR}/graphics/gdal \
proj:${PORTSDIR}/graphics/proj
NO_STAGE= yes
USE_BZIP2= yes
USE_LDCONFIG= yes
USE_QT4= qmake_build uic_build moc_build rcc_build \
gui network svg webkit xml imageformats script scripttools
.if exists(${LOCALBASE}/bin/gnome-session)
INSTALLS_ICONS= yes
.endif
QMAKEFLAGS= PREFIX=${PREFIX}
OPTIONS_DEFINE= GEOIMAGE ZBAR DEBUG
GEOIMAGE_DESC= Enable geotagged images (needs exiv2)
ZBAR_DESC= Read barcodes from walking papers
OPTIONS_DEFAULT= GEOIMAGE
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MGEOIMAGE}
QMAKEFLAGS+= GEOIMAGE=1
LIB_DEPENDS+= exiv2:${PORTSDIR}/graphics/exiv2
.endif
.if ${PORT_OPTIONS:MZBAR}
QMAKEFLAGS+= ZBAR=1
LIB_DEPENDS+= zbar:${PORTSDIR}/graphics/zbar
.endif
.if empty(PORT_OPTIONS:MDEBUG)
QMAKEFLAGS+= NODEBUG=1 RELEASE=1
.endif
.if empty(PORT_OPTIONS:MNLS)
PLIST_SUB+= NLS="@comment "
.else
PLIST_SUB+= NLS=""
USE_QT4+= 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>
|