freebsd-ports/databases/postgresql12-contrib/Makefile
Palle Girgensohn fccc45e5ff databases/postgresql14-*: Add postgresql 14 beta1 the the ports tree.
Release notes:	https://www.postgresql.org/docs/devel/release-14.html

Also reintroduce parallel builds. Some components, namely plperl,
plpython, pltcl and contrib, fail to build properly when using parallel
builds. Something with static linking using `ar` that fails.
MAKE_JOBS_UNSAFE is set for these ports.
2021-05-20 16:38:55 +02:00

43 lines
1.1 KiB
Makefile

# Created by: Palle Girgensohn <girgen@pingpong.net>
PORTNAME= postgresql
PORTREVISION= 0
CATEGORIES= databases
MAINTAINER= pgsql@FreeBSD.org
COMMENT= The contrib utilities from the PostgreSQL distribution
MASTERDIR= ${.CURDIR}/../postgresql12-server
USES= bison pgsql:${DISTVERSION:C/([0-9]\.?[0-9]).*/\1/g}
BUILD_DIRS= src/port src/include src/common contrib
INSTALL_DIRS= contrib
# this port fails to build in parallel
MAKE_JOBS_UNSAFE= yes
SLAVE_ONLY= yes
COMPONENT= -contrib
CONFIGURE_ARGS= --disable-nls --with-uuid=bsd
LDFLAGS+= -lpthread -L${PREFIX}/lib
OPTIONS_DEFINE= DOCS OPENSSL XML
OPTIONS_DEFAULT=OPENSSL XML
OPTIONS_SUB= yes
OPENSSL_DESC= Build with OpenSSL support
OPENSSL_USES= ssl
OPENSSL_CONFIGURE_WITH= openssl
XML_CONFIGURE_WITH= libxslt libxml
XML_LIB_DEPENDS=libxslt.so:textproc/libxslt \
libxml2.so:textproc/libxml2
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"