diff options
author | kwm <kwm@FreeBSD.org> | 2010-08-18 04:10:16 +0800 |
---|---|---|
committer | kwm <kwm@FreeBSD.org> | 2010-08-18 04:10:16 +0800 |
commit | 2542dd25286f9897b81258ba084453054b238ac0 (patch) | |
tree | 5c37acba377e91cf04d3ee29c5ca0e7fcb7c1c74 /sysutils/gnome-settings-daemon | |
parent | 0f5b1a7984128a47096cebb4abc533f094cc61d1 (diff) | |
download | freebsd-ports-gnome-2542dd25286f9897b81258ba084453054b238ac0.tar.gz freebsd-ports-gnome-2542dd25286f9897b81258ba084453054b238ac0.tar.zst freebsd-ports-gnome-2542dd25286f9897b81258ba084453054b238ac0.zip |
Optionfy the pulseaudio dependancy. Default to on.
Submitted by: jsa@
Diffstat (limited to 'sysutils/gnome-settings-daemon')
-rw-r--r-- | sysutils/gnome-settings-daemon/Makefile | 19 | ||||
-rw-r--r-- | sysutils/gnome-settings-daemon/pkg-plist | 8 |
2 files changed, 20 insertions, 7 deletions
diff --git a/sysutils/gnome-settings-daemon/Makefile b/sysutils/gnome-settings-daemon/Makefile index 5ba579156dbd..1530144d6baf 100644 --- a/sysutils/gnome-settings-daemon/Makefile +++ b/sysutils/gnome-settings-daemon/Makefile @@ -15,8 +15,7 @@ DIST_SUBDIR= gnome2 MAINTAINER= gnome@FreeBSD.org COMMENT= GNOME 2 settings daemon -LIB_DEPENDS= pulse.0:${PORTSDIR}/audio/pulseaudio \ - canberra-gtk.0:${PORTSDIR}/audio/libcanberra \ +LIB_DEPENDS= canberra-gtk.0:${PORTSDIR}/audio/libcanberra \ notify.1:${PORTSDIR}/devel/libnotify RUN_DEPENDS= xrdb:${PORTSDIR}/x11/xrdb @@ -26,11 +25,14 @@ USE_GMAKE= yes USE_GNOME= gnomeprefix intlhack gnomehack gnomedesktop libgnomekbd USE_GETTEXT= yes USE_GSTREAMER= good +USE_LDCONFIG= yes GNU_CONFIGURE= yes INSTALLS_ICONS= yes CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ LDFLAGS="-L${LOCALBASE}/lib" +OPTIONS= PULSEAUDIO "Enable Pulseaudio support" On + GCONF_SCHEMAS= apps_gnome_settings_daemon_housekeeping.schemas \ apps_gnome_settings_daemon_keybindings.schemas \ apps_gnome_settings_daemon_xrandr.schemas \ @@ -39,4 +41,15 @@ GCONF_SCHEMAS= apps_gnome_settings_daemon_housekeeping.schemas \ desktop_gnome_peripherals_touchpad.schemas \ gnome-settings-daemon.schemas -.include <bsd.port.mk> +.include <bsd.port.pre.mk> + +.if defined(WITHOUT_PULSEAUDIO) +CONFIGURE_ARGS+=--disable-pulse +PLIST_SUB+= PULSEAUDIO="@comment " +.else +LIB_DEPENDS+= pulse.0:${PORTSDIR}/audio/pulseaudio +CONFIGURE_ARGS+=--enable-pulse +PLIST_SUB+= PULSEAUDIO="" +.endif + +.include <bsd.port.post.mk> diff --git a/sysutils/gnome-settings-daemon/pkg-plist b/sysutils/gnome-settings-daemon/pkg-plist index a63c3473679c..144568d8cabe 100644 --- a/sysutils/gnome-settings-daemon/pkg-plist +++ b/sysutils/gnome-settings-daemon/pkg-plist @@ -29,9 +29,9 @@ lib/gnome-settings-daemon-2.0/libkeybindings.so lib/gnome-settings-daemon-2.0/libkeyboard.a lib/gnome-settings-daemon-2.0/libkeyboard.la lib/gnome-settings-daemon-2.0/libkeyboard.so -lib/gnome-settings-daemon-2.0/libmedia-keys.a -lib/gnome-settings-daemon-2.0/libmedia-keys.la -lib/gnome-settings-daemon-2.0/libmedia-keys.so +%%PULSEAUDIO%%lib/gnome-settings-daemon-2.0/libmedia-keys.a +%%PULSEAUDIO%%lib/gnome-settings-daemon-2.0/libmedia-keys.la +%%PULSEAUDIO%%lib/gnome-settings-daemon-2.0/libmedia-keys.so lib/gnome-settings-daemon-2.0/libmouse.a lib/gnome-settings-daemon-2.0/libmouse.la lib/gnome-settings-daemon-2.0/libmouse.so @@ -50,7 +50,7 @@ lib/gnome-settings-daemon-2.0/libxrdb.so lib/gnome-settings-daemon-2.0/libxsettings.a lib/gnome-settings-daemon-2.0/libxsettings.la lib/gnome-settings-daemon-2.0/libxsettings.so -lib/gnome-settings-daemon-2.0/media-keys.gnome-settings-plugin +%%PULSEAUDIO%%lib/gnome-settings-daemon-2.0/media-keys.gnome-settings-plugin lib/gnome-settings-daemon-2.0/mouse.gnome-settings-plugin lib/gnome-settings-daemon-2.0/sound.gnome-settings-plugin lib/gnome-settings-daemon-2.0/typing-break.gnome-settings-plugin |