openbsd-ports/geo/qlandkarte/Makefile

59 lines
1.4 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.23 2011/11/13 13:54:04 ajacoutot Exp $
COMMENT= garmin gps map management tool
DISTNAME= QLandkarte_final
2010-10-23 14:26:19 -04:00
PKGNAME= qlandkarte-0.7.4
REVISION= 5
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/}
2010-10-18 14:13:12 -04:00
USE_GROFF = Yes
MODULES= x11/qt4
2010-11-17 03:05:12 -05:00
LIB_DEPENDS+= devel/proj \
devel/libusb-compat
2010-11-17 03:05:12 -05:00
RUN_DEPENDS= devel/desktop-file-utils
2011-11-03 13:35:12 -04:00
WANTLIB += QtGui QtNetwork QtXml X11 Xext c m proj pthread stdc++
WANTLIB += usb ICE SM Xi Xinerama Xrender fontconfig freetype
PORTHOME= ${WRKDIR}
NO_REGRESS= Yes
AUTOCONF_VERSION=2.59
CONFIGURE_STYLE= autoconf gnu
CONFIGURE_ENV+= 'LDFLAGS=-pthread'
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>