1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00

make HAL support optional

PR:		ports/157097
Submitted by:	Warren Block <wblock@wonkity.com>
This commit is contained in:
Oliver Lehmann 2011-06-07 06:37:58 +00:00
parent 29580724f3
commit 1e8467d50b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=275174

View File

@ -20,7 +20,6 @@ RUN_DEPENDS= iceauth:${PORTSDIR}/x11/iceauth \
console-kit-daemon:${PORTSDIR}/sysutils/consolekit console-kit-daemon:${PORTSDIR}/sysutils/consolekit
LIB_DEPENDS= wnck-1.22:${PORTSDIR}/x11-toolkits/libwnck \ LIB_DEPENDS= wnck-1.22:${PORTSDIR}/x11-toolkits/libwnck \
dbus-glib-1.2:${PORTSDIR}/devel/dbus-glib \ dbus-glib-1.2:${PORTSDIR}/devel/dbus-glib \
hal.1:${PORTSDIR}/sysutils/hal \
upower-glib.1:${PORTSDIR}/sysutils/upower \ upower-glib.1:${PORTSDIR}/sysutils/upower \
polkit.2:${PORTSDIR}/sysutils/policykit polkit.2:${PORTSDIR}/sysutils/policykit
@ -40,7 +39,10 @@ CONFIGURE_ARGS+= --enable-panel-plugin \
--disable-gnome \ --disable-gnome \
--disable-libgnome-keyring --disable-libgnome-keyring
OPTIONS= NLS "Enable Native Language Support" on OPTIONS= NLS "Enable Native Language Support" on \
HAL "Enable HAL Support" off
.include <bsd.port.options.mk>
MAN1= xfce4-session.1 xfce4-session-logout.1 MAN1= xfce4-session.1 xfce4-session-logout.1
@ -54,6 +56,11 @@ PLIST_SUB+= NLS=""
CONFIGURE_ARGS+= --disable-nls CONFIGURE_ARGS+= --disable-nls
PLIST_SUB+= NLS="@comment " PLIST_SUB+= NLS="@comment "
.endif .endif
.if !defined(WITHOUT_HAL)
LIB_DEPENDS+= hal.1:${PORTSDIR}/sysutils/hal
.else
CONFIGURE_ARGS+=--disable-hal
.endif
post-install: post-install:
@${SED} 's|%%LOCALBASE%%|${LOCALBASE}|g' ${PKGMESSAGE} @${SED} 's|%%LOCALBASE%%|${LOCALBASE}|g' ${PKGMESSAGE}