openbsd-ports/geo/qlandkarte/Makefile
jasper c5a58294c2 - silence a rather irritating dialog
ok pval@ (MAINTAINER)
2010-05-21 22:00:54 +00:00

60 lines
1.5 KiB
Makefile

# $OpenBSD: Makefile,v 1.13 2010/05/21 22:00:54 jasper Exp $
COMMENT= garmin gps map management tool
DISTNAME= QLandkarte_final
PKGNAME= qlandkarte-0.7.4p0
CATEGORIES= geo x11
HOMEPAGE= http://qlandkarte.sourceforge.net/
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MAINTAINER= Peter Valchev <pvalchev@openbsd.org>
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=qlandkarte/}
USE_X11= Yes
MODULES= x11/qt4
LIB_DEPENDS+= proj::devel/proj \
usb::devel/libusb \
QtGui,QtNetwork,QtXml::x11/qt4
RUN_DEPENDS= :desktop-file-utils-*:devel/desktop-file-utils
WANTLIB+= ICE SM X11 Xext Xi Xinerama Xrender \
fontconfig freetype glib-2.0 gthread-2.0 iconv \
c intl m png pthread stdc++ z expat gobject-2.0 \
pthread-stubs xcb
PORTHOME= ${WRKDIR}
NO_REGRESS= Yes
AUTOCONF_VERSION=2.59
CONFIGURE_STYLE= autoconf gnu
CONFIGURE_ARGS= --with-qt-dir=${LOCALBASE}/lib/qt4 \
--with-extra-libs=${LOCALBASE}/lib \
--with-extra-includes=${LOCALBASE}/include \
--enable-release
QLANDKARTE_BINDIR= ${WRKINST}${PREFIX}/bin
SUBST_VARS+= CXXFLAGS QLANDKARTE_BINDIR
pre-configure:
@perl -pi -e 's,\/usr,${WRKINST}${PREFIX},g' \
${WRKSRC}/src/src.pro
@perl -pi -e 's,\$$\$$\{QLANDKARTE_LIBDIR\},\
${WRKINST}${PREFIX}/lib/qlandkarte,g' \
${WRKSRC}/src/device/*/*.pro
${SUBST_CMD} ${WRKSRC}/src/src.pro \
${WRKSRC}/common.in
post-install:
@chown ${BINOWN}:${BINGRP} ${PREFIX}/bin/qlandkarte
.include <bsd.port.mk>