55 lines
1.1 KiB
Makefile
55 lines
1.1 KiB
Makefile
# $OpenBSD: Makefile,v 1.8 2017/09/22 21:37:18 sthen Exp $
|
|
|
|
COMMENT = easy to use database connection pool Library
|
|
|
|
DISTNAME = libzdb-3.1
|
|
REVISION = 1
|
|
|
|
SHARED_LIBS += zdb 1.0 # 11.0
|
|
|
|
CATEGORIES = databases
|
|
|
|
HOMEPAGE = http://www.tildeslash.com/libzdb/#
|
|
|
|
WANTLIB += m pthread sqlite3
|
|
|
|
# GPLv3
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
MASTER_SITES = http://www.tildeslash.com/libzdb/dist/
|
|
|
|
USE_GMAKE = Yes
|
|
CONFIGURE_STYLE = gnu
|
|
CONFIGURE_ENV += LDFLAGS="-L${LOCALBASE}/lib" \
|
|
CPPFLAGS="-I${LOCALBASE}/include"
|
|
CONFIGURE_ARGS += --with-postgresql=no \
|
|
--with-mysql=no
|
|
|
|
FLAVORS = mysql postgresql
|
|
FLAVOR ?=
|
|
|
|
LIB_DEPENDS+= databases/sqlite3
|
|
|
|
.if ${FLAVOR:Mmysql}
|
|
LIB_DEPENDS+= databases/mariadb
|
|
WANTLIB += lib/mysql/mysqlclient
|
|
WANTLIB += crypto m ssl ${COMPILER_LIBCXX} z
|
|
CONFIGURE_ARGS+= --with-mysql
|
|
.endif
|
|
|
|
.if ${FLAVOR:Mpostgresql}
|
|
LIB_DEPENDS+= databases/postgresql
|
|
WANTLIB += pq
|
|
WANTLIB+= crypto ssl
|
|
CONFIGURE_ARGS+= --with-postgresql
|
|
.endif
|
|
|
|
do-test:
|
|
${WRKBUILD}/test/exception
|
|
${WRKBUILD}/test/select
|
|
${WRKBUILD}/test/unit
|
|
# Next test requires manual steps for SQL server configuration.
|
|
# ${WRKBUILD}/test/pool interactive test
|
|
|
|
.include <bsd.port.mk>
|