git: c7257dab0dad - main - www/immich: Update to 3.2.0

From: Jochen Neumeister <joneum_at_FreeBSD.org>
Date: Fri, 11 Sep 2026 13:03:06 UTC
The branch main has been updated by joneum:

URL: https://cgit.FreeBSD.org/ports/commit/?id=c7257dab0dad976c534b29b24469ea3e3ed7fad6

commit c7257dab0dad976c534b29b24469ea3e3ed7fad6
Author:     Jochen Neumeister <joneum@FreeBSD.org>
AuthorDate: 2026-09-11 13:01:21 +0000
Commit:     Jochen Neumeister <joneum@FreeBSD.org>
CommitDate: 2026-09-11 13:02:50 +0000

    www/immich: Update to 3.2.0
    
    Adds a new server search API that allows searching within albums and
    combining filters with AND and OR, and gives the web search interface
    a simpler layout.
    
    Changes:        https://github.com/immich-app/immich/releases/tag/v3.2.0
    Security:       fcc6baaa-adbc-11f1-a655-3497f65b111b
    Sponsored by:   Netzkommune GmbH
---
 www/immich/Makefile | 19 +++++++------------
 www/immich/distinfo | 10 +++++-----
 2 files changed, 12 insertions(+), 17 deletions(-)

diff --git a/www/immich/Makefile b/www/immich/Makefile
index 828e0bee42d0..71a895ce647c 100644
--- a/www/immich/Makefile
+++ b/www/immich/Makefile
@@ -1,7 +1,6 @@
 PORTNAME=	immich
 DISTVERSIONPREFIX=	v
-DISTVERSION=	3.1.0
-PORTREVISION=	1
+DISTVERSION=	3.2.0
 CATEGORIES=	www
 MASTER_SITES=	https://github.com/joneum/FreeBSD-Immich/releases/download/v${DISTVERSION}/:buildkit
 DISTFILES=	immich-freebsd-buildkit-${DISTVERSION}${EXTRACT_SUFX}:buildkit
@@ -34,6 +33,7 @@ USE_RC_SUBR=	immich_server
 
 BUILDKIT=	${WRKDIR}/immich-freebsd-buildkit-${DISTVERSION}
 PNPM=		${WRKDIR}/pnpm-prefix/bin/pnpm
+PNPM_VERSION=	11.22.0
 
 MAKE_ENV=	CI=1 \
 		COREPACK_ENABLE_STRICT=0 \
@@ -59,12 +59,14 @@ post-patch:
 pre-build:
 	cd ${WRKDIR} && ${SETENV} PATH=${PATH} \
 		npm install -g --prefix ${WRKDIR}/pnpm-prefix \
-		${BUILDKIT}/pnpm-11.13.1.tgz
+		${BUILDKIT}/pnpm-${PNPM_VERSION}.tgz
 
 do-build:
 	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \
 		${PNPM} install --offline --frozen-lockfile \
 		--store-dir ${BUILDKIT}/pnpm-store
+	cd $$(${ECHO_CMD} ${WRKSRC}/node_modules/.pnpm/sharp@*/node_modules/sharp) && \
+		${SETENV} ${MAKE_ENV} ${LOCALBASE}/bin/node install/build.js
 	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \
 		${PNPM} --filter @immich/plugin-sdk --filter @immich/sdk \
 		--filter immich build
@@ -73,15 +75,8 @@ do-build:
 	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \
 		${PNPM} --store-dir ${BUILDKIT}/pnpm-store --filter immich \
 		--prod --no-optional deploy ${WRKDIR}/server-pruned
-	SHARP=$$(${ECHO_CMD} ${WRKDIR}/server-pruned/node_modules/.pnpm/sharp@*/node_modules/sharp); \
-	NODEGYP=$$(${ECHO_CMD} ${WRKDIR}/server-pruned/node_modules/.pnpm/node-gyp@*/node_modules/node-gyp/bin/node-gyp.js); \
-	${REINPLACE_CMD} -e "s|VIPS,|VIPS, UHDR,|" $$SHARP/src/common.h; \
-	${REINPLACE_CMD} \
-		-e 's|{ "VipsForeignLoadJpegFile"|{ "VipsForeignLoadUhdrFile", ImageType::UHDR }, &|' \
-		-e 's|{ "VipsForeignLoadJpegFile"|{ "VipsForeignLoadUhdrBuffer", ImageType::UHDR }, &|' \
-		$$SHARP/src/common.cc; \
-	cd $$SHARP/src && ${SETENV} ${MAKE_ENV} \
-		${LOCALBASE}/bin/node $$NODEGYP rebuild
+	cd $$(${ECHO_CMD} ${WRKDIR}/server-pruned/node_modules/.pnpm/sharp@*/node_modules/sharp) && \
+		${SETENV} ${MAKE_ENV} ${LOCALBASE}/bin/node install/build.js
 
 do-install:
 	${MKDIR} ${STAGEDIR}${WWWDIR}/server \
diff --git a/www/immich/distinfo b/www/immich/distinfo
index f8a38219c067..e68e7f277242 100644
--- a/www/immich/distinfo
+++ b/www/immich/distinfo
@@ -1,5 +1,5 @@
-TIMESTAMP = 1786867736
-SHA256 (immich-freebsd-buildkit-3.1.0.tar.gz) = c04c9055198152d150fd0417151f090232664978fa7b0ae76d15f1a6d17e4d70
-SIZE (immich-freebsd-buildkit-3.1.0.tar.gz) = 367404006
-SHA256 (immich-app-immich-v3.1.0_GH0.tar.gz) = af0fba69cc5830093392de4f5576eeb7f2ccf28ba55154b7598e10f596fdfb40
-SIZE (immich-app-immich-v3.1.0_GH0.tar.gz) = 74961232
+TIMESTAMP = 1789116405
+SHA256 (immich-freebsd-buildkit-3.2.0.tar.gz) = f3770a022a57ccdef4c15147090f7791a67e7ddd649db1351399cf38c069535e
+SIZE (immich-freebsd-buildkit-3.2.0.tar.gz) = 358152251
+SHA256 (immich-app-immich-v3.2.0_GH0.tar.gz) = a10ae5e2f185dcf948ffc62bad5251e9bd8275a59b67a10a20fdc3f6de4e67d0
+SIZE (immich-app-immich-v3.2.0_GH0.tar.gz) = 73904491