aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoradamw <adamw@FreeBSD.org>2003-10-01 09:11:02 +0800
committeradamw <adamw@FreeBSD.org>2003-10-01 09:11:02 +0800
commitb0f5d36455a6672b32983ff1b54c44da7da48c21 (patch)
treef6a507ce640eaface1d750bc2bb439860af16f4c
parent5c0779a61bf2618ba9b82d963bd3e413ec67dac0 (diff)
downloadfreebsd-ports-gnome-b0f5d36455a6672b32983ff1b54c44da7da48c21.tar.gz
freebsd-ports-gnome-b0f5d36455a6672b32983ff1b54c44da7da48c21.tar.zst
freebsd-ports-gnome-b0f5d36455a6672b32983ff1b54c44da7da48c21.zip
The Fluxbox Background Tool gives you a nice GUI to make background
changing easier in fluxbox/blackbox. It lets you use pixmaps as well as solid colours. It includes a daemon to change the background automatically.
-rw-r--r--x11/Makefile1
-rw-r--r--x11/fluxbg/Makefile33
-rw-r--r--x11/fluxbg/distinfo1
-rw-r--r--x11/fluxbg/files/patch-src::fluxbg_conf.cc28
-rw-r--r--x11/fluxbg/files/patch-src::fluxbgd.c32
-rw-r--r--x11/fluxbg/pkg-descr6
-rw-r--r--x11/fluxbg/pkg-message8
-rw-r--r--x11/fluxbg/pkg-plist3
8 files changed, 112 insertions, 0 deletions
diff --git a/x11/Makefile b/x11/Makefile
index c13c0eb83ac5..7bfeaed861a4 100644
--- a/x11/Makefile
+++ b/x11/Makefile
@@ -36,6 +36,7 @@
SUBDIR += eterm
SUBDIR += eweather
SUBDIR += fbsd-icons
+ SUBDIR += fluxbg
SUBDIR += fspanel
SUBDIR += gdkxft
SUBDIR += gdm2
diff --git a/x11/fluxbg/Makefile b/x11/fluxbg/Makefile
new file mode 100644
index 000000000000..bbf7aad1cfff
--- /dev/null
+++ b/x11/fluxbg/Makefile
@@ -0,0 +1,33 @@
+# New ports collection makefile for: fluxbg
+# Date created: 30 September 2003
+# Whom: Adam Weinberger <adamw@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= fluxbg
+PORTVERSION= 0.6
+CATEGORIES= x11
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= ${PORTNAME}
+
+MAINTAINER= ports@FreeBSD.org
+COMMENT= Background changer for fluxbox/blackbox
+
+LIB_DEPENDS= gtkmm-2.0:${PORTSDIR}/x11-toolkits/gtk--2
+
+WRKSRC= ${WRKDIR}/${PORTNAME}
+
+USE_X_PREFIX= yes
+GNU_CONFIGURE= yes
+USE_REINPLACE= yes
+USE_GNOME= gnomehack gnometarget
+
+post-patch:
+ @${REINPLACE_CMD} -e "s|%%X11BASE%%|${X11BASE}|g" \
+ ${WRKSRC}/src/fluxbg_conf.cc
+
+post-install:
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.mk>
diff --git a/x11/fluxbg/distinfo b/x11/fluxbg/distinfo
new file mode 100644
index 000000000000..a729f3f75c15
--- /dev/null
+++ b/x11/fluxbg/distinfo
@@ -0,0 +1 @@
+MD5 (fluxbg-0.6.tar.gz) = c94c05da0d86ad30aab44af420356c7b
diff --git a/x11/fluxbg/files/patch-src::fluxbg_conf.cc b/x11/fluxbg/files/patch-src::fluxbg_conf.cc
new file mode 100644
index 000000000000..35fc2f9baacc
--- /dev/null
+++ b/x11/fluxbg/files/patch-src::fluxbg_conf.cc
@@ -0,0 +1,28 @@
+--- src/fluxbg_conf.cc.orig Sat Aug 9 12:00:29 2003
++++ src/fluxbg_conf.cc Tue Sep 30 20:53:24 2003
+@@ -10,6 +10,8 @@
+ #include <iostream>
+ #include <fstream>
+ #include <stdlib.h>
++#include <errno.h>
++#include <string.h>
+
+
+ extern "C"{
+@@ -158,6 +160,16 @@
+ BailOut();
+
+ if (try_access("/usr/local/bin/fbsetbg")==1)
++ BailOut();
++
++/* FreeBSD installs stuff in a Better Place [tm]
++ also, the fluxbox-devel port appends "-devel" to binary names */
++
++if (try_access("%%X11BASE%%/bin/fbsetbg-devel")==1)
++ BailOut();
++if (try_access("%%X11BASE%%/bin/fbsetbg")==1)
++ BailOut();
++if (try_access("%%X11BASE%%/bin/bsetbg")==1)
+ BailOut();
+
+ if (write_empty_conf()!=1)
diff --git a/x11/fluxbg/files/patch-src::fluxbgd.c b/x11/fluxbg/files/patch-src::fluxbgd.c
new file mode 100644
index 000000000000..f1142d36fa38
--- /dev/null
+++ b/x11/fluxbg/files/patch-src::fluxbgd.c
@@ -0,0 +1,32 @@
+--- src/fluxbgd.c.orig Tue Sep 30 20:40:39 2003
++++ src/fluxbgd.c Tue Sep 30 20:42:40 2003
+@@ -91,13 +91,14 @@
+ int main(int argc, char **argv)
+ {
+
+- int c;
++ int c, line_max, current_line, last_line;
+ int bOptionA = 0;
+ int bError = 0;
+ char * szInputFile = (char *) 0;
+ char * szInterval = (char *) 0;
+ char * eptr; /* seems not to be used */
+ char * next_set[120]; /* maximum line size */
++ char * sys_command;
+ /* TODO: next_set could be fixed to any length !*/
+
+ szCommand = argv[0];
+@@ -206,10 +207,9 @@
+ PrintError("Could not open file");
+ exit(EXIT_FAILURE);
+ }
+- int line_max = 0;
+- int current_line = 0;
+- int last_line = 0;
+- char *sys_command;
++ line_max = 0;
++ current_line = 0;
++ last_line = 0;
+ /* next while loop is checking how much lines are in the file */
+
+ while (fgets (next_set, sizeof(next_set), fp) != NULL)
diff --git a/x11/fluxbg/pkg-descr b/x11/fluxbg/pkg-descr
new file mode 100644
index 000000000000..90e59625fe2d
--- /dev/null
+++ b/x11/fluxbg/pkg-descr
@@ -0,0 +1,6 @@
+The Fluxbox Background Tool gives you a nice GUI to make background
+changing easier in fluxbox/blackbox. It lets you use pixmaps as well
+as solid colours. It includes a daemon to change the background
+automatically.
+
+WWW: http://fluxbg.sourceforge.net
diff --git a/x11/fluxbg/pkg-message b/x11/fluxbg/pkg-message
new file mode 100644
index 000000000000..c795639f07bd
--- /dev/null
+++ b/x11/fluxbg/pkg-message
@@ -0,0 +1,8 @@
+
+
+Before you can use fluxbg, you must first run fluxbg_conf.
+
+Before you can use fluxbg_conf, you must first install boxtools,
+fluxbox, or fluxbox-devel.
+
+
diff --git a/x11/fluxbg/pkg-plist b/x11/fluxbg/pkg-plist
new file mode 100644
index 000000000000..824f8c4fb2d0
--- /dev/null
+++ b/x11/fluxbg/pkg-plist
@@ -0,0 +1,3 @@
+bin/fluxbg
+bin/fluxbgd
+bin/fluxbg_conf