aboutsummaryrefslogtreecommitdiffstats
path: root/x11-wm/fluxbox
diff options
context:
space:
mode:
authorkrion <krion@FreeBSD.org>2004-07-30 23:22:55 +0800
committerkrion <krion@FreeBSD.org>2004-07-30 23:22:55 +0800
commit4b233a3f2c084e5db191166955bd1c4174740019 (patch)
treeb5de1df7d0f438c79ab9b6835e3e8ecb19a6824f /x11-wm/fluxbox
parent26c8819d55ec3a5a71f2eebdd4fa17714314c204 (diff)
downloadfreebsd-ports-gnome-4b233a3f2c084e5db191166955bd1c4174740019.tar.gz
freebsd-ports-gnome-4b233a3f2c084e5db191166955bd1c4174740019.tar.zst
freebsd-ports-gnome-4b233a3f2c084e5db191166955bd1c4174740019.zip
Fix build with gcc-3.2
Portlint PR: ports/69782 Submitted by: Craig Rodrigues <rodrigc@crodrigues.org>
Diffstat (limited to 'x11-wm/fluxbox')
-rw-r--r--x11-wm/fluxbox/Makefile12
-rw-r--r--x11-wm/fluxbox/files/patch-src-Resource.hh41
2 files changed, 47 insertions, 6 deletions
diff --git a/x11-wm/fluxbox/Makefile b/x11-wm/fluxbox/Makefile
index 2227e09d6143..6f253629616c 100644
--- a/x11-wm/fluxbox/Makefile
+++ b/x11-wm/fluxbox/Makefile
@@ -7,14 +7,14 @@
PORTNAME= fluxbox
PORTVERSION= 0.1.14
-PORTREVISION= 2
+PORTREVISION= 2
CATEGORIES= x11-wm
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
.if defined(WITH_REMEMBER)
-PATCH_SITES= http://www.bugfactory.org/~gav/fluxbox/
-PATCH_DIST_STRIP= -p1
+PATCH_SITES= http://www.bugfactory.org/~gav/fluxbox/
+PATCH_DIST_STRIP= -p1
PATCHFILES= remember-0.1.14-7.gz
.endif
@@ -49,9 +49,9 @@ CONFIGURE_ARGS+= --enable-xinerama
.endif
.if defined(WITH_WINSNAP)
-PATCH_SITES+= http://www.raisdorf.net/files/FreeBSD/
-PATCH_DIST_STRIP= -p1
-PATCHFILES+= winsnap-0.1.14.patch
+PATCH_SITES+= http://www.raisdorf.net/files/FreeBSD/
+PATCH_DIST_STRIP= -p1
+PATCHFILES+= winsnap-0.1.14.patch
.endif
MAN1= fluxbox.1
diff --git a/x11-wm/fluxbox/files/patch-src-Resource.hh b/x11-wm/fluxbox/files/patch-src-Resource.hh
new file mode 100644
index 000000000000..7e854873b332
--- /dev/null
+++ b/x11-wm/fluxbox/files/patch-src-Resource.hh
@@ -0,0 +1,41 @@
+--- src/Resource.hh.orig Thu Jul 29 21:04:30 2004
++++ src/Resource.hh Thu Jul 29 21:22:14 2004
+@@ -66,16 +66,9 @@
+ {
+ public:
+ Resource(ResourceManager &rm, T val,
+- const std::string &name, const std::string &altname):
+- Resource_base(name, altname),
+- m_value(val), m_defaultval(val),
+- m_rm(rm)
+- {
+- m_rm.addResource(*this); // add this to resource handler
+- }
+- virtual ~Resource() {
+- m_rm.removeResource(*this); // remove this from resource handler
+- }
++ const std::string &name, const std::string &altname);
++
++ virtual ~Resource();
+
+ inline void setDefaultValue() { m_value = m_defaultval; }
+ void setFromString(const char *strval);
+@@ -128,5 +121,18 @@
+ static bool m_init;
+ ResourceList m_resourcelist;
+ };
++
++template <typename T>
++Resource<T>::Resource(ResourceManager &rm, T val, const std::string &name,
++ const std::string &altname):
++ Resource_base(name, altname), m_value(val), m_defaultval(val),
++ m_rm(rm) {
++ m_rm.addResource(*this); // add this to resource handler
++}
++
++template <typename T>
++Resource<T>::~Resource() {
++ m_rm.removeResource(*this); // remove this from resource handler
++}
+
+ #endif //_RESOURCE_HH_