aboutsummaryrefslogtreecommitdiffstats
path: root/databases/sqliteodbc/Makefile
blob: ed51f8cf5e1d8e251c28e3b145c8eb1bf4f37a9c (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
# $FreeBSD$

PORTNAME=   sqliteodbc
PORTVERSION=    0.9993
CATEGORIES= databases
MASTER_SITES=   http://www.ch-werner.de/sqliteodbc/

MAINTAINER= madpilot@FreeBSD.org
COMMENT=    ODBC driver for SQLite 2 and 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=       libtool

PLIST_SUB+= VER="${PORTVERSION}"

OPTIONS_MULTI=      SQLITEVER
OPTIONS_MULTI_SQLITEVER=    SQLITE SQLITE3
OPTIONS_DEFAULT=    SQLITE3

OPTIONS_SUB=    yes
SQLITE_LIB_DEPENDS= libsqlite.so:databases/sqlite2
SQLITE_CONFIGURE_ON=    --with-sqlite=${LOCALBASE}
SQLITE_CONFIGURE_OFF=   --with-sqlite=/tmp
SQLITE3_LIB_DEPENDS=    libsqlite3.so:databases/sqlite3 \
            libxml2.so:textproc/libxml2
SQLITE3_CONFIGURE_ON=   --with-sqlite3=${LOCALBASE}
SQLITE3_CONFIGURE_OFF=  --with-sqlite3=/tmp

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

.include <bsd.port.mk>