Makefile 810 B

12345678910111213141516171819202122232425262728293031
  1. # $OpenBSD: Makefile,v 1.72 2016/03/20 19:56:10 naddy Exp $
  2. COMMENT= access to PostgreSQL databases through the DBI
  3. MODULES= cpan databases/postgresql
  4. DISTNAME= DBD-Pg-3.5.3
  5. CATEGORIES= databases
  6. LIB_DEPENDS= databases/postgresql
  7. RUN_DEPENDS= databases/p5-DBI>=1.52
  8. BUILD_DEPENDS= ${RUN_DEPENDS}
  9. TEST_DEPENDS= devel/p5-Test-Warn
  10. MODPOSTGRESQL_TEST_DBNAME = testdb
  11. TEST_FLAGS= DBI_DSN="dbi:Pg:dbname=${MODPOSTGRESQL_TEST_DBNAME}"\
  12. DBI_PASS="" \
  13. DBI_USER=`id -nu`
  14. # XXX if DBI_USER is empty tests try to roll their own initdb + createdb
  15. MAINTAINER= Pierre-Emmanuel Andre <pea@openbsd.org>
  16. PERMIT_PACKAGE_CDROM= Yes
  17. WANTLIB+= c m perl pq>=2
  18. CONFIGURE_ENV+= POSTGRES_HOME="${LOCALBASE}" \
  19. POSTGRES_LIB="${LOCALBASE}/lib" \
  20. POSTGRES_INCLUDE="${LOCALBASE}/include/postgresql"
  21. .include <bsd.port.mk>