aboutsummaryrefslogtreecommitdiff
path: root/devel/hoel/Makefile
blob: 0dea9430af5740294df6b446f7f5d3c497f88466 (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
PORTNAME=	hoel
DISTVERSIONPREFIX=	v
DISTVERSION=	1.4.25
CATEGORIES=	devel

MAINTAINER=	dvl@FreeBSD.org
COMMENT=	Database abstraction library written in C
WWW=		https://github.com/babelouest/hoel

LICENSE=	LGPL21
LICENSE_FILE=	${WRKSRC}/LICENSE

USES=		cmake

USE_GITHUB=	yes
GH_ACCOUNT=	babelouest

LIB_DEPENDS=	libjansson.so:devel/jansson \
		liborcania.so:devel/orcania

BUILD_DEPENDS=	orcania>0:devel/orcania \
		yder>0:devel/yder

RUN_DEPENDS=	jansson>0:devel/jansson \
		yder>0:devel/yder

OPTIONS_DEFINE=	MARIADB PGSQL SQLITE3
OPTIONS_DEFAULT=	PGSQL

PGSQL_DESC=	Use PostgreSQL as backend
SQLITE3_DESC=	Use SQLite 3 as backend
MARIADB_DESC=	Use MariaDB as backend

MARIADB_USES=	mariadb
PGSQL_USES=	pgsql
SQLITE3_USES=	sqlite

MARIADB_CMAKE_BOOL=	WITH_MARIADB
PGSQL_CMAKE_BOOL=	WITH_PGSQL
SQLITE3_CMAKE_BOOL=	WITH_SQLITE3

PLIST_SUB=	PORTVERSION=${PORTVERSION}

CMAKE_ARGS=	-DWITH_JOURNALD=off \
		-DDOWNLOAD_DEPENDENCIES=off

.include <bsd.port.mk>