2009-01-15 02:44:35 +01:00
|
|
|
# New ports collection makefile for: merkaartor
|
|
|
|
# Date created: 9 January 2009
|
|
|
|
# Whom: slaven@rezic.de
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= merkaartor
|
2011-02-12 13:50:56 +01:00
|
|
|
PORTVERSION= 0.17.2
|
2011-07-03 17:49:55 +02:00
|
|
|
PORTREVISION= 2
|
2009-01-15 02:44:35 +01:00
|
|
|
CATEGORIES= astro
|
2011-02-12 13:50:56 +01:00
|
|
|
MASTER_SITES= http://www.merkaartor.be/attachments/download/253/
|
2009-01-15 02:44:35 +01:00
|
|
|
|
2011-02-12 13:50:56 +01:00
|
|
|
MAINTAINER= dev2@heesakkers.info
|
2009-01-15 02:44:35 +01:00
|
|
|
COMMENT= An openstreetmap mapping program
|
|
|
|
|
2010-08-19 03:28:22 +02:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/include/boost/concept_check.hpp:${PORTSDIR}/devel/boost-libs
|
|
|
|
|
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2009-01-15 02:44:35 +01:00
|
|
|
USE_BZIP2= yes
|
2011-02-12 13:50:56 +01:00
|
|
|
USE_LDCONFIG= yes
|
2009-01-15 02:44:35 +01:00
|
|
|
|
|
|
|
USE_QT_VER= 4
|
2009-12-30 13:59:00 +01:00
|
|
|
QT_COMPONENTS= qmake_build uic_build moc_build rcc_build \
|
2009-08-04 23:35:49 +02:00
|
|
|
gui network svg webkit xml imageformats script scripttools
|
2009-12-30 13:59:00 +01:00
|
|
|
MAKE_JOBS_SAFE= yes
|
2010-08-19 03:28:22 +02:00
|
|
|
INSTALLS_ICONS= yes
|
2009-12-30 13:59:00 +01:00
|
|
|
|
|
|
|
QMAKEFLAGS= PREFIX=${PREFIX}
|
2009-01-15 02:44:35 +01:00
|
|
|
|
2011-01-19 09:41:03 +01:00
|
|
|
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
|
2009-12-30 13:59:00 +01:00
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
2009-01-15 02:44:35 +01:00
|
|
|
|
2009-12-30 13:59:00 +01:00
|
|
|
.if !defined(WITHOUT_GEOIMAGE)
|
|
|
|
QMAKEFLAGS+= GEOIMAGE=1
|
2011-04-12 10:24:29 +02:00
|
|
|
LIB_DEPENDS+= exiv2.10:${PORTSDIR}/graphics/exiv2
|
2009-12-30 13:59:00 +01:00
|
|
|
.endif
|
|
|
|
|
2011-01-19 09:41:03 +01:00
|
|
|
.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
|
|
|
|
|
2009-12-30 13:59:00 +01:00
|
|
|
.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
|
2009-01-15 02:44:35 +01:00
|
|
|
|
|
|
|
do-configure:
|
|
|
|
@cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
|
2009-12-30 13:59:00 +01:00
|
|
|
${QMAKE} ${QMAKEFLAGS}
|
2009-01-15 02:44:35 +01:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|