aboutsummaryrefslogtreecommitdiff
path: root/deskutils/subsurface/Makefile
blob: a19a513edf93e09cff585424b5efee64730968a8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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>