1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00

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>
This commit is contained in:
Frank J. Laszlo 2007-09-06 20:00:58 +00:00
parent c187b6c278
commit 12e6537916
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=198925
6 changed files with 72 additions and 0 deletions

View File

@ -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

View File

@ -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>

View File

@ -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

View File

@ -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,

View File

@ -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/

View File

@ -0,0 +1,4 @@
@comment $FreeBSD$
lib/compizconfig/backends/libgconf.so
lib/compizconfig/backends/libgconf.la
lib/compizconfig/backends/libgconf.a