pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/audio/taglib taglib: fix build breakage. Don't build t...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/65f159f420d1
branches:  trunk
changeset: 387632:65f159f420d1
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Wed Nov 02 22:39:29 2022 +0000

description:
taglib: fix build breakage. Don't build tests unless asked to.

(test suite currently fails with run path errors)

diffstat:

 audio/taglib/Makefile |  12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diffs (26 lines):

diff -r ef04f6317bc8 -r 65f159f420d1 audio/taglib/Makefile
--- a/audio/taglib/Makefile     Wed Nov 02 21:17:32 2022 +0000
+++ b/audio/taglib/Makefile     Wed Nov 02 22:39:29 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.43 2022/10/30 11:15:06 wiz Exp $
+# $NetBSD: Makefile,v 1.44 2022/11/02 22:39:29 tnn Exp $
 
 DISTNAME=      taglib-1.13
 CATEGORIES=    audio
@@ -26,6 +26,16 @@
 SUBST_SED.pc=          -e 's|-L\([     ]*[^    ]*\)|${COMPILER_RPATH_FLAG}\1 -L\1|g'
 SUBST_MESSAGE.pc=      Fixing rpath in taglib-config.
 
+.include "../../mk/bsd.prefs.mk"
+
+.if !empty(PKGSRC_RUN_TEST:M[yY][eE][sS])
+TEST_TARGET=                   test
+CMAKE_ARGS+=                   -DBUILD_TESTING=ON
+.include "../../devel/cppunit/buildlink3.mk"
+.else
+CMAKE_ARGS+=                   -DBUILD_TESTING=OFF
+.endif
+
 .include "../../mk/compiler.mk"
 #
 # depends on builtin functions which enabled with i486 and later with GCC.



Home | Main Index | Thread Index | Old Index