1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00
freebsd-ports/databases/opendbx/Makefile
Tijl Coosemans f83c7639aa Remove libintl.so.9 compatibility link that was added in r374303 to
prevent massive PORTREVISION bumps.  Bump dependent ports that have not
been bumped since.
2016-12-08 19:52:19 +00:00

77 lines
1.5 KiB
Makefile

# Created by: tremere@cainites.net
# $FreeBSD$
PORTNAME= opendbx
PORTVERSION= 1.4.6
PORTREVISION= 4
CATEGORIES= databases
MASTER_SITES= http://www.linuxnetworks.de/opendbx/download/
MAINTAINER= tremere@cainites.net
COMMENT= C library for accessing databases with a single API
LICENSE= LGPL21
USES= gmake libtool pathfix readline
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -lpthread -L${WRKSRC}/lib -L${LOCALBASE}/lib
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-backends="${CONFIGURE_MODULES}"
USE_LDCONFIG= ${PREFIX}/lib/opendbx
OPTIONS_DEFINE= NLS
OPTIONS_MULTI= DRIVER
OPTIONS_MULTI_DRIVER= MYSQL PGSQL SQLITE SQLITE3 MSSQL SYBASE
OPTIONS_DEFAULT= MYSQL
SQLITE_DESC= SQLite 2 database support
SYBASE_DESC= Sybase database support
DRIVER_DESC= Database drivers
OPTIONS_SUB= YES
MYSQL_USE= MYSQL=YES
MYSQL_CPPFLAGS= -I${LOCALBASE}/include/mysql
MYSQL_LDFLAGS= -L${LOCALBASE}/lib/mysql
PGSQL_USES= pgsql
SQLITE_LIB_DEPENDS= libsqlite.so:databases/sqlite2
SQLITE3_USES= sqlite:3
MSSQL_LIB_DEPENDS= libsybdb.so:databases/freetds
SYBASE_LIB_DEPENDS= libct.so:databases/freetds
NLS_USES= gettext
NLS_CONFIGURE_DISABLE= nls
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MMYSQL}
CONFIGURE_MODULES+= mysql
.endif
.if ${PORT_OPTIONS:MPGSQL}
CONFIGURE_MODULES+= pgsql
.endif
.if ${PORT_OPTIONS:MSQLITE}
CONFIGURE_MODULES+= sqlite
.endif
.if ${PORT_OPTIONS:MSQLITE3}
CONFIGURE_MODULES+= sqlite3
.endif
.if ${PORT_OPTIONS:MMSSQL}
CONFIGURE_MODULES+= mssql
.endif
.if ${PORT_OPTIONS:MSYBASE}
CONFIGURE_MODULES+= sybase
.endif
.include <bsd.port.mk>