diff options
author | thor <thor@pkgsrc.org> | 2021-04-23 16:56:21 +0000 |
---|---|---|
committer | thor <thor@pkgsrc.org> | 2021-04-23 16:56:21 +0000 |
commit | c7a11f2f897f9922f10d021dd61048bc25360248 (patch) | |
tree | b9c2654ab617a377dbb5b31de881988ec5ab074a /graphics | |
parent | e267676cd539670c638ea77e792ed463162be727 (diff) | |
download | pkgsrc-c7a11f2f897f9922f10d021dd61048bc25360248.tar.gz |
graphics/cairo: make symbol lookup feature optional, avoiding libbfd
If cairo finds libbfd, it would use it unless symbol lookup was not
requested. This dependency is problematic as the binutils library
does not provide long-term ABI stability. We can live fine without this
feature and reduce the dependency footprint.
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/cairo/Makefile | 4 | ||||
-rw-r--r-- | graphics/cairo/options.mk | 13 |
2 files changed, 13 insertions, 4 deletions
diff --git a/graphics/cairo/Makefile b/graphics/cairo/Makefile index c74b225aae9..70de42fc58a 100644 --- a/graphics/cairo/Makefile +++ b/graphics/cairo/Makefile @@ -1,8 +1,8 @@ -# $NetBSD: Makefile,v 1.147 2020/08/17 20:17:27 leot Exp $ +# $NetBSD: Makefile,v 1.148 2021/04/23 16:56:21 thor Exp $ .include "../../graphics/cairo/Makefile.common" -PKGREVISION= 2 +PKGREVISION= 3 TEST_TARGET= check diff --git a/graphics/cairo/options.mk b/graphics/cairo/options.mk index 0833fe1dce3..83259cff326 100644 --- a/graphics/cairo/options.mk +++ b/graphics/cairo/options.mk @@ -1,7 +1,7 @@ -# $NetBSD: options.mk,v 1.19 2019/11/02 22:37:54 rillig Exp $ +# $NetBSD: options.mk,v 1.20 2021/04/23 16:56:21 thor Exp $ PKG_OPTIONS_VAR= PKG_OPTIONS.cairo -PKG_SUPPORTED_OPTIONS= x11 xcb +PKG_SUPPORTED_OPTIONS= x11 xcb bfd .if exists(/System/Library/Frameworks/Quartz.framework) PKG_SUPPORTED_OPTIONS+= quartz .endif @@ -57,3 +57,12 @@ CONFIGURE_ARGS+= --disable-quartz CONFIGURE_ARGS+= --disable-quartz-font CONFIGURE_ARGS+= --disable-quartz-image .endif + +# The symbol lookup feature uses libbfd from binutils, which +# is rather fragile when they decide to change the API again. +.if !empty(PKG_OPTIONS:Mbfd) +CONFIGURE_ARGS+= --enable-symbol-lookup +.else +CONFIGURE_ARGS+= --disable-symbol-lookup +.endif + |