Po-Chuan Hsieh a626924cf2
databases/postgresql{13,14,15,16,17,18}-*: Multiple fixes
- Strip shared library and binary executable
- Fix stage-qa
- Bump PORTREVISION for package change

postgresql{13,14,15,16,17,18}-server:
- Clean up Makefile: Remove unnecessary ";\"
- Sort PLIST: share/locale comes before DATADIR (share/postgresql)

postgresql{17,18}-plperl:
- Remove duplicate USES=perl5
- Add missing USE_PERL5=run

from postgresql{17,18}-plperl build log:
====> Running Q/A tests (stage-qa)
Error: /usr/local/lib/postgresql/bool_plperl.so is linked to /usr/local/lib/perl5/5.40/mach/CORE/libperl.so.5.40 from lang/perl5.40 but it is not declared as a dependency

PR:		290587
Approved by:	girgen
2025-11-05 18:23:43 +08:00

30 lines
783 B
Makefile

PORTNAME= postgresql
CATEGORIES= databases python
# Keep the ?=, it is used as master by the other plpython ports.
PORTREVISION?= 1
PKGNAMESUFFIX?= ${WANT_PGSQL_VER}${COMPONENT}
MAINTAINER= pgsql@FreeBSD.org
COMMENT= Module for using Python to write SQL functions
WWW= https://www.postgresql.org/
USES+= pgsql:${WANT_PGSQL_VER} ${WANT_PYTHON_USE}
WANT_PGSQL= server
MASTERDIR= ${.CURDIR}/../postgresql${WANT_PGSQL_VER}-server
WANT_PGSQL_VER?= 13
WANT_PYTHON_USE?= python
CONFIGURE_ARGS= --with-python
COMPONENT= -plpython
BUILD_DIRS= src/backend ${INSTALL_DIRS}
INSTALL_DIRS?= src/pl/plpython contrib/hstore_plpython contrib/jsonb_plpython contrib/ltree_plpython
SLAVE_ONLY= yes
# this port fails to build in parallel
MAKE_JOBS_UNSAFE= yes
.include "${MASTERDIR}/Makefile"