1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-17 08:01:36 +00:00
freebsd-ports/databases/sqliteodbc/Makefile
Mathieu Arnold cf118ccf87
One more small cleanup, forgotten yesterday.
Reported by:	lwhsu
2021-04-07 10:09:01 +02:00

41 lines
1021 B
Makefile

PORTNAME= sqliteodbc
PORTVERSION= 0.9998
PORTREVISION?= 0
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= libtool
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>