freebsd-ports/deskutils/subsurface/Makefile
Jason E. Hale c58e260aed deskutils/subsurface: Remove www/qt5-webkit dep
Disable features that require www/qt5-webkit and remove DEPRECATED
and EXPIRATION_DATE.

PR:		275529
Approved by:	romain@ (maintainer)
2023-12-04 20:28:36 -05:00

55 lines
1.8 KiB
Makefile

PORTNAME= subsurface
DISTVERSIONPREFIX=v
DISTVERSION= 5.0.10
PORTREVISION= 4
CATEGORIES= deskutils
MAINTAINER= romain@FreeBSD.org
COMMENT= Manage and display dive computer data
WWW= https://subsurface-divelog.org/
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libdivecomputer.so:comms/libdc \
libzip.so:archivers/libzip \
libgit2.so:devel/libgit2 \
libcurl.so:ftp/curl \
libssh2.so:security/libssh2
USES= cmake:noninja desktop-file-utils gl gmake pkgconfig qt:5 gnome \
qmake:no_configure sqlite ssl
USE_GITHUB= yes
USE_GL= gl
GH_TUPLE= subsurface:googlemaps:7ce7124b385b2ebac0f72c38b094f436d4fe5c58:subsurface/googlemaps
USE_GNOME= libxml2 libxslt
USE_QT= buildtools:build concurrent connectivity core declarative \
declarative-test:build gui linguisttools:build location network \
quickcontrols2 svg testlib:build widgets
# Disable the built-in user manual and printing support which require qt5-webkit
CMAKE_ON= NO_PRINTING \
NO_USERMANUAL
MAKE_ENV+= DESTDIR=${STAGEDIR}
pre-configure:
(cd ${WRKSRC}/googlemaps && ${QMAKE})
pre-build:
(cd ${WRKSRC}/googlemaps && ${MAKE})
pre-install:
(cd ${WRKSRC}/googlemaps && ${SETENV} INSTALL_ROOT=${STAGEDIR} make install)
post-build:
${MV} ${WRKSRC}/Documentation/user-manual.html.git ${BUILD_WRKSRC}/Documentation/user-manual.html
dxo-install:
${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/subsurface ${STAGEDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/subsurface.desktop ${STAGEDIR}${PREFIX}/share/applications
${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps
${INSTALL_DATA} ${WRKSRC}/icons/subsurface-icon.svg ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps
${MKDIR} ${STAGEDIR}${DATADIR}
(cd ${WRKSRC} && ${COPYTREE_SHARE} "Documentation theme printing_templates translations" ${STAGEDIR}${DATADIR})
.include <bsd.port.mk>