From 8a3f3e9b41fa7240dee0bd907f659ba61ac2c563 Mon Sep 17 00:00:00 2001 From: Yuri Victorovich Date: Sun, 27 Jan 2019 18:06:21 +0000 Subject: [PATCH] textproc/uchardet: Fix packaging error when WITH_DEBUG is set PR: 235235 Reported by: novel --- textproc/uchardet/Makefile | 6 ++++++ textproc/uchardet/pkg-plist | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/textproc/uchardet/Makefile b/textproc/uchardet/Makefile index b0dee2d9f652..6437aa80e378 100644 --- a/textproc/uchardet/Makefile +++ b/textproc/uchardet/Makefile @@ -18,4 +18,10 @@ USE_LDCONFIG= yes CMAKE_ARGS= -DCMAKE_INSTALL_MANDIR:PATH=${MANPREFIX}/man +.if defined(WITH_DEBUG) +PLIST_SUB+= VERSION_SIFFIX=".debug" +.else +PLIST_SUB+= VERSION_SIFFIX="" +.endif + .include diff --git a/textproc/uchardet/pkg-plist b/textproc/uchardet/pkg-plist index 5f03fd9a9f06..839cbf23b00d 100644 --- a/textproc/uchardet/pkg-plist +++ b/textproc/uchardet/pkg-plist @@ -3,6 +3,6 @@ include/uchardet/uchardet.h lib/libuchardet.a lib/libuchardet.so lib/libuchardet.so.0 -lib/libuchardet.so.0.0.6 +lib/libuchardet.so.0.0.6%%VERSION_SIFFIX%% libdata/pkgconfig/uchardet.pc man/man1/uchardet.1.gz