Fix RPATH in GNOME binaries

Some GNOME packages install libraries in custom subdirectories.
This change adds these subdirectories to LDFLAGS
This commit is contained in:
Dan Cîrnaț 2020-07-16 12:46:44 +02:00
parent 305fe48395
commit 28837edfba
3 changed files with 9 additions and 1 deletions

View File

@ -1,6 +1,7 @@
# $NetBSD: Makefile,v 1.54 2015/04/25 14:24:52 tnn Exp $
DISTNAME= gnome-settings-daemon-3.36.1
PKGREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_GNOME:=sources/gnome-settings-daemon/3.36/}
EXTRACT_SUFX= .tar.xz
@ -38,6 +39,8 @@ GCONF_SCHEMAS+= desktop_gnome_peripherals_touchpad.schemas
GCONF_SCHEMAS+= desktop_gnome_peripherals_smartcard.schemas
PKGCONFIG_OVERRIDE+= data/gnome-settings-daemon.pc.in
LDFLAGS+= ${COMPILER_RPATH_FLAG}${PREFIX}/lib/gnome-settings-daemon
.include "../../textproc/iso-codes/buildlink3.mk"
.include "../../x11/xkeyboard-config/buildlink3.mk"
.include "../../audio/pulseaudio/buildlink3.mk"

View File

@ -1,7 +1,7 @@
# $NetBSD$
DISTNAME= gnome-shell-3.36.4
PKGREVISION= 2
PKGREVISION= 3
CATEGORIES= x11 gnome
MASTER_SITES= ${MASTER_SITE_GNOME:=sources/gnome-shell/3.36/}
EXTRACT_SUFX= .tar.xz
@ -30,6 +30,8 @@ MAKE_ENV+= LD_LIBRARY_PATH=${WRKSRC}/output/subprojects/gvc
REPLACE_PYTHON+= meson/*.py
LDFLAGS+= ${COMPILER_RPATH_FLAG}${PREFIX}/lib/gnome-shell
post-extract:
cp ${FILESDIR}/*.xml ${WRKSRC}/data/dbus-interfaces/

View File

@ -1,6 +1,7 @@
# $NetBSD$
DISTNAME= mutter-3.36.4
PKGREVISION= 1
CATEGORIES= x11 gnome
MASTER_SITES= ${MASTER_SITE_GNOME:=sources/mutter/3.36/}
EXTRACT_SUFX= .tar.xz
@ -28,6 +29,8 @@ PKGCONFIG_OVERRIDE+= cogl/cogl-path/mutter-cogl-path.pc.in
PKGCONFIG_OVERRIDE+= cogl/cogl/mutter-cogl.pc.in
PKGCONFIG_OVERRIDE+= src/libmutter.pc.in
LDFLAGS+= ${COMPILER_RPATH_FLAG}${PREFIX}/lib/mutter-6
# workaround for enums not being generated
pre-build:
cd ${WRKSRC} && ninja -C output/ cogl/cogl-path/cogl-path-enum-types.h