pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/audio/strawberry strawberry: wants std::optional



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d86bb296d72d
branches:  trunk
changeset: 379639:d86bb296d72d
user:      nia <nia%pkgsrc.org@localhost>
date:      Sat May 21 07:55:39 2022 +0000

description:
strawberry: wants std::optional

diffstat:

 audio/strawberry/Makefile |  11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diffs (32 lines):

diff -r 84aeb1ea6fac -r d86bb296d72d audio/strawberry/Makefile
--- a/audio/strawberry/Makefile Sat May 21 07:51:53 2022 +0000
+++ b/audio/strawberry/Makefile Sat May 21 07:55:39 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.34 2022/04/18 19:10:26 adam Exp $
+# $NetBSD: Makefile,v 1.35 2022/05/21 07:55:39 nia Exp $
 
 DISTNAME=      strawberry-1.0.4
 PKGREVISION=   1
@@ -17,6 +17,7 @@
 USE_CMAKE=     yes
 USE_LANGUAGES= c c++
 USE_TOOLS+=    pkg-config
+GCC_REQD+=     7 # std::optional
 
 DEPENDS+=      gst-plugins1-flac-[0-9]*:../../audio/gst-plugins1-flac
 DEPENDS+=      gst-plugins1-mpg123-[0-9]*:../../audio/gst-plugins1-mpg123
@@ -39,6 +40,14 @@
 
 .if ${OPSYS} == "NetBSD"
 PREFER.sqlite3=        pkgsrc # fts5
+# This package will link against libstdc++.so from the pkgsrc GCC when the
+# base OS GCC doesn't meet the minimum requirement. Thus we do this so the
+# appropriate gcc-libs package will be captured as a dependency, otherwise
+# binary packages will be broken.
+.  if ${OPSYS_VERSION} < 090000
+USE_PKGSRC_GCC=                yes
+USE_PKGSRC_GCC_RUNTIME=        yes
+.  endif
 .endif
 
 INSTALLATION_DIRS+=    ${PKGMANDIR}/man1



Home | Main Index | Thread Index | Old Index