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

PORTNAME=	sqlitebrowser
PORTVERSION=	3.9.1
DISTVERSIONPREFIX=	v
CATEGORIES=	databases

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

LICENSE=	MPL GPLv3
LICENSE_COMB=	dual

BUILD_DEPENDS=	${LOCALBASE}/lib/libantlr.a:devel/antlr

CONFLICTS_INSTALL?=	${PORTNAME}-qt5-*

USE_GITHUB=	yes

USES=		cmake desktop-file-utils sqlite

.if empty(PKGNAMESUFFIX)
CMAKE_ARGS+=	-DUSE_QT5:BOOL=FALSE
USE_QT4=	corelib network gui qmake_build linguisttools_build \
		moc_build uic_build rcc_build
.else
CMAKE_ARGS+=	-DUSE_QT5:BOOL=TRUE
USE_QT5=	core gui network printsupport testlib widgets \
		buildtools_build linguisttools_build qmake_build
.endif

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>