43 lines
977 B
Makefile
43 lines
977 B
Makefile
# $OpenBSD: Makefile,v 1.13 2017/07/26 22:45:16 sthen Exp $
|
|
|
|
# v8 only works on these arches currently
|
|
ONLY_FOR_ARCHS = amd64 i386
|
|
|
|
COMMENT = PostgreSQL V8 javascript procedural language
|
|
|
|
VERSION = 1.4.2
|
|
REVISION = 5
|
|
DISTNAME = plv8-${VERSION}
|
|
PKGNAME = postgresql-${DISTNAME}
|
|
|
|
CATEGORIES = databases
|
|
|
|
HOMEPAGE = https://github.com/plv8/plv8
|
|
|
|
# BSD
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
WANTLIB = c m ${COMPILER_LIBCXX} pthread v8
|
|
|
|
MASTER_SITES = http://api.pgxn.org/dist/plv8/${VERSION}/
|
|
EXTRACT_SUFX = .zip
|
|
|
|
BUILD_DEPENDS = ${RUN_DEPENDS}
|
|
LIB_DEPENDS = lang/libv8
|
|
RUN_DEPENDS = postgresql-server->=9.6,<9.7:databases/postgresql,-server
|
|
|
|
MAKE_FLAGS = V8DIR=${LOCALBASE}/lib \
|
|
CUSTOM_CC="${CXX}" \
|
|
OPTFLAGS="${CXXFLAGS}"
|
|
USE_GMAKE = Yes
|
|
|
|
# Need to start the PostgreSQL server first
|
|
TEST_IS_INTERACTIVE= Yes
|
|
TEST_DEPENDS = ${FULLPKGNAME}:${BUILD_PKGPATH}
|
|
|
|
do-test:
|
|
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} PGUSER=postgres \
|
|
gmake installcheck
|
|
|
|
.include <bsd.port.mk>
|