Makefile 968 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # $OpenBSD: Makefile,v 1.11 2017/05/29 14:37:53 espie Exp $
  2. # v8 only works on these arches currently
  3. ONLY_FOR_ARCHS = amd64 i386
  4. COMMENT = PostgreSQL V8 javascript procedural language
  5. VERSION = 1.4.2
  6. REVISION = 4
  7. DISTNAME = plv8-${VERSION}
  8. PKGNAME = postgresql-${DISTNAME}
  9. CATEGORIES = databases
  10. HOMEPAGE = https://github.com/plv8/plv8
  11. # BSD
  12. PERMIT_PACKAGE_CDROM = Yes
  13. WANTLIB = c m ${LIBCXX} pthread v8
  14. MASTER_SITES = http://api.pgxn.org/dist/plv8/${VERSION}/
  15. EXTRACT_SUFX = .zip
  16. BUILD_DEPENDS = ${RUN_DEPENDS}
  17. LIB_DEPENDS = lang/libv8
  18. RUN_DEPENDS = postgresql-server->=9.6,<9.7:databases/postgresql,-server
  19. MAKE_FLAGS = V8DIR=${LOCALBASE}/lib \
  20. CUSTOM_CC="${CXX}" \
  21. OPTFLAGS="${CXXFLAGS}"
  22. USE_GMAKE = Yes
  23. # Need to start the PostgreSQL server first
  24. TEST_IS_INTERACTIVE= Yes
  25. TEST_DEPENDS = ${FULLPKGNAME}:${BUILD_PKGPATH}
  26. do-test:
  27. cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} PGUSER=postgres \
  28. gmake installcheck
  29. .include <bsd.port.mk>