summaryrefslogtreecommitdiffstats
path: root/x11-wm
diff options
context:
space:
mode:
authorlaszlof <laszlof@FreeBSD.org>2007-09-06 20:00:58 +0000
committerlaszlof <laszlof@FreeBSD.org>2007-09-06 20:00:58 +0000
commit41190cfba71032e2d1a848ff1315889018b184a7 (patch)
tree15cf1705408fe03fc8ba046219e550906739cb8a /x11-wm
parent762a954bc6c9bab6deacddb15cd4dba3be694024 (diff)
downloadFreeBSD-ports-41190cfba71032e2d1a848ff1315889018b184a7.zip
FreeBSD-ports-41190cfba71032e2d1a848ff1315889018b184a7.tar.gz
The gconf backend for CompizConfig. It uses the
Gnome configuration system and provides integration into the Gnome desktop environment. WWW: http://forums.compiz-fusion.org/ PR: ports/116137 Submitted by: Robert Noland <rnoland@2hip.net>
Diffstat (limited to 'x11-wm')
-rw-r--r--x11-wm/Makefile1
-rw-r--r--x11-wm/compizconfig-backend-gconf/Makefile34
-rw-r--r--x11-wm/compizconfig-backend-gconf/distinfo3
-rw-r--r--x11-wm/compizconfig-backend-gconf/files/patch-settings-backend-gconf.c25
-rw-r--r--x11-wm/compizconfig-backend-gconf/pkg-descr5
-rw-r--r--x11-wm/compizconfig-backend-gconf/pkg-plist4
6 files changed, 72 insertions, 0 deletions
diff --git a/x11-wm/Makefile b/x11-wm/Makefile
index d4c28d7..1c199e4 100644
--- a/x11-wm/Makefile
+++ b/x11-wm/Makefile
@@ -28,6 +28,7 @@
SUBDIR += boxtools
SUBDIR += clementine
SUBDIR += compiz
+ SUBDIR += compizconfig-backend-gconf
SUBDIR += compiz-fusion-plugins-extra
SUBDIR += compiz-fusion-plugins-main
SUBDIR += compiz-fusion-plugins-unsupported
diff --git a/x11-wm/compizconfig-backend-gconf/Makefile b/x11-wm/compizconfig-backend-gconf/Makefile
new file mode 100644
index 0000000..077f728
--- /dev/null
+++ b/x11-wm/compizconfig-backend-gconf/Makefile
@@ -0,0 +1,34 @@
+# New ports collection makefile for: compizconfig-backend-gconf
+# Date created: 2007-08-17
+# Whom: Robert Noland <rnoland@2hip.net>
+#
+# $FreeBSD$
+#
+
+PORTNAME= compizconfig-backend-gconf
+PORTVERSION= 0.5.2
+#PORTREVISION= 0
+CATEGORIES= x11-wm
+MASTER_SITES= http://releases.compiz-fusion.org/${PORTVERSION}/
+
+MAINTAINER= rnoland@2hip.net
+COMMENT= The gconf backend for CompizConfig
+
+BUILD_DEPENDS= \
+ ${LOCALBASE}/libdata/pkgconfig/compiz.pc:${PORTSDIR}/x11-wm/compiz \
+ ${LOCALBASE}/libdata/pkgconfig/libcompizconfig.pc:${PORTSDIR}/x11-wm/libcompizconfig
+
+USE_BZIP2= yes
+GNU_CONFIGURE= yes
+USE_GMAKE= yes
+USE_LDCONFIG= yes
+USE_AUTOTOOLS= libtool:15
+
+USE_GNOME= gnomehack glib20 gconf2
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|' \
+ ${WRKSRC}/settings-backend/gconf.c \
+
+.include <bsd.port.pre.mk>
+.include <bsd.port.post.mk>
diff --git a/x11-wm/compizconfig-backend-gconf/distinfo b/x11-wm/compizconfig-backend-gconf/distinfo
new file mode 100644
index 0000000..7d709a8
--- /dev/null
+++ b/x11-wm/compizconfig-backend-gconf/distinfo
@@ -0,0 +1,3 @@
+MD5 (compizconfig-backend-gconf-0.5.2.tar.bz2) = f64426ae486e62b5d475ab4e40d9d0d3
+SHA256 (compizconfig-backend-gconf-0.5.2.tar.bz2) = 9c62533019683cbf6811e8d71feb4ea7ef1e4e37e44b5a63f701b2b25d12d4c1
+SIZE (compizconfig-backend-gconf-0.5.2.tar.bz2) = 236234
diff --git a/x11-wm/compizconfig-backend-gconf/files/patch-settings-backend-gconf.c b/x11-wm/compizconfig-backend-gconf/files/patch-settings-backend-gconf.c
new file mode 100644
index 0000000..9dba9b8
--- /dev/null
+++ b/x11-wm/compizconfig-backend-gconf/files/patch-settings-backend-gconf.c
@@ -0,0 +1,25 @@
+--- settings-backend/gconf.c.orig 2007-08-14 05:26:13.000000000 -0400
++++ settings-backend/gconf.c 2007-08-17 21:44:10.000000000 -0400
+@@ -28,7 +28,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
+-#include <malloc.h>
++#include <stdlib.h>
+ #include <string.h>
+ #include <dirent.h>
+
+@@ -441,7 +441,12 @@
+
+ if (strcmp (token + len - prefixLen, prefix[i]) == 0)
+ {
+- char *buffer = strndup (token, len - prefixLen);
++ char *buffer;
++ if ((buffer = (char *) malloc(len - prefixLen + 1)) != NULL) {
++ bzero (buffer, len - prefixLen + 1);
++ strncpy (buffer, token, len - prefixLen);
++ }
++
+ if (buffer)
+ {
+ setting = ccsFindSetting (plugin, buffer,
diff --git a/x11-wm/compizconfig-backend-gconf/pkg-descr b/x11-wm/compizconfig-backend-gconf/pkg-descr
new file mode 100644
index 0000000..9ccf3d4
--- /dev/null
+++ b/x11-wm/compizconfig-backend-gconf/pkg-descr
@@ -0,0 +1,5 @@
+The gconf backend for CompizConfig. It uses the
+Gnome configuration system and provides integration into the Gnome desktop
+environment.
+
+WWW: http://forums.compiz-fusion.org/
diff --git a/x11-wm/compizconfig-backend-gconf/pkg-plist b/x11-wm/compizconfig-backend-gconf/pkg-plist
new file mode 100644
index 0000000..e9ffd1f6
--- /dev/null
+++ b/x11-wm/compizconfig-backend-gconf/pkg-plist
@@ -0,0 +1,4 @@
+@comment $FreeBSD$
+lib/compizconfig/backends/libgconf.so
+lib/compizconfig/backends/libgconf.la
+lib/compizconfig/backends/libgconf.a
OpenPOWER on IntegriCloud