pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/wm/metacity Only use Xinerama if it is available as a ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f81ca7056a0d
branches:  trunk
changeset: 468302:f81ca7056a0d
user:      jmmv <jmmv%pkgsrc.org@localhost>
date:      Thu Feb 12 11:13:39 2004 +0000

description:
Only use Xinerama if it is available as a shared library.  Using only the
static one means that libnautilus-private won't be built, breaking this
(and other) packages.  Patch tested by wiz@.

diffstat:

 wm/metacity/Makefile         |  10 +++++++++-
 wm/metacity/distinfo         |   3 ++-
 wm/metacity/patches/patch-aa |  20 ++++++++++++++++++++
 3 files changed, 31 insertions(+), 2 deletions(-)

diffs (58 lines):

diff -r c566e9deaf52 -r f81ca7056a0d wm/metacity/Makefile
--- a/wm/metacity/Makefile      Thu Feb 12 10:20:33 2004 +0000
+++ b/wm/metacity/Makefile      Thu Feb 12 11:13:39 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.22 2004/02/11 05:41:22 xtraeme Exp $
+# $NetBSD: Makefile,v 1.23 2004/02/12 11:13:39 jmmv Exp $
 #
 
 DISTNAME=      metacity-2.6.3
@@ -26,6 +26,14 @@
 
 GCONF2_SCHEMAS=                metacity.schemas
 
+.include "../../mk/bsd.prefs.mk"
+
+.if exists(${X11BASE}/lib/libXinerama.so)
+CONFIGURE_ENV+=                USE_XINERAMA=yes
+.else
+CONFIGURE_ENV+=                USE_XINERAMA=no
+.endif
+
 .include "../../devel/GConf2/schemas.mk"
 .include "../../devel/gettext-lib/buildlink3.mk"
 .include "../../devel/libglade2/buildlink3.mk"
diff -r c566e9deaf52 -r f81ca7056a0d wm/metacity/distinfo
--- a/wm/metacity/distinfo      Thu Feb 12 10:20:33 2004 +0000
+++ b/wm/metacity/distinfo      Thu Feb 12 11:13:39 2004 +0000
@@ -1,4 +1,5 @@
-$NetBSD: distinfo,v 1.6 2003/12/14 20:33:25 jmmv Exp $
+$NetBSD: distinfo,v 1.7 2004/02/12 11:13:39 jmmv Exp $
 
 SHA1 (metacity-2.6.3.tar.bz2) = 0b1b44a2e3a4bcf35cdb51e98887053dc60a4574
 Size (metacity-2.6.3.tar.bz2) = 1749859 bytes
+SHA1 (patch-aa) = eee7a8613f368d0df1aa8e6bfeafaa4f7cdf3b93
diff -r c566e9deaf52 -r f81ca7056a0d wm/metacity/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/wm/metacity/patches/patch-aa      Thu Feb 12 11:13:39 2004 +0000
@@ -0,0 +1,20 @@
+$NetBSD: patch-aa,v 1.3 2004/02/12 11:13:39 jmmv Exp $
+
+--- configure.orig     2003-10-28 01:38:32.000000000 +0100
++++ configure
+@@ -24482,6 +24482,7 @@ ALL_X_LIBS="$X_LIBS $X_PRE_LIBS -lX11 $X
+ metacity_save_cppflags="$CPPFLAGS"
+ CPPFLAGS="$CPPFLAGS $X_CFLAGS"
+ 
++if test "${USE_XINERAMA}" != no; then
+ use_solaris_xinerama=no
+ use_xfree_xinerama=no
+ case "$host" in
+@@ -24740,6 +24741,7 @@ echo $ECHO_N "checking for Xinerama supp
+ echo "${ECHO_T}$use_xfree_xinerama" >&6;
+         ;;
+ esac
++fi
+ 
+ CPPFLAGS="$metacity_save_cppflags"
+ 



Home | Main Index | Thread Index | Old Index