freebsd-ports/databases/pglogical/Makefile
Matthew Seaman 2ad889f4e4 Install the .sql files for release 1.1.2 -- this is missing from the
release tarball, but has been fixed in upstream's Github.

Add pglogical_dump, pglogical_origin--1.0.0.sql and
pglogical_origin.control conditionally on the postgresql version --
these are only compiled and installed with postgresql-9.4.x

Submitted by:	Anderson Neves <anderson.ufal@gmail.com>
2016-08-19 10:11:37 +00:00

53 lines
1.2 KiB
Makefile

# Created by: Matthew Seaman
# $FreeBSD$
PORTNAME= pglogical
PORTVERSION= 1.1.2
PORTREVISION= 1
CATEGORIES= databases
MASTER_SITES= http://packages.2ndquadrant.com/pglogical/tarballs/
MAINTAINER= matthew@FreeBSD.org
COMMENT= Logical replication system as a PostgreSQL extension
LICENSE= PostgreSQL
BUILD_DEPENDS= ${LOCALBASE}/lib/postgresql/pglogical_output.so:databases/pglogical-output
RUN_DEPENDS= ${LOCALBASE}/lib/postgresql/pglogical_output.so:databases/pglogical-output
USES= gmake pgsql:9.4+ tar:bzip2
WANT_PGSQL= client server
MAKE_ARGS= USE_PGXS=1
OPTIONS_DEFINE= DOCS
DOCS_PORTDOCS= *
.include <bsd.port.pre.mk>
.if ${PGSQL_VER:M9.4}
PLIST_SUB= PGSQL94=""
.else
PLIST_SUB= PGSQL94="@comment "
.endif
# FFI
#TEST_DEPENDS= pg_regress:databases/postgresql${PGSQL_VER_NODOT}-pg_regress
#TEST_TARGET= do-test
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/pglogical_create_subscriber
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/postgresql/pglogical.so
.if ${PGSQL_VER:M9.4}
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/pglogical_dump
.endif
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}/
#do-test:
# ${MAKE} ${MAKE_ARGS} check
.include <bsd.port.post.mk>