freebsd-ports/databases/postgresql10-contrib/Makefile
Adam Weinberger 6eaf92cd8f postgresql{96,10,11}-contrib: Add an XML option
Avoids the libxml/libxslt2 dependency chain for systems that don't need
the XML datatype plugin.

PR:		239638
Approved by:	maintainer timeout (pgsql team, nearly 5 months)
2019-12-30 18:04:39 +00:00

37 lines
898 B
Makefile

# Created by: Palle Girgensohn <girgen@pingpong.net>
# $FreeBSD$
PORTNAME= postgresql
PORTREVISION= 0
CATEGORIES= databases
MAINTAINER= pgsql@FreeBSD.org
COMMENT= The contrib utilities from the PostgreSQL distribution
MASTERDIR= ${.CURDIR}/../postgresql10-server
USES= bison pgsql:10
BUILD_DIRS= src/port src/include src/common contrib
INSTALL_DIRS= contrib
SLAVE_ONLY= yes
COMPONENT= -contrib
CONFIGURE_ARGS+=--with-openssl --disable-nls --with-uuid=bsd
LDFLAGS+= -lpthread -L${PREFIX}/lib
OPTIONS_DEFINE= DOCS XML
OPTIONS_DEFAULT=XML
OPTIONS_SUB= yes
XML_LIB_DEPENDS=libxslt.so:textproc/libxslt \
libxml2.so:textproc/libxml2
XML_CONFIGURE_WITH= libxml libxslt
post-configure:
@cd ${WRKSRC}/src/backend && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} symlinks
post-install:
@- ${INSTALL_DATA} ${WRKSRC}/contrib/README ${STAGEDIR}${DOCSDIR}/extension/README
.include "${MASTERDIR}/Makefile"