aboutsummaryrefslogtreecommitdiffstats
path: root/editors
diff options
context:
space:
mode:
authorlofi <lofi@FreeBSD.org>2005-11-26 03:36:50 +0800
committerlofi <lofi@FreeBSD.org>2005-11-26 03:36:50 +0800
commit671dfe682d03c60776144a342d95c7f19f92ef1d (patch)
treef6363ba0b2023335dfc22b0c0e73f24202ef3720 /editors
parentdcde64566040be7a948e8397f3a55a5a0a59050d (diff)
downloadfreebsd-ports-gnome-671dfe682d03c60776144a342d95c7f19f92ef1d.tar.gz
freebsd-ports-gnome-671dfe682d03c60776144a342d95c7f19f92ef1d.tar.zst
freebsd-ports-gnome-671dfe682d03c60776144a342d95c7f19f92ef1d.zip
Fix KDE Bug 111372 / FreeBSD PR 89479
Diffstat (limited to 'editors')
-rw-r--r--editors/calligra/Makefile4
-rw-r--r--editors/calligra/files/karbon_factory_init.cc23
-rw-r--r--editors/calligra/files/patch-karbon_Makefile.in107
-rw-r--r--editors/calligra/files/patch-karbon_karbon_factory.cc14
-rw-r--r--editors/koffice-kde3/Makefile4
-rw-r--r--editors/koffice-kde3/files/karbon_factory_init.cc23
-rw-r--r--editors/koffice-kde3/files/patch-karbon_Makefile.in107
-rw-r--r--editors/koffice-kde3/files/patch-karbon_karbon_factory.cc14
-rw-r--r--editors/koffice-kde4/Makefile4
-rw-r--r--editors/koffice-kde4/files/karbon_factory_init.cc23
-rw-r--r--editors/koffice-kde4/files/patch-karbon_Makefile.in107
-rw-r--r--editors/koffice-kde4/files/patch-karbon_karbon_factory.cc14
12 files changed, 444 insertions, 0 deletions
diff --git a/editors/calligra/Makefile b/editors/calligra/Makefile
index 684dac69a2b2..6ac7cfd32256 100644
--- a/editors/calligra/Makefile
+++ b/editors/calligra/Makefile
@@ -7,6 +7,7 @@
PORTNAME= koffice
PORTVERSION= 1.4.2
+PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= editors kde
MASTER_SITES= ${MASTER_SITE_KDE}
@@ -50,6 +51,9 @@ CONFIGURE_ARGS+=--with-pgsqlincdir=${LOCALBASE}/include \
EXTRA_PATCHES= ${PATCHDIR}/extrapatch-kexi-main-keximainwindowimpl.cpp
.endif
+post-patch:
+ ${CP} ${FILESDIR}/karbon_factory_init.cc ${WRKSRC}/karbon
+
post-configure:
.if ${OSVERSION} < 500035
${REINPLACE_CMD} -e 's|\(^CPPFLAGS =.*\)|\1 -I${LOCALBASE}/include/stlport|g' \
diff --git a/editors/calligra/files/karbon_factory_init.cc b/editors/calligra/files/karbon_factory_init.cc
new file mode 100644
index 000000000000..76315b5e3378
--- /dev/null
+++ b/editors/calligra/files/karbon_factory_init.cc
@@ -0,0 +1,23 @@
+/* This file is part of the KDE project
+ Copyright (C) 2005 The Karbon Developers
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Library General Public License for more details.
+
+ You should have received a copy of the GNU Library General Public License
+ along with this library; see the file COPYING.LIB. If not, write to
+ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301, USA.
+*/
+
+#include "karbon_factory.h"
+
+K_EXPORT_COMPONENT_FACTORY( libkarbonpart, KarbonFactory() )
+
diff --git a/editors/calligra/files/patch-karbon_Makefile.in b/editors/calligra/files/patch-karbon_Makefile.in
new file mode 100644
index 000000000000..329bef8ae6d0
--- /dev/null
+++ b/editors/calligra/files/patch-karbon_Makefile.in
@@ -0,0 +1,107 @@
+--- karbon/Makefile.in.orig Wed Oct 5 12:52:36 2005
++++ karbon/Makefile.in Fri Nov 25 18:12:28 2005
+@@ -369,7 +369,7 @@
+ libkarbonbase_la_LDFLAGS = $(KDE_RPATH) -version-info 2:0:0 -no-undefined $(KDE_NO_UNDEFINED)
+ libkarbonbase_la_LIBADD = $(LIB_KOFFICEUI)
+
+-libkarboncommon_la_LDFLAGS = $(KDE_RPATH) $(LIBFREETYPE_RPATH)
++libkarboncommon_la_LDFLAGS = $(KDE_RPATH) $(LIBFREETYPE_RPATH) -no-undefined
+ libkarboncommon_la_LIBADD = $(LIB_KOFFICECORE) $(LIB_KOFFICEUI) $(LIB_KOPAINTER) $(LIB_KOTEXT) \
+ dockers/libkarbondockers.la \
+ widgets/libkarbonwidgets.la \
+@@ -388,7 +388,7 @@
+ $(LIBFREETYPE_LIBS)
+
+
+-libkarbonpart_la_SOURCES = dummy.cpp
++libkarbonpart_la_SOURCES = karbon_factory_init.cc
+ libkarbonpart_la_LDFLAGS = $(KDE_PLUGIN) $(LIBFREETYPE_RPATH)
+ libkarbonpart_la_LIBADD = libkarboncommon.la
+ #>- libkarbonpart_la_METASOURCES = AUTO
+@@ -422,10 +422,10 @@
+ karbon_la_DEPENDENCIES = libkdeinit_karbon.la
+ #>- am_karbon_la_OBJECTS = main.lo
+ #>+ 1
+-am_karbon_la_OBJECTS = karbon_dummy.lo
++am_karbon_la_OBJECTS = karbon_karbon_factory_init.lo
+ #>- karbon_la_OBJECTS = $(am_karbon_la_OBJECTS)
+ #>+ 1
+-karbon_la_OBJECTS = karbon_dummy.lo
++karbon_la_OBJECTS = karbon_karbon_factory_init.lo
+ libkarbonbase_la_DEPENDENCIES =
+ am_libkarbonbase_la_OBJECTS = karbon_view_base.lo karbon_part_base.lo
+ #>- libkarbonbase_la_OBJECTS = $(am_libkarbonbase_la_OBJECTS)
+@@ -455,10 +455,10 @@
+ @KDE_USE_FINAL_FALSE@libkarboncommon_la_OBJECTS = $(libkarboncommon_la_nofinal_OBJECTS)
+ @KDE_USE_FINAL_TRUE@libkarboncommon_la_OBJECTS = $(libkarboncommon_la_final_OBJECTS)
+ libkarbonpart_la_DEPENDENCIES = libkarboncommon.la
+-am_libkarbonpart_la_OBJECTS = dummy.lo
++am_libkarbonpart_la_OBJECTS = karbon_factory_init.lo
+ #>- libkarbonpart_la_OBJECTS = $(am_libkarbonpart_la_OBJECTS)
+ #>+ 1
+-libkarbonpart_la_OBJECTS = dummy.lo
++libkarbonpart_la_OBJECTS = karbon_factory_init.lo
+ bin_PROGRAMS =
+ #>- PROGRAMS = $(bin_PROGRAMS)
+ #>+ 2
+@@ -473,7 +473,7 @@
+ LIBS = @LIBS@
+ depcomp = $(SHELL) $(top_srcdir)/admin/depcomp
+ am__depfiles_maybe = depfiles
+-#>- @AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/dummy.Plo \
++#>- @AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/karbon_factory_init.Plo \
+ #>- @AMDEP_TRUE@ ./$(DEPDIR)/karbon_drag.Plo \
+ #>- @AMDEP_TRUE@ ./$(DEPDIR)/karbon_factory.Plo \
+ #>- @AMDEP_TRUE@ ./$(DEPDIR)/karbon_grid_data.Plo \
+@@ -486,7 +486,7 @@
+ #>- @AMDEP_TRUE@ ./$(DEPDIR)/karbon_view_iface.Plo \
+ #>- @AMDEP_TRUE@ ./$(DEPDIR)/main.Plo
+ #>+ 24
+-@AMDEP_TRUE@@KDE_USE_FINAL_TRUE@DEP_FILES = $(DEPDIR)/karbon.la.Po $(DEPDIR)/karbon_dummy.Plo $(DEPDIR)/karbon_part_iface_skel.P $(DEPDIR)/karbon_view_iface_skel.P $(DEPDIR)/libkarbonbase_la.all_cc.P $(DEPDIR)/libkarboncommon_la.all_cc.P $(DEPDIR)/libkarboncommon_la.all_cpp.P ./$(DEPDIR)/dummy.Plo \
++@AMDEP_TRUE@@KDE_USE_FINAL_TRUE@DEP_FILES = $(DEPDIR)/karbon.la.Po $(DEPDIR)/karbon_karbon_factory_init.Plo $(DEPDIR)/karbon_part_iface_skel.P $(DEPDIR)/karbon_view_iface_skel.P $(DEPDIR)/libkarbonbase_la.all_cc.P $(DEPDIR)/libkarboncommon_la.all_cc.P $(DEPDIR)/libkarboncommon_la.all_cpp.P ./$(DEPDIR)/karbon_factory_init.Plo \
+ @AMDEP_TRUE@@KDE_USE_FINAL_TRUE@ @AMDEP_TRUE@ ./$(DEPDIR)/karbon_drag.Plo \
+ @AMDEP_TRUE@@KDE_USE_FINAL_TRUE@ @AMDEP_TRUE@ ./$(DEPDIR)/karbon_factory.Plo \
+ @AMDEP_TRUE@@KDE_USE_FINAL_TRUE@ @AMDEP_TRUE@ ./$(DEPDIR)/karbon_grid_data.Plo \
+@@ -498,7 +498,7 @@
+ @AMDEP_TRUE@@KDE_USE_FINAL_TRUE@ @AMDEP_TRUE@ ./$(DEPDIR)/karbon_view_base.Plo \
+ @AMDEP_TRUE@@KDE_USE_FINAL_TRUE@ @AMDEP_TRUE@ ./$(DEPDIR)/karbon_view_iface.Plo \
+ @AMDEP_TRUE@@KDE_USE_FINAL_TRUE@ @AMDEP_TRUE@ ./$(DEPDIR)/main.Plo
+-@AMDEP_TRUE@@KDE_USE_FINAL_FALSE@DEP_FILES = $(DEPDIR)/karbon.la.Po $(DEPDIR)/karbon_dummy.Plo $(DEPDIR)/karbon_part_iface_skel.P $(DEPDIR)/karbon_view_iface_skel.P ./$(DEPDIR)/dummy.Plo \
++@AMDEP_TRUE@@KDE_USE_FINAL_FALSE@DEP_FILES = $(DEPDIR)/karbon.la.Po $(DEPDIR)/karbon_karbon_factory_init.Plo $(DEPDIR)/karbon_part_iface_skel.P $(DEPDIR)/karbon_view_iface_skel.P ./$(DEPDIR)/karbon_factory_init.Plo \
+ @AMDEP_TRUE@@KDE_USE_FINAL_FALSE@ @AMDEP_TRUE@ ./$(DEPDIR)/karbon_drag.Plo \
+ @AMDEP_TRUE@@KDE_USE_FINAL_FALSE@ @AMDEP_TRUE@ ./$(DEPDIR)/karbon_factory.Plo \
+ @AMDEP_TRUE@@KDE_USE_FINAL_FALSE@ @AMDEP_TRUE@ ./$(DEPDIR)/karbon_grid_data.Plo \
+@@ -710,7 +710,7 @@
+ distclean-compile:
+ -rm -f *.tab.c
+
+-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dummy.Plo@am__quote@
++@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/karbon_factory_init.Plo@am__quote@
+ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/karbon_drag.Plo@am__quote@
+ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/karbon_factory.Plo@am__quote@
+ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/karbon_grid_data.Plo@am__quote@
+@@ -1021,9 +1021,6 @@
+ uninstall-recursive
+
+
+-dummy.cpp:
+- echo > dummy.cpp
+-
+ messages: rc.cpp
+ $(EXTRACTRC) data/*.rc >> rc.cpp
+ $(XGETTEXT) rc.cpp *.cpp *.cc */*.cc tools/*.h plugins/*/*.cc -o $(podir)/karbon.pot
+@@ -1049,10 +1046,10 @@
+ echo 'extern "C" int kdemain(int argc, char* argv[]);' > karbon.la.cc; \
+ echo 'int main(int argc, char* argv[]) { return kdemain(argc,argv); }' >> karbon.la.cc
+
+-karbon_dummy.cc:
+- echo '#include <kdemacros.h>' > karbon_dummy.cc; \
+- echo 'extern "C" int kdemain(int argc, char* argv[]);' >> karbon_dummy.cc; \
+- echo 'extern "C" KDE_EXPORT int kdeinitmain(int argc, char* argv[]) { return kdemain(argc,argv); }' >> karbon_dummy.cc
++karbon_karbon_factory_init.cc:
++ echo '#include <kdemacros.h>' > karbon_karbon_factory_init.cc; \
++ echo 'extern "C" int kdemain(int argc, char* argv[]);' >> karbon_karbon_factory_init.cc; \
++ echo 'extern "C" KDE_EXPORT int kdeinitmain(int argc, char* argv[]) { return kdemain(argc,argv); }' >> karbon_karbon_factory_init.cc
+ karbon_LDFLAGS = $(KDE_RPATH) -no-undefined $(all_libraries)
+ karbon_LDADD = libkdeinit_karbon.la
+ karbon_DEPENDENCIES = libkdeinit_karbon.la
diff --git a/editors/calligra/files/patch-karbon_karbon_factory.cc b/editors/calligra/files/patch-karbon_karbon_factory.cc
new file mode 100644
index 000000000000..7e126d371dbd
--- /dev/null
+++ b/editors/calligra/files/patch-karbon_karbon_factory.cc
@@ -0,0 +1,14 @@
+--- karbon/karbon_factory.cc.orig Fri Nov 25 17:29:39 2005
++++ karbon/karbon_factory.cc Fri Nov 25 17:29:59 2005
+@@ -32,11 +32,7 @@
+
+ #include <kdebug.h>
+
+-
+ KarbonResourceServer* KarbonFactory::s_rserver = 0;
+-
+-
+-K_EXPORT_COMPONENT_FACTORY( libkarbonpart, KarbonFactory() )
+
+ KInstance* KarbonFactory::s_instance = 0L;
+ KAboutData* KarbonFactory::s_aboutData = 0L;
diff --git a/editors/koffice-kde3/Makefile b/editors/koffice-kde3/Makefile
index 684dac69a2b2..6ac7cfd32256 100644
--- a/editors/koffice-kde3/Makefile
+++ b/editors/koffice-kde3/Makefile
@@ -7,6 +7,7 @@
PORTNAME= koffice
PORTVERSION= 1.4.2
+PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= editors kde
MASTER_SITES= ${MASTER_SITE_KDE}
@@ -50,6 +51,9 @@ CONFIGURE_ARGS+=--with-pgsqlincdir=${LOCALBASE}/include \
EXTRA_PATCHES= ${PATCHDIR}/extrapatch-kexi-main-keximainwindowimpl.cpp
.endif
+post-patch:
+ ${CP} ${FILESDIR}/karbon_factory_init.cc ${WRKSRC}/karbon
+
post-configure:
.if ${OSVERSION} < 500035
${REINPLACE_CMD} -e 's|\(^CPPFLAGS =.*\)|\1 -I${LOCALBASE}/include/stlport|g' \
diff --git a/editors/koffice-kde3/files/karbon_factory_init.cc b/editors/koffice-kde3/files/karbon_factory_init.cc
new file mode 100644
index 000000000000..76315b5e3378
--- /dev/null
+++ b/editors/koffice-kde3/files/karbon_factory_init.cc
@@ -0,0 +1,23 @@
+/* This file is part of the KDE project
+ Copyright (C) 2005 The Karbon Developers
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Library General Public License for more details.
+
+ You should have received a copy of the GNU Library General Public License
+ along with this library; see the file COPYING.LIB. If not, write to
+ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301, USA.
+*/
+
+#include "karbon_factory.h"
+
+K_EXPORT_COMPONENT_FACTORY( libkarbonpart, KarbonFactory() )
+
diff --git a/editors/koffice-kde3/files/patch-karbon_Makefile.in b/editors/koffice-kde3/files/patch-karbon_Makefile.in
new file mode 100644
index 000000000000..329bef8ae6d0
--- /dev/null
+++ b/editors/koffice-kde3/files/patch-karbon_Makefile.in
@@ -0,0 +1,107 @@
+--- karbon/Makefile.in.orig Wed Oct 5 12:52:36 2005
++++ karbon/Makefile.in Fri Nov 25 18:12:28 2005
+@@ -369,7 +369,7 @@
+ libkarbonbase_la_LDFLAGS = $(KDE_RPATH) -version-info 2:0:0 -no-undefined $(KDE_NO_UNDEFINED)
+ libkarbonbase_la_LIBADD = $(LIB_KOFFICEUI)
+
+-libkarboncommon_la_LDFLAGS = $(KDE_RPATH) $(LIBFREETYPE_RPATH)
++libkarboncommon_la_LDFLAGS = $(KDE_RPATH) $(LIBFREETYPE_RPATH) -no-undefined
+ libkarboncommon_la_LIBADD = $(LIB_KOFFICECORE) $(LIB_KOFFICEUI) $(LIB_KOPAINTER) $(LIB_KOTEXT) \
+ dockers/libkarbondockers.la \
+ widgets/libkarbonwidgets.la \
+@@ -388,7 +388,7 @@
+ $(LIBFREETYPE_LIBS)
+
+
+-libkarbonpart_la_SOURCES = dummy.cpp
++libkarbonpart_la_SOURCES = karbon_factory_init.cc
+ libkarbonpart_la_LDFLAGS = $(KDE_PLUGIN) $(LIBFREETYPE_RPATH)
+ libkarbonpart_la_LIBADD = libkarboncommon.la
+ #>- libkarbonpart_la_METASOURCES = AUTO
+@@ -422,10 +422,10 @@
+ karbon_la_DEPENDENCIES = libkdeinit_karbon.la
+ #>- am_karbon_la_OBJECTS = main.lo
+ #>+ 1
+-am_karbon_la_OBJECTS = karbon_dummy.lo
++am_karbon_la_OBJECTS = karbon_karbon_factory_init.lo
+ #>- karbon_la_OBJECTS = $(am_karbon_la_OBJECTS)
+ #>+ 1
+-karbon_la_OBJECTS = karbon_dummy.lo
++karbon_la_OBJECTS = karbon_karbon_factory_init.lo
+ libkarbonbase_la_DEPENDENCIES =
+ am_libkarbonbase_la_OBJECTS = karbon_view_base.lo karbon_part_base.lo
+ #>- libkarbonbase_la_OBJECTS = $(am_libkarbonbase_la_OBJECTS)
+@@ -455,10 +455,10 @@
+ @KDE_USE_FINAL_FALSE@libkarboncommon_la_OBJECTS = $(libkarboncommon_la_nofinal_OBJECTS)
+ @KDE_USE_FINAL_TRUE@libkarboncommon_la_OBJECTS = $(libkarboncommon_la_final_OBJECTS)
+ libkarbonpart_la_DEPENDENCIES = libkarboncommon.la
+-am_libkarbonpart_la_OBJECTS = dummy.lo
++am_libkarbonpart_la_OBJECTS = karbon_factory_init.lo
+ #>- libkarbonpart_la_OBJECTS = $(am_libkarbonpart_la_OBJECTS)
+ #>+ 1
+-libkarbonpart_la_OBJECTS = dummy.lo
++libkarbonpart_la_OBJECTS = karbon_factory_init.lo
+ bin_PROGRAMS =
+ #>- PROGRAMS = $(bin_PROGRAMS)
+ #>+ 2
+@@ -473,7 +473,7 @@
+ LIBS = @LIBS@
+ depcomp = $(SHELL) $(top_srcdir)/admin/depcomp
+ am__depfiles_maybe = depfiles
+-#>- @AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/dummy.Plo \
++#>- @AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/karbon_factory_init.Plo \
+ #>- @AMDEP_TRUE@ ./$(DEPDIR)/karbon_drag.Plo \
+ #>- @AMDEP_TRUE@ ./$(DEPDIR)/karbon_factory.Plo \
+ #>- @AMDEP_TRUE@ ./$(DEPDIR)/karbon_grid_data.Plo \
+@@ -486,7 +486,7 @@
+ #>- @AMDEP_TRUE@ ./$(DEPDIR)/karbon_view_iface.Plo \
+ #>- @AMDEP_TRUE@ ./$(DEPDIR)/main.Plo
+ #>+ 24
+-@AMDEP_TRUE@@KDE_USE_FINAL_TRUE@DEP_FILES = $(DEPDIR)/karbon.la.Po $(DEPDIR)/karbon_dummy.Plo $(DEPDIR)/karbon_part_iface_skel.P $(DEPDIR)/karbon_view_iface_skel.P $(DEPDIR)/libkarbonbase_la.all_cc.P $(DEPDIR)/libkarboncommon_la.all_cc.P $(DEPDIR)/libkarboncommon_la.all_cpp.P ./$(DEPDIR)/dummy.Plo \
++@AMDEP_TRUE@@KDE_USE_FINAL_TRUE@DEP_FILES = $(DEPDIR)/karbon.la.Po $(DEPDIR)/karbon_karbon_factory_init.Plo $(DEPDIR)/karbon_part_iface_skel.P $(DEPDIR)/karbon_view_iface_skel.P $(DEPDIR)/libkarbonbase_la.all_cc.P $(DEPDIR)/libkarboncommon_la.all_cc.P $(DEPDIR)/libkarboncommon_la.all_cpp.P ./$(DEPDIR)/karbon_factory_init.Plo \
+ @AMDEP_TRUE@@KDE_USE_FINAL_TRUE@ @AMDEP_TRUE@ ./$(DEPDIR)/karbon_drag.Plo \
+ @AMDEP_TRUE@@KDE_USE_FINAL_TRUE@ @AMDEP_TRUE@ ./$(DEPDIR)/karbon_factory.Plo \
+ @AMDEP_TRUE@@KDE_USE_FINAL_TRUE@ @AMDEP_TRUE@ ./$(DEPDIR)/karbon_grid_data.Plo \
+@@ -498,7 +498,7 @@
+ @AMDEP_TRUE@@KDE_USE_FINAL_TRUE@ @AMDEP_TRUE@ ./$(DEPDIR)/karbon_view_base.Plo \
+ @AMDEP_TRUE@@KDE_USE_FINAL_TRUE@ @AMDEP_TRUE@ ./$(DEPDIR)/karbon_view_iface.Plo \
+ @AMDEP_TRUE@@KDE_USE_FINAL_TRUE@ @AMDEP_TRUE@ ./$(DEPDIR)/main.Plo
+-@AMDEP_TRUE@@KDE_USE_FINAL_FALSE@DEP_FILES = $(DEPDIR)/karbon.la.Po $(DEPDIR)/karbon_dummy.Plo $(DEPDIR)/karbon_part_iface_skel.P $(DEPDIR)/karbon_view_iface_skel.P ./$(DEPDIR)/dummy.Plo \
++@AMDEP_TRUE@@KDE_USE_FINAL_FALSE@DEP_FILES = $(DEPDIR)/karbon.la.Po $(DEPDIR)/karbon_karbon_factory_init.Plo $(DEPDIR)/karbon_part_iface_skel.P $(DEPDIR)/karbon_view_iface_skel.P ./$(DEPDIR)/karbon_factory_init.Plo \
+ @AMDEP_TRUE@@KDE_USE_FINAL_FALSE@ @AMDEP_TRUE@ ./$(DEPDIR)/karbon_drag.Plo \
+ @AMDEP_TRUE@@KDE_USE_FINAL_FALSE@ @AMDEP_TRUE@ ./$(DEPDIR)/karbon_factory.Plo \
+ @AMDEP_TRUE@@KDE_USE_FINAL_FALSE@ @AMDEP_TRUE@ ./$(DEPDIR)/karbon_grid_data.Plo \
+@@ -710,7 +710,7 @@
+ distclean-compile:
+ -rm -f *.tab.c
+
+-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dummy.Plo@am__quote@
++@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/karbon_factory_init.Plo@am__quote@
+ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/karbon_drag.Plo@am__quote@
+ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/karbon_factory.Plo@am__quote@
+ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/karbon_grid_data.Plo@am__quote@
+@@ -1021,9 +1021,6 @@
+ uninstall-recursive
+
+
+-dummy.cpp:
+- echo > dummy.cpp
+-
+ messages: rc.cpp
+ $(EXTRACTRC) data/*.rc >> rc.cpp
+ $(XGETTEXT) rc.cpp *.cpp *.cc */*.cc tools/*.h plugins/*/*.cc -o $(podir)/karbon.pot
+@@ -1049,10 +1046,10 @@
+ echo 'extern "C" int kdemain(int argc, char* argv[]);' > karbon.la.cc; \
+ echo 'int main(int argc, char* argv[]) { return kdemain(argc,argv); }' >> karbon.la.cc
+
+-karbon_dummy.cc:
+- echo '#include <kdemacros.h>' > karbon_dummy.cc; \
+- echo 'extern "C" int kdemain(int argc, char* argv[]);' >> karbon_dummy.cc; \
+- echo 'extern "C" KDE_EXPORT int kdeinitmain(int argc, char* argv[]) { return kdemain(argc,argv); }' >> karbon_dummy.cc
++karbon_karbon_factory_init.cc:
++ echo '#include <kdemacros.h>' > karbon_karbon_factory_init.cc; \
++ echo 'extern "C" int kdemain(int argc, char* argv[]);' >> karbon_karbon_factory_init.cc; \
++ echo 'extern "C" KDE_EXPORT int kdeinitmain(int argc, char* argv[]) { return kdemain(argc,argv); }' >> karbon_karbon_factory_init.cc
+ karbon_LDFLAGS = $(KDE_RPATH) -no-undefined $(all_libraries)
+ karbon_LDADD = libkdeinit_karbon.la
+ karbon_DEPENDENCIES = libkdeinit_karbon.la
diff --git a/editors/koffice-kde3/files/patch-karbon_karbon_factory.cc b/editors/koffice-kde3/files/patch-karbon_karbon_factory.cc
new file mode 100644
index 000000000000..7e126d371dbd
--- /dev/null
+++ b/editors/koffice-kde3/files/patch-karbon_karbon_factory.cc
@@ -0,0 +1,14 @@
+--- karbon/karbon_factory.cc.orig Fri Nov 25 17:29:39 2005
++++ karbon/karbon_factory.cc Fri Nov 25 17:29:59 2005
+@@ -32,11 +32,7 @@
+
+ #include <kdebug.h>
+
+-
+ KarbonResourceServer* KarbonFactory::s_rserver = 0;
+-
+-
+-K_EXPORT_COMPONENT_FACTORY( libkarbonpart, KarbonFactory() )
+
+ KInstance* KarbonFactory::s_instance = 0L;
+ KAboutData* KarbonFactory::s_aboutData = 0L;
diff --git a/editors/koffice-kde4/Makefile b/editors/koffice-kde4/Makefile
index 684dac69a2b2..6ac7cfd32256 100644
--- a/editors/koffice-kde4/Makefile
+++ b/editors/koffice-kde4/Makefile
@@ -7,6 +7,7 @@
PORTNAME= koffice
PORTVERSION= 1.4.2
+PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= editors kde
MASTER_SITES= ${MASTER_SITE_KDE}
@@ -50,6 +51,9 @@ CONFIGURE_ARGS+=--with-pgsqlincdir=${LOCALBASE}/include \
EXTRA_PATCHES= ${PATCHDIR}/extrapatch-kexi-main-keximainwindowimpl.cpp
.endif
+post-patch:
+ ${CP} ${FILESDIR}/karbon_factory_init.cc ${WRKSRC}/karbon
+
post-configure:
.if ${OSVERSION} < 500035
${REINPLACE_CMD} -e 's|\(^CPPFLAGS =.*\)|\1 -I${LOCALBASE}/include/stlport|g' \
diff --git a/editors/koffice-kde4/files/karbon_factory_init.cc b/editors/koffice-kde4/files/karbon_factory_init.cc
new file mode 100644
index 000000000000..76315b5e3378
--- /dev/null
+++ b/editors/koffice-kde4/files/karbon_factory_init.cc
@@ -0,0 +1,23 @@
+/* This file is part of the KDE project
+ Copyright (C) 2005 The Karbon Developers
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Library General Public License for more details.
+
+ You should have received a copy of the GNU Library General Public License
+ along with this library; see the file COPYING.LIB. If not, write to
+ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301, USA.
+*/
+
+#include "karbon_factory.h"
+
+K_EXPORT_COMPONENT_FACTORY( libkarbonpart, KarbonFactory() )
+
diff --git a/editors/koffice-kde4/files/patch-karbon_Makefile.in b/editors/koffice-kde4/files/patch-karbon_Makefile.in
new file mode 100644
index 000000000000..329bef8ae6d0
--- /dev/null
+++ b/editors/koffice-kde4/files/patch-karbon_Makefile.in
@@ -0,0 +1,107 @@
+--- karbon/Makefile.in.orig Wed Oct 5 12:52:36 2005
++++ karbon/Makefile.in Fri Nov 25 18:12:28 2005
+@@ -369,7 +369,7 @@
+ libkarbonbase_la_LDFLAGS = $(KDE_RPATH) -version-info 2:0:0 -no-undefined $(KDE_NO_UNDEFINED)
+ libkarbonbase_la_LIBADD = $(LIB_KOFFICEUI)
+
+-libkarboncommon_la_LDFLAGS = $(KDE_RPATH) $(LIBFREETYPE_RPATH)
++libkarboncommon_la_LDFLAGS = $(KDE_RPATH) $(LIBFREETYPE_RPATH) -no-undefined
+ libkarboncommon_la_LIBADD = $(LIB_KOFFICECORE) $(LIB_KOFFICEUI) $(LIB_KOPAINTER) $(LIB_KOTEXT) \
+ dockers/libkarbondockers.la \
+ widgets/libkarbonwidgets.la \
+@@ -388,7 +388,7 @@
+ $(LIBFREETYPE_LIBS)
+
+
+-libkarbonpart_la_SOURCES = dummy.cpp
++libkarbonpart_la_SOURCES = karbon_factory_init.cc
+ libkarbonpart_la_LDFLAGS = $(KDE_PLUGIN) $(LIBFREETYPE_RPATH)
+ libkarbonpart_la_LIBADD = libkarboncommon.la
+ #>- libkarbonpart_la_METASOURCES = AUTO
+@@ -422,10 +422,10 @@
+ karbon_la_DEPENDENCIES = libkdeinit_karbon.la
+ #>- am_karbon_la_OBJECTS = main.lo
+ #>+ 1
+-am_karbon_la_OBJECTS = karbon_dummy.lo
++am_karbon_la_OBJECTS = karbon_karbon_factory_init.lo
+ #>- karbon_la_OBJECTS = $(am_karbon_la_OBJECTS)
+ #>+ 1
+-karbon_la_OBJECTS = karbon_dummy.lo
++karbon_la_OBJECTS = karbon_karbon_factory_init.lo
+ libkarbonbase_la_DEPENDENCIES =
+ am_libkarbonbase_la_OBJECTS = karbon_view_base.lo karbon_part_base.lo
+ #>- libkarbonbase_la_OBJECTS = $(am_libkarbonbase_la_OBJECTS)
+@@ -455,10 +455,10 @@
+ @KDE_USE_FINAL_FALSE@libkarboncommon_la_OBJECTS = $(libkarboncommon_la_nofinal_OBJECTS)
+ @KDE_USE_FINAL_TRUE@libkarboncommon_la_OBJECTS = $(libkarboncommon_la_final_OBJECTS)
+ libkarbonpart_la_DEPENDENCIES = libkarboncommon.la
+-am_libkarbonpart_la_OBJECTS = dummy.lo
++am_libkarbonpart_la_OBJECTS = karbon_factory_init.lo
+ #>- libkarbonpart_la_OBJECTS = $(am_libkarbonpart_la_OBJECTS)
+ #>+ 1
+-libkarbonpart_la_OBJECTS = dummy.lo
++libkarbonpart_la_OBJECTS = karbon_factory_init.lo
+ bin_PROGRAMS =
+ #>- PROGRAMS = $(bin_PROGRAMS)
+ #>+ 2
+@@ -473,7 +473,7 @@
+ LIBS = @LIBS@
+ depcomp = $(SHELL) $(top_srcdir)/admin/depcomp
+ am__depfiles_maybe = depfiles
+-#>- @AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/dummy.Plo \
++#>- @AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/karbon_factory_init.Plo \
+ #>- @AMDEP_TRUE@ ./$(DEPDIR)/karbon_drag.Plo \
+ #>- @AMDEP_TRUE@ ./$(DEPDIR)/karbon_factory.Plo \
+ #>- @AMDEP_TRUE@ ./$(DEPDIR)/karbon_grid_data.Plo \
+@@ -486,7 +486,7 @@
+ #>- @AMDEP_TRUE@ ./$(DEPDIR)/karbon_view_iface.Plo \
+ #>- @AMDEP_TRUE@ ./$(DEPDIR)/main.Plo
+ #>+ 24
+-@AMDEP_TRUE@@KDE_USE_FINAL_TRUE@DEP_FILES = $(DEPDIR)/karbon.la.Po $(DEPDIR)/karbon_dummy.Plo $(DEPDIR)/karbon_part_iface_skel.P $(DEPDIR)/karbon_view_iface_skel.P $(DEPDIR)/libkarbonbase_la.all_cc.P $(DEPDIR)/libkarboncommon_la.all_cc.P $(DEPDIR)/libkarboncommon_la.all_cpp.P ./$(DEPDIR)/dummy.Plo \
++@AMDEP_TRUE@@KDE_USE_FINAL_TRUE@DEP_FILES = $(DEPDIR)/karbon.la.Po $(DEPDIR)/karbon_karbon_factory_init.Plo $(DEPDIR)/karbon_part_iface_skel.P $(DEPDIR)/karbon_view_iface_skel.P $(DEPDIR)/libkarbonbase_la.all_cc.P $(DEPDIR)/libkarboncommon_la.all_cc.P $(DEPDIR)/libkarboncommon_la.all_cpp.P ./$(DEPDIR)/karbon_factory_init.Plo \
+ @AMDEP_TRUE@@KDE_USE_FINAL_TRUE@ @AMDEP_TRUE@ ./$(DEPDIR)/karbon_drag.Plo \
+ @AMDEP_TRUE@@KDE_USE_FINAL_TRUE@ @AMDEP_TRUE@ ./$(DEPDIR)/karbon_factory.Plo \
+ @AMDEP_TRUE@@KDE_USE_FINAL_TRUE@ @AMDEP_TRUE@ ./$(DEPDIR)/karbon_grid_data.Plo \
+@@ -498,7 +498,7 @@
+ @AMDEP_TRUE@@KDE_USE_FINAL_TRUE@ @AMDEP_TRUE@ ./$(DEPDIR)/karbon_view_base.Plo \
+ @AMDEP_TRUE@@KDE_USE_FINAL_TRUE@ @AMDEP_TRUE@ ./$(DEPDIR)/karbon_view_iface.Plo \
+ @AMDEP_TRUE@@KDE_USE_FINAL_TRUE@ @AMDEP_TRUE@ ./$(DEPDIR)/main.Plo
+-@AMDEP_TRUE@@KDE_USE_FINAL_FALSE@DEP_FILES = $(DEPDIR)/karbon.la.Po $(DEPDIR)/karbon_dummy.Plo $(DEPDIR)/karbon_part_iface_skel.P $(DEPDIR)/karbon_view_iface_skel.P ./$(DEPDIR)/dummy.Plo \
++@AMDEP_TRUE@@KDE_USE_FINAL_FALSE@DEP_FILES = $(DEPDIR)/karbon.la.Po $(DEPDIR)/karbon_karbon_factory_init.Plo $(DEPDIR)/karbon_part_iface_skel.P $(DEPDIR)/karbon_view_iface_skel.P ./$(DEPDIR)/karbon_factory_init.Plo \
+ @AMDEP_TRUE@@KDE_USE_FINAL_FALSE@ @AMDEP_TRUE@ ./$(DEPDIR)/karbon_drag.Plo \
+ @AMDEP_TRUE@@KDE_USE_FINAL_FALSE@ @AMDEP_TRUE@ ./$(DEPDIR)/karbon_factory.Plo \
+ @AMDEP_TRUE@@KDE_USE_FINAL_FALSE@ @AMDEP_TRUE@ ./$(DEPDIR)/karbon_grid_data.Plo \
+@@ -710,7 +710,7 @@
+ distclean-compile:
+ -rm -f *.tab.c
+
+-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dummy.Plo@am__quote@
++@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/karbon_factory_init.Plo@am__quote@
+ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/karbon_drag.Plo@am__quote@
+ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/karbon_factory.Plo@am__quote@
+ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/karbon_grid_data.Plo@am__quote@
+@@ -1021,9 +1021,6 @@
+ uninstall-recursive
+
+
+-dummy.cpp:
+- echo > dummy.cpp
+-
+ messages: rc.cpp
+ $(EXTRACTRC) data/*.rc >> rc.cpp
+ $(XGETTEXT) rc.cpp *.cpp *.cc */*.cc tools/*.h plugins/*/*.cc -o $(podir)/karbon.pot
+@@ -1049,10 +1046,10 @@
+ echo 'extern "C" int kdemain(int argc, char* argv[]);' > karbon.la.cc; \
+ echo 'int main(int argc, char* argv[]) { return kdemain(argc,argv); }' >> karbon.la.cc
+
+-karbon_dummy.cc:
+- echo '#include <kdemacros.h>' > karbon_dummy.cc; \
+- echo 'extern "C" int kdemain(int argc, char* argv[]);' >> karbon_dummy.cc; \
+- echo 'extern "C" KDE_EXPORT int kdeinitmain(int argc, char* argv[]) { return kdemain(argc,argv); }' >> karbon_dummy.cc
++karbon_karbon_factory_init.cc:
++ echo '#include <kdemacros.h>' > karbon_karbon_factory_init.cc; \
++ echo 'extern "C" int kdemain(int argc, char* argv[]);' >> karbon_karbon_factory_init.cc; \
++ echo 'extern "C" KDE_EXPORT int kdeinitmain(int argc, char* argv[]) { return kdemain(argc,argv); }' >> karbon_karbon_factory_init.cc
+ karbon_LDFLAGS = $(KDE_RPATH) -no-undefined $(all_libraries)
+ karbon_LDADD = libkdeinit_karbon.la
+ karbon_DEPENDENCIES = libkdeinit_karbon.la
diff --git a/editors/koffice-kde4/files/patch-karbon_karbon_factory.cc b/editors/koffice-kde4/files/patch-karbon_karbon_factory.cc
new file mode 100644
index 000000000000..7e126d371dbd
--- /dev/null
+++ b/editors/koffice-kde4/files/patch-karbon_karbon_factory.cc
@@ -0,0 +1,14 @@
+--- karbon/karbon_factory.cc.orig Fri Nov 25 17:29:39 2005
++++ karbon/karbon_factory.cc Fri Nov 25 17:29:59 2005
+@@ -32,11 +32,7 @@
+
+ #include <kdebug.h>
+
+-
+ KarbonResourceServer* KarbonFactory::s_rserver = 0;
+-
+-
+-K_EXPORT_COMPONENT_FACTORY( libkarbonpart, KarbonFactory() )
+
+ KInstance* KarbonFactory::s_instance = 0L;
+ KAboutData* KarbonFactory::s_aboutData = 0L;