Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Mar 2004 23:42:48 -0600
From:      Jeremy Messenger <mezz7@cox.net>
To:        freebsd-gnome@freebsd.org
Subject:   Port patch: x11-toolkits/gtk20 (2.4.0), add a shadow option..
Message-ID:  <opr5rjhma98ckrg5@smtp.central.cox.net>

next in thread | raw e-mail | index | archive | help
------------Z5FjpgBAZDHbSsuXRXu1gl
Content-Type: text/plain; format=flowed; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

Hello,

This is took from the x11-toolkits/gtk20 (2.2.4) in the offical ports 
tree. Here's an attach of gtk20.diff and it works great. :-)

One thing that portlint complains:
=====================================
% portlint -a
WARN: Makefile: extra item placed in the PATCH_SITES section, for example, 
"PATCH_SITES".
0 fatal errors and 1 warnings found.
=====================================

I don't understand what it means.

Cheers,
Mezz


-- 
bsdforums.org 's moderator, mezz.
------------Z5FjpgBAZDHbSsuXRXu1gl
Content-Disposition: attachment; filename=gtk20.diff
Content-Type: text/plain; name=gtk20.diff
Content-Transfer-Encoding: 8bit

diff -ur gtk20.orig/Makefile gtk20/Makefile
--- gtk20.orig/Makefile	Sun Mar 28 15:27:07 2004
+++ gtk20/Makefile	Wed Mar 31 22:56:24 2004
@@ -19,6 +19,13 @@
 DISTNAME=	gtk+-${PORTVERSION}
 DIST_SUBDIR=	gnome2
 
+.if defined(WITH_DROPSHADOW)
+PATCH_SITES=	${MASTER_SITE_SOURCEFORGE}
+PATCH_SITE_SUBDIR=	xfce
+PATCHFILES=	gtk+-2.4.0-menushadow.patch
+PATCH_DIST_STRIP=	-p1
+.endif
+
 MAINTAINER=	gnome@FreeBSD.org
 COMMENT=	Gimp Toolkit for X11 GUI (current stable version)
 
@@ -42,6 +49,16 @@
 			  -I${LOCALBASE}/include -I${X11BASE}/include" \
 		LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib"
 PLIST_SUB=	GTK_VERSION="2.4.0"
+
+pre-everything::
+.if !defined(WITH_DROPSHADOW)
+	@${ECHO_MSG}
+	@${ECHO_MSG} "If you want to compile with experimental menu dropshadow patch,"
+	@${ECHO_MSG} "hit Ctrl-C right now and use make \"WITH_DROPSHADOW=yes\""
+	@${ECHO_MSG} "NOTE: This option is not supported by FreeBSD GNOME Team."
+	@${ECHO_MSG} "Please, don't bug us if it doesn't work or build broken."
+	@${ECHO_MSG}
+.endif
 
 post-patch:
 	@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${GREP} -l lgmodule | \
diff -ur gtk20.orig/distinfo gtk20/distinfo
--- gtk20.orig/distinfo	Tue Mar 16 19:58:52 2004
+++ gtk20/distinfo	Wed Mar 31 22:53:27 2004
@@ -1,2 +1,4 @@
 MD5 (gnome2/gtk+-2.4.0.tar.bz2) = fd16157de447c7f0a86495ad0dc67a1b
 SIZE (gnome2/gtk+-2.4.0.tar.bz2) = 8476610
+MD5 (gnome2/gtk+-2.4.0-menushadow.patch) = 5dde5c5af8f25d282c365663a7256b5c
+SIZE (gnome2/gtk+-2.4.0-menushadow.patch) = 15603

------------Z5FjpgBAZDHbSsuXRXu1gl--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?opr5rjhma98ckrg5>