openbsd-ports/geo/gpsbabel/Makefile
cwen 3c720aa050 gpsbabel: fix packaging on base-gcc archs.
Implicit MODGCC4_CPPLIBDEP in LIB_DEPENDS is not inherited by
LIB_DEPENDS-*, despite COMPILER_LIBCXX being in WANTLIB-*.

With hints from kirby@, thanks!

OK sthen@
2019-10-16 18:59:54 +00:00

81 lines
2.2 KiB
Makefile

# $OpenBSD: Makefile,v 1.36 2019/10/16 18:59:54 cwen Exp $
COMMENT-main= GPS waypoint, track, and route conversion tool
COMMENT-tk= Tk front-end to gpsbabel
COMMENT-qt= Qt front-end to gpsbabel
VERSION= 1.6.0.1
GH_ACCOUNT= gpsbabel
GH_PROJECT= gpsbabel
GH_TAGNAME= gpsbabel_1_6_0.1
DISTNAME= gpsbabel-${VERSION}
PKGNAME-main= gpsbabel-${VERSION}
PKGNAME-tk= gpsbabel-tk-${VERSION}
PKGNAME-qt= gpsbabel-qt-${VERSION}
REVISION-main= 0
REVISION-qt= 0
CATEGORIES= geo
HOMEPAGE= https://www.gpsbabel.org/
# GPLv2
PERMIT_PACKAGE= Yes
COMPILER = base-clang ports-gcc base-gcc
AUTOCONF_VERSION= 2.69
CONFIGURE_STYLE= autoconf qmake
USE_GMAKE= yes
CONFIGURE_ARGS+= --with-zlib=system
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -lshp" \
WEB=${WRKSRC}
MULTI_PACKAGES= -main -tk -qt
MODULES= devel/qmake x11/tk x11/qt5
MODQMAKE_PROJECTS = gui/app.pro
LIB_DEPENDS-main= ${MODGCC4_CPPLIBDEP} \
devel/libusb-compat \
devel/shapelib
cWANTLIB = c m pthread
WANTLIB-main += shp>=1 usb z ${cWANTLIB} ${COMPILER_LIBCXX}
WANTLIB-tk =
WANTLIB-qt += GL Qt5Core Qt5Gui Qt5Network Qt5WebKit Qt5WebKitWidgets
WANTLIB-qt += Qt5Widgets Qt5Xml ${COMPILER_LIBCXX} ${cWANTLIB}
LIB_DEPENDS-tk=
LIB_DEPENDS-qt= ${MODGCC4_CPPLIBDEP} \
x11/qt5/qtwebkit
PKG_ARCH-tk= *
RUN_DEPENDS-tk= geo/gpsbabel \
${MODTK_RUN_DEPENDS}
RUN_DEPENDS-qt= geo/gpsbabel \
devel/desktop-file-utils
pre-configure:
${SUBST_CMD} ${WRKSRC}/guibabel
@perl -pi -e 's/gpsbabelfe-bin/guibabel-qt/' \
${WRKSRC}/gui/gpsbabel.desktop
post-build:
${MODQMAKE_build}
do-install:
${INSTALL_PROGRAM} ${WRKBUILD}/gpsbabel ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKBUILD}/gui/objects/gpsbabelfe \
${PREFIX}/bin/guibabel-qt
${INSTALL_SCRIPT} ${WRKSRC}/guibabel ${PREFIX}/bin
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/gpsbabel
${INSTALL_DATA} ${WRKSRC}/README* ${PREFIX}/share/doc/gpsbabel
${INSTALL_DATA_DIR} ${PREFIX}/share/applications
${INSTALL_DATA} ${WRKSRC}/gui/gpsbabel.desktop \
${PREFIX}/share/applications
${INSTALL_DATA_DIR} ${PREFIX}/share/pixmaps
${INSTALL_DATA} ${WRKSRC}/gui/images/appicon.png \
${PREFIX}/share/pixmaps/gpsbabel.png
.include <bsd.port.mk>