aboutsummaryrefslogtreecommitdiff
path: root/databases/sqliteodbc/Makefile
blob: 6b7b404fd8b10749254959daea8cfcb7682a0996 (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
PORTNAME=	sqliteodbc
PORTVERSION=	0.9998
PORTREVISION?=	2
CATEGORIES=	databases
MASTER_SITES=	http://www.ch-werner.de/sqliteodbc/

MAINTAINER?=	madpilot@FreeBSD.org
COMMENT?=	ODBC driver for SQLite 3

LICENSE=	SQLITEODBC
LICENSE_NAME=	sqliteodbc own licensing terms (BSD style)
LICENSE_FILE=	${WRKSRC}/license.terms
LICENSE_PERMS=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept

LIB_DEPENDS=	libodbc.so:databases/unixODBC

GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--without-sqlite4
USE_LDCONFIG=	yes
USES=		cpe libtool

CPE_VENDOR=	sqliteodbc_project

PLIST_SUB+=	VER="${PORTVERSION}"

.if defined(PKGNAMESUFFIX) && ${PKGNAMESUFFIX} == "-sqlite2"
PLIST_SUB+=	SQLITE2="" SQLITE3="@comment "
USES+=		sqlite:2
CONFIGURE_ARGS+=	--with-sqlite=${LOCALBASE} \
			--with-sqlite3=/tmp
.else
PLIST_SUB+=	SQLITE2="@comment " SQLITE3=""
USES+=		sqlite:3
CONFIGURE_ARGS+=	--with-sqlite3=${LOCALBASE} \
			--with-sqlite=/tmp
LIB_DEPENDS+=	libxml2.so:textproc/libxml2
.endif

post-build:
	@${STRIP_CMD} ${WRKSRC}/.libs/libsqlite*${PORTVERSION}.so

.include <bsd.port.mk>