On 10/24/26 7:50 PM, Stuart Henderson wrote:
+DISTNAME =             lcms2-2.19.1
+SITES =        
https://github.com/mm2/Little-CMS/releases/download/${DISTNAME:S/2-//}/

simpler (and shorter) to just do V or VERSION = 2.19.1 and use it in DISTNAME 
and
SITES rather than ${DISTNAME:S...}, e.g.

SITES =         https://github.com/mm2/Little-CMS/releases/download/$V/
SITES =         https://github.com/mm2/Little-CMS/releases/download/${VERSION}/

Update attached.

otherwise LGTM but it's quite widely used so would want something in the
way of tests of other ports, especially bearing in mind that the build
type has changed (pkg-config file is the same, but you lose the .la):

So far it works at runtime as a drop-in replacement for lcms2 2.18.x - could
someone running bulks include the diff in on of the upcoming runs?

<sym: graphics/lcms2>$ deps

[...]
editors/libreoffice                #  l
editors/libreoffice,-main          #  l[...]

There's some heavy stuff in there :-)
Index: Makefile
===================================================================
RCS file: /cvs/ports/graphics/lcms2/Makefile,v
retrieving revision 1.29
diff -u -p -r1.29 Makefile
--- Makefile	20 Apr 2026 19:07:42 -0000	1.29
+++ Makefile	25 Oct 2026 17:25:12 -0000
@@ -1,28 +1,26 @@
 COMMENT =		color management library
 
-DISTNAME =		lcms2-2.18pl20260420
-COMMIT =		f8425ad6ab6fc4c7c8a52187a700a8b38d92e012
-DIST_TUPLE =		github mm2 Little-CMS ${COMMIT} .
+V =			2.19.1
+DISTNAME =		lcms2-${V}
 CATEGORIES =		graphics
 
-SHARED_LIBS +=  lcms2                3.0      # 2.19
+SHARED_LIBS +=  	lcms2	3.1	# 2.19.1
 
 HOMEPAGE =		https://www.littlecms.com/
 
 # MIT
 PERMIT_PACKAGE =	Yes
 
-WANTLIB =  ${COMPILER_LIBCXX} Lerc c jpeg lzma m pthread tiff z zstd
+WANTLIB += Lerc ${COMPILER_LIBCXX} c jpeg m pthread tiff z
 
-COMPILER =	base-clang ports-gcc base-gcc
+SITES =	https://github.com/mm2/Little-CMS/releases/download/lcms${V}/
 
-LIB_DEPENDS =	graphics/tiff
+COMPILER =		base-clang ports-gcc
 
-CONFIGURE_STYLE =	gnu
-CONFIGURE_ENV =		CPPFLAGS="-I${LOCALBASE}/include" \
-			LDFLAGS="-L${LOCALBASE}/lib"
+MODULES =		devel/cmake
 
-WRKDIST =		${WRKDIR}/Little-CMS-${COMMIT}
+LIB_DEPENDS =		graphics/jpeg \
+			graphics/tiff
 
 DEBUG_PACKAGES =	${BUILD_PACKAGES}
 
Index: distinfo
===================================================================
RCS file: /cvs/ports/graphics/lcms2/distinfo,v
retrieving revision 1.15
diff -u -p -r1.15 distinfo
--- distinfo	20 Apr 2026 19:07:42 -0000	1.15
+++ distinfo	25 Oct 2026 17:25:12 -0000
@@ -1,2 +1,2 @@
-SHA256 (mm2-Little-CMS-f8425ad6ab6fc4c7c8a52187a700a8b38d92e012.tar.gz) = KilZfa5xc2sOiBSCrckTHv6PMWPvVfN6/EfsXp2Oc4s=
-SIZE (mm2-Little-CMS-f8425ad6ab6fc4c7c8a52187a700a8b38d92e012.tar.gz) = 5731247
+SHA256 (lcms2-2.19.1.tar.gz) = v8VPe6tZ+8khASAUqAMuTLpKvUbbR9RrdkFqjAsoFcg=
+SIZE (lcms2-2.19.1.tar.gz) = 5728743
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/graphics/lcms2/pkg/PLIST,v
retrieving revision 1.7
diff -u -p -r1.7 PLIST
--- pkg/PLIST	11 Mar 2022 19:22:39 -0000	1.7
+++ pkg/PLIST	25 Oct 2026 17:25:12 -0000
@@ -1,12 +1,17 @@
 @bin bin/jpgicc
 @bin bin/linkicc
 @bin bin/psicc
+@bin bin/tifdiff
 @bin bin/tificc
 @bin bin/transicc
 include/lcms2.h
 include/lcms2_plugin.h
+lib/cmake/lcms2/
+lib/cmake/lcms2/lcms2-config-version.cmake
+lib/cmake/lcms2/lcms2-config.cmake
+lib/cmake/lcms2/lcms2-targets${MODCMAKE_BUILD_SUFFIX}
+lib/cmake/lcms2/lcms2-targets.cmake
 @static-lib lib/liblcms2.a
-lib/liblcms2.la
 @lib lib/liblcms2.so.${LIBlcms2_VERSION}
 lib/pkgconfig/lcms2.pc
 @man man/man1/jpgicc.1

Reply via email to