aboutsummaryrefslogtreecommitdiffstats
path: root/x11-wm
diff options
context:
space:
mode:
authorstephen <stephen@FreeBSD.org>2011-07-12 13:27:57 +0800
committerstephen <stephen@FreeBSD.org>2011-07-12 13:27:57 +0800
commitfab4aa73e8608df31a8b88c6a6cbf7f5c1ec1a36 (patch)
treedc8197aec49159023d8bd9810e1bc877eb8a9c6b /x11-wm
parent67832bbc65c428fa08c8f6617fdfcf31dc0247a4 (diff)
downloadfreebsd-ports-gnome-fab4aa73e8608df31a8b88c6a6cbf7f5c1ec1a36.tar.gz
freebsd-ports-gnome-fab4aa73e8608df31a8b88c6a6cbf7f5c1ec1a36.tar.zst
freebsd-ports-gnome-fab4aa73e8608df31a8b88c6a6cbf7f5c1ec1a36.zip
- Fix compiz-manager script to work with Nvidia graphics card.
- Add run_depends needed by compiz-manager script. - Portlint. - Bump portrevision. PR: ports/151137 Submitted by: Ivan Klymenko <fidaj@ukr.net> Approved by: gabor (mentor)
Diffstat (limited to 'x11-wm')
-rw-r--r--x11-wm/compiz/Makefile7
-rw-r--r--x11-wm/compiz/files/compiz-manager.in4
-rw-r--r--x11-wm/compiz/pkg-message1
3 files changed, 6 insertions, 6 deletions
diff --git a/x11-wm/compiz/Makefile b/x11-wm/compiz/Makefile
index 9a80d72f859b..6bcd369edb33 100644
--- a/x11-wm/compiz/Makefile
+++ b/x11-wm/compiz/Makefile
@@ -7,7 +7,7 @@
PORTNAME= compiz
PORTVERSION= 0.8.4
-PORTREVISION= 6
+PORTREVISION= 7
CATEGORIES= x11-wm
MASTER_SITES= http://releases.compiz.org/${PORTVERSION}/
@@ -17,6 +17,8 @@ COMMENT= Compiz Composite/Window Manager
LIB_DEPENDS= png.6:${PORTSDIR}/graphics/png \
gtop-2.0.7:${PORTSDIR}/devel/libgtop \
startup-notification-1.0:${PORTSDIR}/x11/startup-notification
+RUN_DEPENDS= glxinfo:${PORTSDIR}/graphics/mesa-demos \
+ nvidia-settings:${PORTSDIR}/x11/nvidia-settings
XORG_CAT= app
GNU_CONFIGURE= yes
@@ -65,8 +67,7 @@ GCONF_SCHEMAS= gwd.schemas \
compiz-zoom.schemas
CONFIGURE_ARGS= --disable-kde4
-CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
- LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
+CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
OPTIONS= RSVG "Enable librsvg2 support" on \
GTK "Enable gtk2 support" on \
diff --git a/x11-wm/compiz/files/compiz-manager.in b/x11-wm/compiz/files/compiz-manager.in
index adfd309d3830..c5a521d14b5a 100644
--- a/x11-wm/compiz/files/compiz-manager.in
+++ b/x11-wm/compiz/files/compiz-manager.in
@@ -36,7 +36,7 @@ XFWM="%%LOCALBASE%%/bin/xfwm"
COMPIZ_NAME="compiz" # Final name for compiz (compiz.real)
# For Xgl LD_PRELOAD
-LIBGL_NVIDIA="/usr/lib/nvidia/libGL.so.1.2.xlibmesa"
+LIBGL_NVIDIA="%%LOCALBASE%%/lib/libGL.so"
LIBGL_FGLRX="/usr/lib/fglrx/libGL.so.1.2.xlibmesa"
# Minimum amount of memory (in kilo bytes) that nVidia cards need
@@ -206,7 +206,7 @@ check_xgl()
# Check if the nVidia card has enough video ram to make sense
check_nvidia_memory()
{
- MEM=$(${NVIDIA_SETTINGS} -q VideoRam | egrep Attribute\ \'VideoRam\'\ .*: | cut -d: -f3 | sed 's/[^0-9]//g')
+ MEM=$(${NVIDIA_SETTINGS} -q VideoRam | grep "Attribute 'VideoRam'"| cut -d: -f3 | sed 's/[^0-9]//g')
if [ $MEM -lt $NVIDIA_MEMORY ]; then
verbose "Less than ${NVIDIA_MEMORY}kb of memory and nVidia";
return 1;
diff --git a/x11-wm/compiz/pkg-message b/x11-wm/compiz/pkg-message
index fb8bce93719d..b7f68ab5fd79 100644
--- a/x11-wm/compiz/pkg-message
+++ b/x11-wm/compiz/pkg-message
@@ -7,4 +7,3 @@ value of:
desktop->gnome->session->required_components->windowmanager = compiz-manager
This will enable compiz as your default window manager.
-