Port patch: x11-toolkits/gtk20 (2.4.0), add a shadow option..

Jeremy Messenger mezz7 at cox.net
Wed Mar 31 21:42:18 PST 2004


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.
-------------- next part --------------
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 at 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


More information about the freebsd-gnome mailing list