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

33 lines
781 B
Makefile

PORTNAME= postgresql
# Keep the ?=, it is used by the other pltcl ports.
PORTREVISION?= 1
CATEGORIES= databases tcl
PKGNAMESUFFIX?= ${WANT_PGSQL_VER}${COMPONENT}
MAINTAINER= pgsql@FreeBSD.org
COMMENT= Module for using Tcl to write SQL functions
MASTERDIR= ${.CURDIR}/../../databases/postgresql${WANT_PGSQL_VER}-server
WANT_PGSQL_VER?=17
USES+= tcl pgsql:${WANT_PGSQL_VER}
WANT_PGSQL= server
CONFIGURE_ARGS= --with-tcl --without-tk \
--with-tclconfig="${TCL_LIBDIR}" \
--with-includes="${TCL_INCLUDEDIR}"
CONFIGURE_ENV+= TCLSH="${TCLSH}"
MAKE_ENV+= TCL_INCDIR="${TCL_INCLUDEDIR}"
BUILD_DIRS= src/backend src/pl/tcl
INSTALL_DIRS= src/pl/tcl
SLAVE_ONLY= yes
COMPONENT= -pltcl
# this port fails to build in parallel
MAKE_JOBS_UNSAFE= yes
.include "${MASTERDIR}/Makefile"