Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Jan 2012 20:58:54 -0600
From:      Zhihao Yuan <lichray@gmail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/164500: [patch] Build libwnck without startup_notification
Message-ID:  <4f20c176.69ca320a.28db.1e12@mx.google.com>
Resent-Message-ID: <201201260300.q0Q30BWX039326@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         164500
>Category:       ports
>Synopsis:       [patch] Build libwnck without startup_notification
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 26 03:00:10 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Zhihao Yuan
>Release:        FreeBSD 8.2-STABLE amd64
>Organization:
Northern Illinois University
>Environment:
System: FreeBSD elitebook.hp 8.2-STABLE FreeBSD 8.2-STABLE #2 r230519: Tue Jan 24 22:28:11 CST 2012 lichray@elitebook.hp:/usr/obj/home/lichray/devel/freebsd-8/sys/HOUKAGO amd64


	
>Description:
	
	All components of Xfce4 can be build without startup-notification, except this one, a library inherited from the Gnome project. It can be build without startup-notification actually, and I just add an option to it.
>How-To-Repeat:
	
>Fix:

	

--- libwnck_startup.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/x11-toolkits/libwnck.orig/Makefile /usr/ports/x11-toolkits/libwnck/Makefile
--- /usr/ports/x11-toolkits/libwnck.orig/Makefile	2011-09-23 17:26:30.000000000 -0500
+++ /usr/ports/x11-toolkits/libwnck/Makefile	2012-01-25 17:50:05.683690641 -0600
@@ -18,10 +18,11 @@
 
 USE_BZIP2=	yes
 
+OPTIONS=	STARTUP 	"Enable startup notification support"			on
+
 .if !defined(REFERENCE_PORT)
 
 BUILD_DEPENDS=	g-ir-scanner:${PORTSDIR}/devel/gobject-introspection
-LIB_DEPENDS=	startup-notification-1.0:${PORTSDIR}/x11/startup-notification
 RUN_DEPENDS=	g-ir-scanner:${PORTSDIR}/devel/gobject-introspection
 
 USE_GETTEXT=	yes
@@ -35,6 +36,15 @@
 CPPFLAGS+=	-I${LOCALBASE}/include
 LDFLAGS+=	-L${LOCALBASE}/lib
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if !defined(WITHOUT_STARTUP)
+LIB_DEPENDS+=	startup-notification-1.0:${PORTSDIR}/x11/startup-notification
+CONFIGURE_ARGS+=--enable-startup-notification
+.else
+CONFIGURE_ARGS+=--disable-startup-notification
+.endif
+
+.include <bsd.port.post.mk>
 
 .endif
--- libwnck_startup.patch ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4f20c176.69ca320a.28db.1e12>