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

28 lines
741 B
Makefile

PORTNAME= postgresql
# Keep the ?=, this port is used as master by the other plperl.
PORTREVISION?= 1
CATEGORIES= databases perl5
PKGNAMESUFFIX?= ${WANT_PGSQL_VER}${COMPONENT}
MAINTAINER= pgsql@FreeBSD.org
COMMENT= Write SQL functions for PostgreSQL using Perl5
RUN_DEPENDS= postgres:databases/postgresql${WANT_PGSQL_VER}-server
MASTERDIR= ${.CURDIR}/../../databases/postgresql${WANT_PGSQL_VER}-server
WANT_PGSQL_VER?=16
USES+= perl5 readline
CONFIGURE_ARGS= --with-perl
BUILD_DIRS= src/backend ${INSTALL_DIRS}
INSTALL_DIRS?= src/pl/plperl contrib/bool_plperl contrib/hstore_plperl contrib/jsonb_plperl
SLAVE_ONLY= yes
COMPONENT= -plperl
# this port fails to build in parallel
MAKE_JOBS_UNSAFE= yes
.include "${MASTERDIR}/Makefile"