Makefile 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # $OpenBSD: Makefile,v 1.6 2017/04/10 11:45:24 sthen Exp $
  2. COMMENT = easy to use database connection pool Library
  3. DISTNAME = libzdb-3.1
  4. REVISION = 0
  5. SHARED_LIBS += zdb 1.0 # 11.0
  6. CATEGORIES = databases
  7. HOMEPAGE = http://www.tildeslash.com/libzdb/#
  8. WANTLIB += pthread sqlite3
  9. # GPLv3
  10. PERMIT_PACKAGE_CDROM = Yes
  11. MASTER_SITES = http://www.tildeslash.com/libzdb/dist/
  12. USE_GMAKE = Yes
  13. CONFIGURE_STYLE = gnu
  14. CONFIGURE_ENV += LDFLAGS="-L${LOCALBASE}/lib" \
  15. CPPFLAGS="-I${LOCALBASE}/include"
  16. CONFIGURE_ARGS += --with-postgresql=no \
  17. --with-mysql=no
  18. FLAVORS = mysql postgresql
  19. FLAVOR ?=
  20. LIB_DEPENDS+= databases/sqlite3
  21. .if ${FLAVOR:Mmysql}
  22. LIB_DEPENDS+= databases/mariadb
  23. WANTLIB += lib/mysql/mysqlclient
  24. WANTLIB += crypto m ssl ${LIBCXX} z
  25. CONFIGURE_ARGS+= --with-mysql
  26. .endif
  27. .if ${FLAVOR:Mpostgresql}
  28. LIB_DEPENDS+= databases/postgresql
  29. WANTLIB += pq
  30. WANTLIB+= crypto ssl
  31. CONFIGURE_ARGS+= --with-postgresql
  32. .endif
  33. do-test:
  34. ${WRKBUILD}/test/exception
  35. ${WRKBUILD}/test/select
  36. ${WRKBUILD}/test/unit
  37. # Next test requires manual steps for SQL server configuration.
  38. # ${WRKBUILD}/test/pool interactive test
  39. .include <bsd.port.mk>