aboutsummaryrefslogtreecommitdiff
path: root/databases/sqlitebrowser/Makefile
blob: d6d997d08f54fd07ef386f3754d1bdbc74438081 (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
# Created by: loïc bartoletti <lbartoletti@tuxfamily.org>
# $FreeBSD$

PORTNAME=	sqlitebrowser
PORTVERSION=	3.10.1
PORTREVISION=	2
DISTVERSIONPREFIX=	v
CATEGORIES=	databases

MAINTAINER=	lbartoletti@tuxfamily.org
COMMENT=	Visual tool to manage SQLite databases

LICENSE=	MPL20 GPLv3
LICENSE_COMB=	dual
LICENSE_FILE=	${WRKSRC}/LICENSE

BUILD_DEPENDS=	${LOCALBASE}/lib/libantlr.a:devel/antlr
LIB_DEPENDS=	libqscintilla2_qt5.so:devel/qscintilla2-qt5

USES=		cmake desktop-file-utils sqlite
CMAKE_ARGS+=	-DQT_INCLUDE_DIR=${QT_INCDIR} -DQT_LIBRARY_DIR=${QT_LIBDIR}
USE_QT5=	core gui network printsupport testlib widgets \
		buildtools_build linguisttools_build qmake_build
USE_GITHUB=	yes

INSTALLS_ICONS=	yes

post-patch:
	@${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}|' \
		${WRKSRC}/src/PreferencesDialog.cpp
	@${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}|' \
		${WRKSRC}/src/Application.cpp

.include <bsd.port.mk>