ports/157097: [patch] x11-wm/xfce4-session: make HAL support optional

Warren Block wblock at wonkity.com
Tue May 17 00:10:09 UTC 2011


>Number:         157097
>Category:       ports
>Synopsis:       [patch] x11-wm/xfce4-session: make HAL support optional
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue May 17 00:10:08 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Warren Block
>Release:        8-STABLE
>Organization:
>Environment:
FreeBSD lightning 8.2-STABLE FreeBSD 8.2-STABLE #0: Sun May 15 21:02:21 MDT 2011     root at lightning:/usr/obj/usr/src/sys/LIGHTNING  i386
>Description:
Add user option to build x11-wm/xfce4-session without HAL support.  Lightly tested, may require other updates to the port, like pkg-plist.
>How-To-Repeat:
Try to build xfce4-session without HAL.
>Fix:
Apply patch.

Patch attached with submission follows:

--- x11-wm/xfce4-session/Makefile.orig	2011-05-16 17:14:33.000000000 -0600
+++ x11-wm/xfce4-session/Makefile	2011-05-16 17:39:31.000000000 -0600
@@ -20,7 +20,6 @@
 		console-kit-daemon:${PORTSDIR}/sysutils/consolekit
 LIB_DEPENDS=	wnck-1.22:${PORTSDIR}/x11-toolkits/libwnck \
 		dbus-glib-1.2:${PORTSDIR}/devel/dbus-glib \
-		hal.1:${PORTSDIR}/sysutils/hal \
 		upower-glib.1:${PORTSDIR}/sysutils/upower \
 		polkit.2:${PORTSDIR}/sysutils/policykit
 
@@ -40,7 +39,10 @@
 		--disable-gnome \
 		--disable-libgnome-keyring
 
-OPTIONS=	NLS "Enable Native Language Support" on
+OPTIONS=	NLS "Enable Native Language Support" on \
+		HAL "Enable HAL Support" on
+
+.include <bsd.port.options.mk>
 
 MAN1=		xfce4-session.1 xfce4-session-logout.1
 
@@ -55,6 +57,12 @@
 PLIST_SUB+=	NLS="@comment "
 .endif
 
+.if !defined(WITHOUT_HAL)
+LIB_DEPENDS+=	hal.1:${PORTSDIR}/sysutils/hal
+.else
+CONFIGURE_ARGS+=	--disable-hal
+.endif
+
 post-install:
 	@${SED} 's|%%LOCALBASE%%|${LOCALBASE}|g' ${PKGMESSAGE}
 


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



More information about the freebsd-ports-bugs mailing list