fcbe5f3ae2
couple of fallouts. Note that these ports are only the ones that used to have a direct dependency on devel/libusb so there may be some other hidden ports that may break because of the switch. If that's the case, no need to start ranting all over but instead tell me which one(s) break. Thanks. Note: sysutils/nut hasn't been fixed yet but will be today.
59 lines
1.4 KiB
Makefile
59 lines
1.4 KiB
Makefile
# $OpenBSD: Makefile,v 1.23 2011/11/13 13:54:04 ajacoutot Exp $
|
|
|
|
COMMENT= garmin gps map management tool
|
|
|
|
DISTNAME= QLandkarte_final
|
|
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/}
|
|
|
|
USE_GROFF = Yes
|
|
MODULES= x11/qt4
|
|
LIB_DEPENDS+= devel/proj \
|
|
devel/libusb-compat
|
|
RUN_DEPENDS= devel/desktop-file-utils
|
|
|
|
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>
|