use postgresql module for regress tests. From Abel Abraham Camarillo Ojeda acamari / the00z / org ok pea@ (MAINTAINER)
33 lines
824 B
Makefile
33 lines
824 B
Makefile
# $OpenBSD: Makefile,v 1.71 2015/10/30 16:20:11 landry Exp $
|
|
|
|
SHARED_ONLY= Yes
|
|
|
|
COMMENT= access to PostgreSQL databases through the DBI
|
|
|
|
MODULES= cpan databases/postgresql
|
|
DISTNAME= DBD-Pg-3.5.3
|
|
CATEGORIES= databases
|
|
|
|
LIB_DEPENDS= databases/postgresql
|
|
RUN_DEPENDS= databases/p5-DBI>=1.52
|
|
BUILD_DEPENDS= ${RUN_DEPENDS}
|
|
TEST_DEPENDS= devel/p5-Test-Warn
|
|
|
|
MODPOSTGRESQL_TEST_DBNAME = testdb
|
|
TEST_FLAGS= DBI_DSN="dbi:Pg:dbname=${MODPOSTGRESQL_TEST_DBNAME}"\
|
|
DBI_PASS="" \
|
|
DBI_USER=`id -nu`
|
|
# XXX if DBI_USER is empty tests try to roll their own initdb + createdb
|
|
|
|
MAINTAINER= Pierre-Emmanuel Andre <pea@openbsd.org>
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
WANTLIB+= c m pq>=2
|
|
|
|
CONFIGURE_ENV+= POSTGRES_HOME="${LOCALBASE}" \
|
|
POSTGRES_LIB="${LOCALBASE}/lib" \
|
|
POSTGRES_INCLUDE="${LOCALBASE}/include/postgresql"
|
|
|
|
.include <bsd.port.mk>
|