git: a6e35a18d070 - main - print/freetype2: Handle WITH_DEBUG plist changes

From: Joseph Mingrone <jrm_at_FreeBSD.org>
Date: Wed, 06 Jul 2022 20:03:49 UTC
The branch main has been updated by jrm:

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

commit a6e35a18d07015a37b858c82cabe136c27f92f3a
Author:     Joseph Mingrone <jrm@FreeBSD.org>
AuthorDate: 2022-07-04 19:33:40 +0000
Commit:     Joseph Mingrone <jrm@FreeBSD.org>
CommitDate: 2022-07-06 20:00:41 +0000

    print/freetype2: Handle WITH_DEBUG plist changes
    
    PR:             264457
    Reported by:    Marcin Cieślak <saper@saper.info>
    Approved by:    desktop (tcberner)
    Sponsored by:   The FreeBSD Foundation
    Differential Revision:  https://reviews.freebsd.org/D35712#810587
---
 print/freetype2/Makefile  | 1 +
 print/freetype2/pkg-plist | 6 +++---
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/print/freetype2/Makefile b/print/freetype2/Makefile
index 95083ef1f053..fa4829002572 100644
--- a/print/freetype2/Makefile
+++ b/print/freetype2/Makefile
@@ -30,6 +30,7 @@ CMAKE_ON=	BUILD_SHARED_LIBS \
 
 SUB_FILES=	pkg-message
 
+PLIST_SUB=	DEBUG_SUFFIX=${WITH_DEBUG:Dd}
 PORTDOCS=	CHANGES FTL.TXT formats.txt raster.txt reference
 
 OPTIONS_DEFINE=		BROTLI DEBUG DOCS LONG_PCF_NAMES PNG TABLE_VALIDATION
diff --git a/print/freetype2/pkg-plist b/print/freetype2/pkg-plist
index 7993dcdbed10..6de2d4855311 100644
--- a/print/freetype2/pkg-plist
+++ b/print/freetype2/pkg-plist
@@ -58,7 +58,7 @@ include/freetype2/ft2build.h
 lib/cmake/freetype/freetype-config-%%CMAKE_BUILD_TYPE%%.cmake
 lib/cmake/freetype/freetype-config-version.cmake
 lib/cmake/freetype/freetype-config.cmake
-lib/libfreetype.so
-lib/libfreetype.so.6
-lib/libfreetype.so.6.18.3
+lib/libfreetype%%DEBUG_SUFFIX%%.so
+lib/libfreetype%%DEBUG_SUFFIX%%.so.6
+lib/libfreetype%%DEBUG_SUFFIX%%.so.6.18.3
 libdata/pkgconfig/freetype2.pc