[rkward-cvs] SF.net SVN: rkward: [2029] branches/KDE4_port

tfry at users.sourceforge.net tfry at users.sourceforge.net
Mon Oct 8 09:39:24 UTC 2007


Revision: 2029
          http://rkward.svn.sourceforge.net/rkward/?rev=2029&view=rev
Author:   tfry
Date:     2007-10-08 02:39:24 -0700 (Mon, 08 Oct 2007)

Log Message:
-----------
Port to CMake first steps

Added Paths:
-----------
    branches/KDE4_port/CMakeLists.txt
    branches/KDE4_port/TODO_KDE4
    branches/KDE4_port/doc/CMakeLists.txt
    branches/KDE4_port/doc/en/CMakeLists.txt
    branches/KDE4_port/po/CMakeLists.txt
    branches/KDE4_port/rkward/CMakeLists.txt
    branches/KDE4_port/rkward/agents/CMakeLists.txt
    branches/KDE4_port/rkward/core/CMakeLists.txt
    branches/KDE4_port/rkward/dataeditor/CMakeLists.txt
    branches/KDE4_port/rkward/dialogs/CMakeLists.txt
    branches/KDE4_port/rkward/icons/CMakeLists.txt
    branches/KDE4_port/rkward/misc/CMakeLists.txt
    branches/KDE4_port/rkward/pages/CMakeLists.txt
    branches/KDE4_port/rkward/plugin/CMakeLists.txt
    branches/KDE4_port/rkward/plugins/CMakeLists.txt
    branches/KDE4_port/rkward/plugins/makecmakelists.php
    branches/KDE4_port/rkward/rbackend/CMakeLists.txt
    branches/KDE4_port/rkward/rbackend/DetectPthreads.cmake
    branches/KDE4_port/rkward/rbackend/FindR.cmake
    branches/KDE4_port/rkward/rbackend/rpackages/CMakeLists.txt
    branches/KDE4_port/rkward/scriptbackends/CMakeLists.txt
    branches/KDE4_port/rkward/settings/CMakeLists.txt
    branches/KDE4_port/rkward/syntax/CMakeLists.txt
    branches/KDE4_port/rkward/windows/CMakeLists.txt
    branches/KDE4_port/version.h

Removed Paths:
-------------
    branches/KDE4_port/rkward/plugins/makemakefileam.php

Added: branches/KDE4_port/CMakeLists.txt
===================================================================
--- branches/KDE4_port/CMakeLists.txt	                        (rev 0)
+++ branches/KDE4_port/CMakeLists.txt	2007-10-08 09:39:24 UTC (rev 2029)
@@ -0,0 +1,18 @@
+PROJECT(rkward)
+
+FIND_PACKAGE(KDE3 REQUIRED)
+INCLUDE(KDE3Macros)
+
+SET(CMAKE_VERBOSE_MAKEFILE ON)
+
+ADD_DEFINITIONS(${QT_DEFINITIONS} ${KDE3_DEFINITIONS})
+
+LINK_DIRECTORIES(${KDE3_LIB_DIR})
+
+ADD_SUBDIRECTORY( rkward ) 
+ADD_SUBDIRECTORY( po ) 
+ADD_SUBDIRECTORY( doc ) 
+
+INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${KDE3_INCLUDE_DIR} ${QT_INCLUDE_DIR}  )
+
+# TODO: figure out how to make source distributions (with REAMDE files, etc.)

Added: branches/KDE4_port/TODO_KDE4
===================================================================
--- branches/KDE4_port/TODO_KDE4	                        (rev 0)
+++ branches/KDE4_port/TODO_KDE4	2007-10-08 09:39:24 UTC (rev 2029)
@@ -0,0 +1,23 @@
+**CMake**
+- message extraction
+- po file handling
+- handbook installation
+- R package building
+- icons
+- rkward.desktop
+- syntax definitions
+- KDE3 -> KDE4
+- test
+	- configuration
+		- R
+		- pthreads
+	- installation
+- clean up
+- documentation
+	- NOTES
+	- INSTALL
+	- create a dummy ./configure
+	- wiki / web
+- adjust debian dir
+
+**Everything else**

Added: branches/KDE4_port/doc/CMakeLists.txt
===================================================================
--- branches/KDE4_port/doc/CMakeLists.txt	                        (rev 0)
+++ branches/KDE4_port/doc/CMakeLists.txt	2007-10-08 09:39:24 UTC (rev 2029)
@@ -0,0 +1,18 @@
+ADD_SUBDIRECTORY( en ) 
+
+INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${KDE3_INCLUDE_DIR} ${QT_INCLUDE_DIR}  )
+
+
+########### install files ###############
+
+
+
+
+#original Makefile.am contents follow:
+
+######## kdevelop will overwrite this part!!! (begin)##########
+#
+#SUBDIRS = en 
+#
+######## kdevelop will overwrite this part!!! (end)############
+#

Added: branches/KDE4_port/doc/en/CMakeLists.txt
===================================================================
--- branches/KDE4_port/doc/en/CMakeLists.txt	                        (rev 0)
+++ branches/KDE4_port/doc/en/CMakeLists.txt	2007-10-08 09:39:24 UTC (rev 2029)
@@ -0,0 +1,16 @@
+INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${KDE3_INCLUDE_DIR} ${QT_INCLUDE_DIR}  )
+
+
+########### install files ###############
+
+
+
+
+#original Makefile.am contents follow:
+
+#EXTRA_DIST = index.docbook writing_plugins_introduction.docbook menu_hierarchy_example.png \
+#	t_test_plugin_example.png
+#
+#KDE_LANG = en
+#KDE_DOCS = rkward
+#

Added: branches/KDE4_port/po/CMakeLists.txt
===================================================================
--- branches/KDE4_port/po/CMakeLists.txt	                        (rev 0)
+++ branches/KDE4_port/po/CMakeLists.txt	2007-10-08 09:39:24 UTC (rev 2029)
@@ -0,0 +1,16 @@
+INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${KDE3_INCLUDE_DIR} ${QT_INCLUDE_DIR}  )
+
+
+########### install files ###############
+
+
+
+
+#original Makefile.am contents follow:
+
+######## kdevelop will overwrite this part!!! (begin)##########
+#
+#
+######## kdevelop will overwrite this part!!! (end)############
+#POFILES = AUTO
+#

Added: branches/KDE4_port/rkward/CMakeLists.txt
===================================================================
--- branches/KDE4_port/rkward/CMakeLists.txt	                        (rev 0)
+++ branches/KDE4_port/rkward/CMakeLists.txt	2007-10-08 09:39:24 UTC (rev 2029)
@@ -0,0 +1,73 @@
+ADD_SUBDIRECTORY( plugins ) 
+ADD_SUBDIRECTORY( dataeditor ) 
+ADD_SUBDIRECTORY( settings ) 
+ADD_SUBDIRECTORY( plugin ) 
+ADD_SUBDIRECTORY( agents ) 
+ADD_SUBDIRECTORY( rbackend ) 
+ADD_SUBDIRECTORY( dialogs ) 
+ADD_SUBDIRECTORY( scriptbackends ) 
+ADD_SUBDIRECTORY( misc ) 
+ADD_SUBDIRECTORY( core ) 
+ADD_SUBDIRECTORY( icons ) 
+ADD_SUBDIRECTORY( windows ) 
+ADD_SUBDIRECTORY( syntax ) 
+ADD_SUBDIRECTORY( pages ) 
+
+INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${KDE3_INCLUDE_DIR} ${QT_INCLUDE_DIR}  )
+
+SET(RKWard_Sources
+  rkward.cpp
+  main.cpp
+  rkglobals.cpp
+  robjectbrowser.cpp
+  robjectviewer.cpp
+  rkconsole.cpp
+  rkwardapplication.cpp
+)
+  
+
+########### next target ###############
+
+
+KDE3_AUTOMOC(${RKWard_Sources})
+
+SET( RKWard_DCOP_SKEL_SRCS
+   rkward.h
+   )
+
+KDE3_ADD_DCOP_SKELS(RKWard_Sources ${RKWard_DCOP_SKEL_SRCS})
+
+KDE3_ADD_EXECUTABLE(rkward.bin ${RKWard_Sources})
+
+TARGET_LINK_LIBRARIES(rkward.bin ${QT_AND_KDECORE_LIBS} windows agents dialogs plugin settings dataeditor core rbackend scriptbackends misc khtml kmdi kdeui R katepartinterfaces )
+
+ADD_CUSTOM_COMMAND(
+   OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/rkward
+   COMMAND perl ./makerkwardscript.pl rkward.sh.template "$(R_HOMEDIR)" > rkward; ${CMAKE_CURRENT_BINARY_DIR}/rkward
+   DEPENDS makerkwardscript.pl rkward.sh.template
+ )
+
+########### install files ###############
+
+INSTALL(FILES   rkwardui.rc rkconsolepart.rc DESTINATION share/apps/rkward )
+INSTALL(TARGETS rkward.bin DESTINATION bin)
+INSTALL(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/rkward DESTINATION bin)
+
+# TODO:
+#INSTALL(FILES rkward.desktop DESTINATION ${XDG_APPS_DIR})
+# icons?!
+
+# TODO:
+#install-data-local:
+#	$(mkinstalldirs) $(kde_appsdir)/Applications/
+#	$(INSTALL_DATA) $(srcdir)/rkward.desktop $(kde_appsdir)/Applications/rkward.desktop
+#	$(mkinstalldirs) $(kde_icondir)/locolor/32x32/apps/
+#	$(INSTALL_DATA) $(srcdir)/lo32-app-rkward.png $(kde_icondir)/locolor/32x32/apps/rkward.png
+#	$(mkinstalldirs) $(kde_icondir)/locolor/16x16/apps/
+#	$(INSTALL_DATA) $(srcdir)/lo16-app-rkward.png $(kde_icondir)/locolor/16x16/apps/rkward.png
+#
+#uninstall-local:
+#	-rm -f $(kde_appsdir)/Applications/rkward.desktop
+#	-rm -f $(kde_icondir)/locolor/32x32/apps/rkward.png
+#	-rm -f $(kde_icondir)/locolor/16x16/apps/rkward.png
+#

Added: branches/KDE4_port/rkward/agents/CMakeLists.txt
===================================================================
--- branches/KDE4_port/rkward/agents/CMakeLists.txt	                        (rev 0)
+++ branches/KDE4_port/rkward/agents/CMakeLists.txt	2007-10-08 09:39:24 UTC (rev 2029)
@@ -0,0 +1,30 @@
+INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${KDE3_INCLUDE_DIR} ${QT_INCLUDE_DIR}  )
+
+
+########### next target ###############
+
+SET(agents_STAT_SRCS
+   rksaveagent.cpp
+   rkloadagent.cpp
+   showedittextfileagent.cpp
+   rkquitagent.cpp
+   rkeditobjectagent.cpp
+   )
+
+KDE3_AUTOMOC(${agents_STAT_SRCS})
+
+ADD_LIBRARY(agents STATIC ${agents_STAT_SRCS})
+
+
+########### install files ###############
+
+
+
+
+#original Makefile.am contents follow:
+
+#INCLUDES = $(all_includes)
+#METASOURCES = AUTO
+#noinst_LIBRARIES =  libagents.a
+#noinst_HEADERS = rksaveagent.h rkloadagent.h showedittextfileagent.h rkquitagent.h rkeditobjectagent.h
+#libagents_a_SOURCES = rksaveagent.cpp rkloadagent.cpp showedittextfileagent.cpp rkquitagent.cpp  rkeditobjectagent.cpp

Added: branches/KDE4_port/rkward/core/CMakeLists.txt
===================================================================
--- branches/KDE4_port/rkward/core/CMakeLists.txt	                        (rev 0)
+++ branches/KDE4_port/rkward/core/CMakeLists.txt	2007-10-08 09:39:24 UTC (rev 2029)
@@ -0,0 +1,34 @@
+INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${KDE3_INCLUDE_DIR} ${QT_INCLUDE_DIR}  )
+
+
+########### next target ###############
+
+SET(core_STAT_SRCS
+   rkvariable.cpp
+   robjectlist.cpp
+   robject.cpp
+   rcontainerobject.cpp
+   rkmodificationtracker.cpp
+   rfunctionobject.cpp
+   renvironmentobject.cpp
+   )
+
+KDE3_AUTOMOC(${core_STAT_SRCS})
+
+ADD_LIBRARY(core STATIC ${core_STAT_SRCS})
+
+
+########### install files ###############
+
+
+
+
+#original Makefile.am contents follow:
+
+#INCLUDES = $(all_includes)
+#METASOURCES = AUTO
+#noinst_LIBRARIES =  libcore.a
+#libcore_a_SOURCES = rkvariable.cpp robjectlist.cpp robject.cpp rcontainerobject.cpp rkmodificationtracker.cpp \
+#	rfunctionobject.cpp renvironmentobject.cpp
+#noinst_HEADERS = rkvariable.h robjectlist.h robject.h rcontainerobject.h rkmodificationtracker.h \
+#	rfunctionobject.h renvironmentobject.h

Added: branches/KDE4_port/rkward/dataeditor/CMakeLists.txt
===================================================================
--- branches/KDE4_port/rkward/dataeditor/CMakeLists.txt	                        (rev 0)
+++ branches/KDE4_port/rkward/dataeditor/CMakeLists.txt	2007-10-08 09:39:24 UTC (rev 2029)
@@ -0,0 +1,44 @@
+INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${KDE3_INCLUDE_DIR} ${QT_INCLUDE_DIR}  )
+
+
+########### next target ###############
+
+SET(dataeditor_STAT_SRCS
+   twintable.cpp
+   twintablemember.cpp
+   rkdrag.cpp
+   rkeditor.cpp
+   rkeditordataframe.cpp
+   twintabledatamember.cpp
+   twintablemetamember.cpp
+   celleditor.cpp
+   editlabelsdialog.cpp
+   editformatdialog.cpp
+   rkeditordataframepart.cpp
+   )
+
+KDE3_AUTOMOC(${dataeditor_STAT_SRCS})
+
+ADD_LIBRARY(dataeditor STATIC ${dataeditor_STAT_SRCS})
+
+
+########### install files ###############
+
+INSTALL(FILES   rkeditordataframepart.rc DESTINATION /share/apps/rkward )
+
+
+
+#original Makefile.am contents follow:
+
+#INCLUDES = $(all_includes)
+#METASOURCES = AUTO
+#noinst_LIBRARIES =  libdataeditor.a
+#libdataeditor_a_SOURCES = twintable.cpp twintablemember.cpp rkdrag.cpp \
+#	rkeditor.cpp rkeditordataframe.cpp twintabledatamember.cpp twintablemetamember.cpp \
+#	celleditor.cpp editlabelsdialog.cpp editformatdialog.cpp rkeditordataframepart.cpp
+#noinst_HEADERS = rkdrag.h twintable.h twintablemember.h rkeditor.h \
+#		rkeditordataframe.h twintabledatamember.h twintablemetamember.h celleditor.h \
+#		editlabelsdialog.h editformatdialog.h rkeditordataframepart.h
+#
+#rcdir = $(kde_datadir)/rkward
+#rc_DATA = rkeditordataframepart.rc

Added: branches/KDE4_port/rkward/dialogs/CMakeLists.txt
===================================================================
--- branches/KDE4_port/rkward/dialogs/CMakeLists.txt	                        (rev 0)
+++ branches/KDE4_port/rkward/dialogs/CMakeLists.txt	2007-10-08 09:39:24 UTC (rev 2029)
@@ -0,0 +1,29 @@
+INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${KDE3_INCLUDE_DIR} ${QT_INCLUDE_DIR}  )
+
+
+########### next target ###############
+
+SET(dialogs_STAT_SRCS
+   startupdialog.cpp
+   rkloadlibsdialog.cpp
+   rkreadlinedialog.cpp
+   rkimportdialog.cpp
+   )
+
+KDE3_AUTOMOC(${dialogs_STAT_SRCS})
+
+ADD_LIBRARY(dialogs STATIC ${dialogs_STAT_SRCS})
+
+
+########### install files ###############
+
+
+
+
+#original Makefile.am contents follow:
+
+#INCLUDES = $(all_includes)
+#METASOURCES = AUTO
+#noinst_LIBRARIES =  libdialogs.a
+#noinst_HEADERS = startupdialog.h rkloadlibsdialog.h rkreadlinedialog.h rkimportdialog.h
+#libdialogs_a_SOURCES = startupdialog.cpp rkloadlibsdialog.cpp rkreadlinedialog.cpp rkimportdialog.cpp

Added: branches/KDE4_port/rkward/icons/CMakeLists.txt
===================================================================
--- branches/KDE4_port/rkward/icons/CMakeLists.txt	                        (rev 0)
+++ branches/KDE4_port/rkward/icons/CMakeLists.txt	2007-10-08 09:39:24 UTC (rev 2029)
@@ -0,0 +1,20 @@
+INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${KDE3_INCLUDE_DIR} ${QT_INCLUDE_DIR}  )
+
+
+########### install files ###############
+
+INSTALL(FILES   rkward_logo.png function.png list.png window_back.png window_forward.png run_line.png run_selection.png run_all.png DESTINATION /share/apps/rkward/icons )
+
+KDE3_INSTALL_ICONS( hicolor )
+
+
+
+#original Makefile.am contents follow:
+
+#INCLUDES = $(all_includes)
+#METASOURCES = AUTO
+#KDE_ICON = rkward
+#iconsdir = $(kde_datadir)/rkward/icons
+#
+#icons_DATA = rkward_logo.png function.png list.png window_back.png window_forward.png run_line.png run_selection.png run_all.png
+#

Added: branches/KDE4_port/rkward/misc/CMakeLists.txt
===================================================================
--- branches/KDE4_port/rkward/misc/CMakeLists.txt	                        (rev 0)
+++ branches/KDE4_port/rkward/misc/CMakeLists.txt	2007-10-08 09:39:24 UTC (rev 2029)
@@ -0,0 +1,42 @@
+INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${KDE3_INCLUDE_DIR} ${QT_INCLUDE_DIR}  )
+
+
+########### next target ###############
+
+SET(misc_STAT_SRCS
+   rkspinbox.cpp
+   getfilenamewidget.cpp
+   rkobjectlistview.cpp
+   rkcanceldialog.cpp
+   xmlhelper.cpp
+   multistringselector.cpp
+   rkcommonfunctions.cpp
+   rkprogresscontrol.cpp
+   rksaveobjectchooser.cpp
+   rkdummypart.cpp
+   )
+
+KDE3_AUTOMOC(${misc_STAT_SRCS})
+
+ADD_LIBRARY(misc STATIC ${misc_STAT_SRCS})
+
+
+########### install files ###############
+
+
+
+
+#original Makefile.am contents follow:
+
+#INCLUDES = $(all_includes)
+#METASOURCES = AUTO
+#noinst_LIBRARIES =  libmisc.a
+#libmisc_a_SOURCES = rkspinbox.cpp \
+#	getfilenamewidget.cpp rkobjectlistview.cpp rkcanceldialog.cpp xmlhelper.cpp \
+#	multistringselector.cpp rkcommonfunctions.cpp rkprogresscontrol.cpp rksaveobjectchooser.cpp \
+#	rkdummypart.cpp
+#noinst_HEADERS = rkspinbox.h getfilenamewidget.h \
+#	rkobjectlistview.h rkcanceldialog.h xmlhelper.h multistringselector.h \
+#	rkcommonfunctions.h rkprogresscontrol.h rksaveobjectchooser.h \
+#	rkdummypart.h
+#

Added: branches/KDE4_port/rkward/pages/CMakeLists.txt
===================================================================
--- branches/KDE4_port/rkward/pages/CMakeLists.txt	                        (rev 0)
+++ branches/KDE4_port/rkward/pages/CMakeLists.txt	2007-10-08 09:39:24 UTC (rev 2029)
@@ -0,0 +1,12 @@
+INSTALL( FILES
+	rkward_trouble_shooting.rkh
+	rkward_output.rkh
+	rkward_help.css
+	rkward_welcome.rkh
+	rkward_for_new_users.rkh
+	rkward_workspace_browser.rkh
+	rkward_shortcuts.rkh
+	rkward_for_r_users.rkh
+	rkward_console.rkh
+	DESTINATION /share/apps/rkward/pages )
+

Added: branches/KDE4_port/rkward/plugin/CMakeLists.txt
===================================================================
--- branches/KDE4_port/rkward/plugin/CMakeLists.txt	                        (rev 0)
+++ branches/KDE4_port/rkward/plugin/CMakeLists.txt	2007-10-08 09:39:24 UTC (rev 2029)
@@ -0,0 +1,56 @@
+INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${KDE3_INCLUDE_DIR} ${QT_INCLUDE_DIR}  )
+
+
+########### next target ###############
+
+SET(plugin_STAT_SRCS
+   rkcomponentmap.cpp
+   rkcomponentproperties.cpp
+   rkcomponent.cpp
+   rkstandardcomponent.cpp
+   rkvarselector.cpp
+   rkvarslot.cpp
+   rkformula.cpp
+   rkradio.cpp
+   rkcheckbox.cpp
+   rkpluginspinbox.cpp
+   rkinput.cpp
+   rkpluginbrowser.cpp
+   rktext.cpp
+   rktabpage.cpp
+   rkstandardcomponentgui.cpp
+   rkdropdown.cpp
+   rkcomponentcontext.cpp
+   rkpreviewbox.cpp
+   rkpluginsaveobject.cpp
+   rkabstractoptionselector.cpp
+   )
+
+KDE3_AUTOMOC(${plugin_STAT_SRCS})
+
+ADD_LIBRARY(plugin STATIC ${plugin_STAT_SRCS})
+
+
+########### install files ###############
+
+
+
+
+#original Makefile.am contents follow:
+
+#INCLUDES = $(all_includes)
+#METASOURCES = AUTO
+#noinst_LIBRARIES =  libplugin.a
+#libplugin_a_SOURCES = rkcomponentmap.cpp rkcomponentproperties.cpp rkcomponent.cpp \
+#	rkstandardcomponent.cpp rkvarselector.cpp rkvarslot.cpp rkformula.cpp rkradio.cpp \
+#	rkcheckbox.cpp rkpluginspinbox.cpp rkinput.cpp rkpluginbrowser.cpp rktext.cpp \
+#	rktabpage.cpp rkstandardcomponentgui.cpp rkdropdown.cpp rkcomponentcontext.cpp \
+#	rkpreviewbox.cpp rkpluginsaveobject.cpp rkabstractoptionselector.cpp
+#
+#noinst_HEADERS = rkcomponentmap.h rkcomponentproperties.h rkcomponent.h \
+#	rkstandardcomponent.h rkvarselector.h rkvarslot.h rkformula.h rkradio.h \
+#	rkcheckbox.h rkpluginspinbox.h rkinput.h rkpluginbrowser.h rktext.h \
+#	rktabpage.h rkstandardcomponentgui.h rkdropdown.h rkcomponentcontext.h \
+#	rkpreviewbox.h rkpluginsaveobject.h rkabstractoptionselector.h
+#
+#

Added: branches/KDE4_port/rkward/plugins/CMakeLists.txt
===================================================================
--- branches/KDE4_port/rkward/plugins/CMakeLists.txt	                        (rev 0)
+++ branches/KDE4_port/rkward/plugins/CMakeLists.txt	2007-10-08 09:39:24 UTC (rev 2029)
@@ -0,0 +1,454 @@
+INSTALL( FILES
+	distributions.pluginmap
+	makemakefileam.php
+	embedded.pluginmap
+	import_export.pluginmap
+	x11device.pluginmap
+	all.pluginmap
+	under_development.pluginmap
+	analysis.pluginmap
+	plots.pluginmap
+	DESTINATION share/apps/rkward/ )
+
+INSTALL( FILES
+	distributions/binomial_tail_probabilities.php
+	distributions/negative_binomial_quantiles.xml
+	distributions/plot_hypergeometric_distribution.rkh
+	distributions/plot_beta_distribution.rkh
+	distributions/plot_dist_common.php
+	distributions/plot_weibull_distribution.php
+	distributions/cauchy_probabilities.xml
+	distributions/plot_lognormal_distribution.xml
+	distributions/tukey_probabilities.xml
+	distributions/poisson_quantiles.xml
+	distributions/plot_exponential_distribution.xml
+	distributions/log_normal_probabilities.xml
+	distributions/plot_logistic_distribution.xml
+	distributions/plot_chi_squared_distribution.php
+	distributions/plot_negbinomial_distribution.rkh
+	distributions/plot_t_distribution.xml
+	distributions/plot_logistic_distribution.php
+	distributions/chi_squared_probabilities.xml
+	distributions/beta_probabilities.xml
+	distributions/cauchy_quantiles.xml
+	distributions/plot_cauchy_distribution.xml
+	distributions/wilcoxon_probabilities.php
+	distributions/chi_squared_quantiles.xml
+	distributions/log_normal_quantiles.xml
+	distributions/plot_gamma_distribution.php
+	distributions/exponential_probabilities.xml
+	distributions/logistic_probabilities.php
+	distributions/normal_quantiles.xml
+	distributions/weibull_quantiles.xml
+	distributions/normal_probabilities.xml
+	distributions/plot_cauchy_distribution.php
+	distributions/gamma_quantiles.xml
+	distributions/weibull_probabilities.php
+	distributions/gamma_quantiles.php
+	distributions/plot_f_distribution.php
+	distributions/cauchy_probabilities.php
+	distributions/exponential_quantiles.php
+	distributions/t_quantiles.php
+	distributions/hypergeometric_quantiles.php
+	distributions/cauchy_quantiles.php
+	distributions/plot_normal_distribution.rkh
+	distributions/geom_probabilities.xml
+	distributions/geom_probabilities.php
+	distributions/plot_wilcoxon_distribution.rkh
+	distributions/negative_binomial_probabilities.php
+	distributions/wilcoxon_probabilities.xml
+	distributions/plot_binomial_distribution.rkh
+	distributions/plot_lognormal_distribution.php
+	distributions/gamma_probabilities.xml
+	distributions/plot_geometric_distribution.rkh
+	distributions/normal_probabilities.php
+	distributions/plot_poisson_distribution.rkh
+	distributions/hypergeometric_quantiles.xml
+	distributions/logistic_quantiles.php
+	distributions/plot_exponential_distribution.php
+	distributions/plot_normal_distribution.xml
+	distributions/plot_wilcoxon_distribution.php
+	distributions/exponential_probabilities.php
+	distributions/uniform_probabilities.php
+	distributions/uniform_quantiles.php
+	distributions/plot_t_distribution.rkh
+	distributions/binomial_quantiles.xml
+	distributions/plot_tukey_distribution.rkh
+	distributions/negative_binomial_probabilities.xml
+	distributions/t_probabilities.php
+	distributions/dist_snippets.xml
+	distributions/f_quantiles.xml
+	distributions/plot_f_distribution.xml
+	distributions/weibull_quantiles.php
+	distributions/plot_binomial_distribution.xml
+	distributions/f_probabilities.php
+	distributions/plot_hypergeometric_distribution.php
+	distributions/plot_lognormal_distribution.rkh
+	distributions/plot_poisson_distribution.php
+	distributions/geom_quantiles.xml
+	distributions/poisson_probabilities.xml
+	distributions/gumbel_probabilities.xml
+	distributions/plot_beta_distribution.php
+	distributions/chi_squared_quantiles.php
+	distributions/poisson_quantiles.php
+	distributions/f_probabilities.xml
+	distributions/logistic_probabilities.xml
+	distributions/plot_uniform_distribution.php
+	distributions/plot_weibull_distribution.rkh
+	distributions/log_normal_probabilities.php
+	distributions/gumbel_quantiles.php
+	distributions/tukey_probabilities.php
+	distributions/gamma_probabilities.php
+	distributions/plot_wilcoxon_distribution.xml
+	distributions/poisson_probabilities.php
+	distributions/f_quantiles.php
+	distributions/plot_tukey_distribution.xml
+	distributions/plot_gamma_distribution.xml
+	distributions/negative_binomial_quantiles.php
+	distributions/plot_exponential_distribution.rkh
+	distributions/t_quantiles.xml
+	distributions/gumbel_quantiles.xml
+	distributions/plot_poisson_distribution.xml
+	distributions/plot_f_distribution.rkh
+	distributions/binomial_tail_probabilities.xml
+	distributions/log_normal_quantiles.php
+	distributions/normal_quantiles.php
+	distributions/chi_squared_probabilities.php
+	distributions/plot_gamma_distribution.rkh
+	distributions/wilcoxon_quantiles.xml
+	distributions/plot_geometric_distribution.xml
+	distributions/plot_dist_common_snippets.xml
+	distributions/weibull_probabilities.xml
+	distributions/gumbel_probabilities.php
+	distributions/uniform_probabilities.xml
+	distributions/plot_binomial_distribution.php
+	distributions/plot_beta_distribution.xml
+	distributions/plot_weibull_distribution.xml
+	distributions/plot_tukey_distribution.php
+	distributions/plot_chi_squared_distribution.rkh
+	distributions/geom_quantiles.php
+	distributions/plot_cauchy_distribution.rkh
+	distributions/hypergeometric_probabilities.xml
+	distributions/hypergeometric_probabilities.php
+	distributions/plot_chi_squared_distribution.xml
+	distributions/plot_normal_distribution.php
+	distributions/t_probabilities.xml
+	distributions/logistic_quantiles.xml
+	distributions/plot_negbinomial_distribution.xml
+	distributions/beta_probabilities.php
+	distributions/exponential_quantiles.xml
+	distributions/binomial_quantiles.php
+	distributions/tukey_quantiles.xml
+	distributions/plot_t_distribution.php
+	distributions/beta_quantiles.xml
+	distributions/tukey_quantiles.php
+	distributions/plot_uniform_distribution.xml
+	distributions/wilcoxon_quantiles.php
+	distributions/plot_logistic_distribution.rkh
+	distributions/plot_uniform_distribution.rkh
+	distributions/plot_hypergeometric_distribution.xml
+	distributions/beta_quantiles.php
+	distributions/plot_negbinomial_distribution.php
+	distributions/uniform_quantiles.xml
+	distributions/plot_geometric_distribution.php
+	DESTINATION share/apps/rkward/distributions )
+
+INSTALL( FILES
+	distributions/clt/plot_hypergeometric_clt.php
+	distributions/clt/plot_normal_clt.php
+	distributions/clt/plot_negbinomial_clt.xml
+	distributions/clt/plot_logistic_clt.php
+	distributions/clt/plot_exponential_clt.rkh
+	distributions/clt/plot_binomial_clt.rkh
+	distributions/clt/plot_t_clt.php
+	distributions/clt/plot_wilcoxon_clt.xml
+	distributions/clt/plot_clt_snippets.xml
+	distributions/clt/plot_weibull_clt.xml
+	distributions/clt/plot_hypergeometric_clt.rkh
+	distributions/clt/plot_beta_clt.rkh
+	distributions/clt/plot_wilcoxon_clt.rkh
+	distributions/clt/plot_geometric_clt.php
+	distributions/clt/plot_normal_clt.rkh
+	distributions/clt/plot_binomial_clt.xml
+	distributions/clt/plot_binomial_clt.php
+	distributions/clt/plot_weibull_clt.php
+	distributions/clt/plot_logistic_clt.xml
+	distributions/clt/plot_poisson_clt.xml
+	distributions/clt/plot_chi_squared_clt.rkh
+	distributions/clt/plot_gamma_clt.rkh
+	distributions/clt/plot_lognormal_clt.xml
+	distributions/clt/plot_hypergeometric_clt.xml
+	distributions/clt/plot_uniform_clt.php
+	distributions/clt/plot_lognormal_clt.rkh
+	distributions/clt/plot_t_clt.xml
+	distributions/clt/plot_gamma_clt.xml
+	distributions/clt/plot_chi_squared_clt.xml
+	distributions/clt/plot_geometric_clt.rkh
+	distributions/clt/plot_wilcoxon_clt.php
+	distributions/clt/plot_normal_clt.xml
+	distributions/clt/plot_beta_clt.php
+	distributions/clt/plot_weibull_clt.rkh
+	distributions/clt/plot_t_clt.rkh
+	distributions/clt/plot_f_clt.rkh
+	distributions/clt/plot_f_clt.php
+	distributions/clt/plot_clt_common.php
+	distributions/clt/plot_logistic_clt.rkh
+	distributions/clt/plot_beta_clt.xml
+	distributions/clt/plot_gamma_clt.php
+	distributions/clt/plot_geometric_clt.xml
+	distributions/clt/plot_uniform_clt.rkh
+	distributions/clt/plot_exponential_clt.php
+	distributions/clt/plot_negbinomial_clt.rkh
+	distributions/clt/plot_clt_help_snippets.xml
+	distributions/clt/plot_chi_squared_clt.php
+	distributions/clt/plot_f_clt.xml
+	distributions/clt/plot_poisson_clt.rkh
+	distributions/clt/plot_uniform_clt.xml
+	distributions/clt/plot_exponential_clt.xml
+	distributions/clt/plot_lognormal_clt.php
+	distributions/clt/plot_negbinomial_clt.php
+	distributions/clt/plot_poisson_clt.php
+	DESTINATION share/apps/rkward/distributions/clt )
+
+INSTALL( FILES
+	distributions/tests/shapiro_test.xml
+	distributions/tests/lillie_test.xml
+	distributions/tests/sf_test.php
+	distributions/tests/jb_test.php
+	distributions/tests/jb_test.rkh
+	distributions/tests/sf_test.xml
+	distributions/tests/pearson_test.xml
+	distributions/tests/cvm_test.php
+	distributions/tests/jb_test.xml
+	distributions/tests/lillie_test.php
+	distributions/tests/ad_test.xml
+	distributions/tests/pearson_test.php
+	distributions/tests/ad_test.php
+	distributions/tests/cvm_test.xml
+	distributions/tests/shapiro_test.php
+	DESTINATION share/apps/rkward/distributions/tests )
+
+INSTALL( FILES
+	simple_anova/description.xml
+	simple_anova/code.php
+	DESTINATION share/apps/rkward/simple_anova )
+
+INSTALL( FILES
+	00saveload/setworkdir.php
+	00saveload/setworkdir.rkh
+	00saveload/setworkdir.xml
+	DESTINATION share/apps/rkward/00saveload )
+
+INSTALL( FILES
+	00saveload/import/source.php
+	00saveload/import/import_spss.rkh
+	00saveload/import/import_csv.xml
+	00saveload/import/source.rkh
+	00saveload/import/load_data.php
+	00saveload/import/import_csv.php
+	00saveload/import/import_spss.php
+	00saveload/import/source.xml
+	00saveload/import/import_spss.xml
+	00saveload/import/import_csv.rkh
+	00saveload/import/load_data.xml
+	00saveload/import/load_data.rkh
+	DESTINATION share/apps/rkward/00saveload/import )
+
+INSTALL( FILES
+	00saveload/save/write_table.php
+	00saveload/save/write_table.xml
+	DESTINATION share/apps/rkward/00saveload/save )
+
+INSTALL( FILES
+	00saveload/save/write/description.xml
+	00saveload/save/write/code.php
+	DESTINATION share/apps/rkward/00saveload/save/write )
+
+INSTALL( FILES
+	00saveload/save/skeleton/description.xml
+	00saveload/save/skeleton/code.php
+	DESTINATION share/apps/rkward/00saveload/save/skeleton )
+
+INSTALL( FILES
+	00saveload/save/save/description.xml
+	00saveload/save/save/code.php
+	DESTINATION share/apps/rkward/00saveload/save/save )
+
+INSTALL( FILES
+	plots/plot_options.php
+	plots/histogram.xml
+	plots/cor_graph.rkh
+	plots/scatterplot_matrix.rkh
+	plots/piechart.php
+	plots/plot_stepfun_options.xml
+	plots/dotchart.php
+	plots/plot.rkh
+	plots/box_plot.php
+	plots/histogram_options.rkh
+	plots/histogram_options.php
+	plots/barplot.rkh
+	plots/pareto.xml
+	plots/scatterplot.xml
+	plots/pareto.rkh
+	plots/scatterplot.php
+	plots/plot.xml
+	plots/plot.php
+	plots/stripchart_plot.xml
+	plots/color_chooser.rkh
+	plots/barplot.xml
+	plots/plot_options.rkh
+	plots/cor_graph.xml
+	plots/scatterplot_matrix.xml
+	plots/density_plot.php
+	plots/stripchart_plot.php
+	plots/density_plot.rkh
+	plots/histogram.php
+	plots/scatterplot_matrix.php
+	plots/dotchart.rkh
+	plots/barplot_embed.php
+	plots/density_plot.xml
+	plots/histogram.rkh
+	plots/barplot.php
+	plots/plot_stepfun_options.rkh
+	plots/plot_options.xml
+	plots/box_plot.xml
+	plots/color_chooser.php
+	plots/pareto.php
+	plots/barplot_embed.rkh
+	plots/ecdf_plot.xml
+	plots/stem.rkh
+	plots/stem.xml
+	plots/barplot_embed.xml
+	plots/stem.php
+	plots/plot_stepfun_options.php
+	plots/histogram_options.xml
+	plots/cor_graph.php
+	plots/piechart.xml
+	plots/dotchart.xml
+	plots/ecdf_plot.php
+	plots/ecdf_plot.rkh
+	plots/piechart.rkh
+	plots/color_chooser.xml
+	DESTINATION share/apps/rkward/plots )
+
+INSTALL( FILES
+	descriptive/descriptive_statistics.xml
+	descriptive/descriptive_statistics.rkh
+	descriptive/descriptive_statistics.php
+	DESTINATION share/apps/rkward/descriptive )
+
+INSTALL( FILES
+	x11device/grid.php
+	x11device/export.rkh
+	x11device/grid.rkh
+	x11device/export.xml
+	x11device/export.php
+	x11device/grid.xml
+	DESTINATION share/apps/rkward/x11device )
+
+INSTALL( FILES
+	analysis/crosstab_multi.xml
+	analysis/crosstab_multi.php
+	analysis/corr_matrix.xml
+	analysis/corr_matrix.rkh
+	analysis/crosstab.php
+	analysis/t_test_two_vars.rkh
+	analysis/crosstab_multi.rkh
+	analysis/t_test_two_vars.php
+	analysis/corr_matrix.php
+	analysis/crosstab.rkh
+	analysis/t_test_two_vars.xml
+	analysis/crosstab.xml
+	DESTINATION share/apps/rkward/analysis )
+
+INSTALL( FILES
+	analysis/outliers/chisq_out_test.xml
+	analysis/outliers/grubbs_test.php
+	analysis/outliers/grubbs_test.rkh
+	analysis/outliers/outlier.xml
+	analysis/outliers/chisq_out_test.rkh
+	analysis/outliers/dixon_test.xml
+	analysis/outliers/outlier.rkh
+	analysis/outliers/outlier.php
+	analysis/outliers/dixon_test.php
+	analysis/outliers/dixon_test.rkh
+	analysis/outliers/chisq_out_test.php
+	analysis/outliers/grubbs_test.xml
+	DESTINATION share/apps/rkward/analysis/outliers )
+
+INSTALL( FILES
+	analysis/regression/linear_regression.php
+	analysis/regression/linear_regression.xml
+	analysis/regression/linear_regression.rkh
+	DESTINATION share/apps/rkward/analysis/regression )
+
+INSTALL( FILES
+	analysis/TESTS/mood_test.php
+	analysis/TESTS/PP_test.xml
+	analysis/TESTS/mood_test.xml
+	analysis/TESTS/mood_test.rkh
+	analysis/TESTS/PP_test.php
+	analysis/TESTS/PP_test.rkh
+	DESTINATION share/apps/rkward/analysis/TESTS )
+
+INSTALL( FILES
+	analysis/moments/bonett_test.rkh
+	analysis/moments/moment.php
+	analysis/moments/skewness_kurtosis_test.php
+	analysis/moments/bonett_test.php
+	analysis/moments/agostino_test.php
+	analysis/moments/moment.rkh
+	analysis/moments/agostino_test.rkh
+	analysis/moments/agostino_test.xml
+	analysis/moments/anscombe_test.rkh
+	analysis/moments/moment.xml
+	analysis/moments/skewness_kurtosis_test.xml
+	analysis/moments/anscombe_test.php
+	analysis/moments/skewness_kurtosis_test.rkh
+	analysis/moments/anscombe_test.xml
+	analysis/moments/bonett_test.xml
+	DESTINATION share/apps/rkward/analysis/moments )
+
+INSTALL( FILES
+	analysis/time_series/Box_test.php
+	analysis/time_series/Box_test.rkh
+	analysis/time_series/Box_test.xml
+	analysis/time_series/kpss_test.rkh
+	analysis/time_series/kpss_test.php
+	analysis/time_series/kpss_test.xml
+	DESTINATION share/apps/rkward/analysis/time_series )
+
+INSTALL( FILES
+	analysis/ansari_bradley/ansari_bradley_test.php
+	analysis/ansari_bradley/ansari_bradley_test.rkh
+	analysis/ansari_bradley/ansari_bradley_exact_test.xml
+	analysis/ansari_bradley/ansari_bradley_exact_test.php
+	analysis/ansari_bradley/ansari_bradley_exact_test.rkh
+	analysis/ansari_bradley/ansari_bradley_test.xml
+	DESTINATION share/apps/rkward/analysis/ansari_bradley )
+
+INSTALL( FILES
+	analysis/variances/F_test.xml
+	analysis/variances/F_test.rkh
+	analysis/variances/bartlett_test.xml
+	analysis/variances/bartlett_test.php
+	analysis/variances/fligner_test.rkh
+	analysis/variances/fligner_test.xml
+	analysis/variances/F_test.php
+	analysis/variances/bartlett_test.rkh
+	analysis/variances/fligner_test.php
+	DESTINATION share/apps/rkward/analysis/variances )
+
+INSTALL( FILES
+	analysis/wilcoxon/wilcoxon_exact_test.php
+	analysis/wilcoxon/wilcoxon_exact_test.xml
+	analysis/wilcoxon/wilcoxon_test.php
+	analysis/wilcoxon/wilcoxon_test.xml
+	analysis/wilcoxon/wilcoxon_test.rkh
+	DESTINATION share/apps/rkward/analysis/wilcoxon )
+
+INSTALL( FILES
+	uni1.2/description.xml
+	uni1.2/code.php
+	DESTINATION share/apps/rkward/uni1.2 )
+

Copied: branches/KDE4_port/rkward/plugins/makecmakelists.php (from rev 2028, branches/KDE4_port/rkward/plugins/makemakefileam.php)
===================================================================
--- branches/KDE4_port/rkward/plugins/makecmakelists.php	                        (rev 0)
+++ branches/KDE4_port/rkward/plugins/makecmakelists.php	2007-10-08 09:39:24 UTC (rev 2029)
@@ -0,0 +1,62 @@
+#!/usr/bin/php
+<?
+
+# filthy script to generate a CMakeLists.txt for the plugins, and pages directories, installing all plugins and help pages as found.
+# usage: (in plugins dir)
+# ./makecmakelists.php > CMakeLists.txt
+# usage: (in pages dir)
+# ../plugins/makecmakelists.php pages > CMakeLists.txt
+
+if ($argc < 2) {
+	$base_dir = "";
+	readsubs ("");
+} else {
+	$base_dir = $argv[1];
+	readsubs ("");
+}
+
+function readsubs ($dir) {
+	global $base_dir;
+
+	if ($dir == "") {
+		$thisdir = opendir (".");
+		$ndir = "";
+	} else {
+		$thisdir = opendir ($dir);
+		$ndir = $dir . "/";
+	}
+	$subdirs = array ();
+	$files = array ();
+
+	$destination = "share/apps/rkward/" . $base_dir . $dir;
+	
+	while (false !== ($file = readdir($thisdir))) {
+		if (!is_dir ($ndir . $file)) {
+			if ((substr ($file, -4) == ".xml") || (substr ($file, -4) == ".php") || (substr ($file, -10) == ".pluginmap") || (substr ($file, -4) == ".rkh") || (substr ($file, -4) == ".png") || (substr ($file, -4) == ".css")) {
+				if ($file != "makecmakelists.php") {
+					array_push ($files, $file);
+				}
+			}
+		}  else {
+			if (($file != ".") && ($file != "..") && ($file != ".svn")) {
+				array_push ($subdirs, $file);
+			} 
+		}
+	}
+
+	if (count ($files)) {
+		echo ("INSTALL( FILES");
+		
+		foreach ($files as $item) {
+			echo("\n\t" . $ndir . $item);
+		}
+		echo ("\n\tDESTINATION " . $destination . " )\n\n");
+	}
+	
+	foreach ($subdirs as $sub) {
+		readsubs ($ndir . $sub);
+	}
+	
+	closedir ($thisdir);
+}
+?>
\ No newline at end of file

Deleted: branches/KDE4_port/rkward/plugins/makemakefileam.php
===================================================================
--- branches/KDE4_port/rkward/plugins/makemakefileam.php	2007-10-08 09:10:18 UTC (rev 2028)
+++ branches/KDE4_port/rkward/plugins/makemakefileam.php	2007-10-08 09:39:24 UTC (rev 2029)
@@ -1,62 +0,0 @@
-#!/usr/bin/php
-<?
-
-# filthy script to generate a Makefile.am for the plugins, and pages directories, installing all plugins and help pages as found.
-# usage: (in plugins dir)
-# ./makemakefileam.php > Makefile.am
-# usage: (in pages dir)
-# ../plugins/makemakefileam.php pages > Makefile.am
-
-if ($argc < 2) {
-	$base_dir = "";
-	readsubs ("", "plugins");
-} else {
-	$base_dir = $argv[1];
-	readsubs ("", $argv[1]);
-}
-
-function readsubs ($dir, $prefix) {
-	global $base_dir;
-
-	if ($dir == "") {
-		$thisdir = opendir (".");
-		$ndir = "";
-	} else {
-		$thisdir = opendir ($dir);
-		$ndir = $dir . "/";
-	}
-	$subdirs = array ();
-	$files = array ();
-	
-	echo (strtr ($prefix, "/", "X") . "dir = $(kde_datadir)/rkward/" . $base_dir . $dir . "\n");
-	
-	while (false !== ($file = readdir($thisdir))) {
-		if (!is_dir ($ndir . $file)) {
-			if ((substr ($file, -4) == ".xml") || (substr ($file, -4) == ".php") || (substr ($file, -10) == ".pluginmap") || (substr ($file, -4) == ".rkh") || (substr ($file, -4) == ".png") || (substr ($file, -4) == ".css")) {
-				if ($file != "makemakefileam.php") {
-					array_push ($files, $file);
-				}
-			}
-		}  else {
-			if (($file != ".") && ($file != "..") && ($file != ".svn")) {
-				array_push ($subdirs, $file);
-			} 
-		}
-	}
-
-	if (count ($files)) {
-		echo ("dist_" . strtr ($prefix, "/", "X") . "_DATA =");
-		
-		foreach ($files as $item) {
-			echo (" \\\n\t" . $ndir . $item);
-		}
-		echo ("\n\n");
-	}
-	
-	foreach ($subdirs as $sub) {
-		readsubs ($ndir . $sub, $prefix . "/" . strtr ($sub, "_.", "UD"));
-	}
-	
-	closedir ($thisdir);
-}
-?>
\ No newline at end of file

Added: branches/KDE4_port/rkward/rbackend/CMakeLists.txt
===================================================================
--- branches/KDE4_port/rkward/rbackend/CMakeLists.txt	                        (rev 0)
+++ branches/KDE4_port/rkward/rbackend/CMakeLists.txt	2007-10-08 09:39:24 UTC (rev 2029)
@@ -0,0 +1,46 @@
+ADD_SUBDIRECTORY( rpackages ) 
+
+INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${KDE3_INCLUDE_DIR} ${QT_INCLUDE_DIR}  )
+
+INCLUDE(FindR.cmake)
+INCLUDE(DetectPthreads.cmake)
+
+########### next target ###############
+
+SET(rbackend_STAT_SRCS
+   rembedinternal.cpp
+   rinterface.cpp
+   rthread.cpp
+   rcommand.cpp
+   rcommandreceiver.cpp
+   rcommandstack.cpp
+   rdata.cpp
+   rkpthreadsupport.cpp
+   rklocalesupport.cpp
+   )
+
+KDE3_AUTOMOC(${rbackend_STAT_SRCS})
+
+ADD_LIBRARY(rbackend STATIC ${rbackend_STAT_SRCS})
+
+
+########### install files ###############
+
+
+
+
+#original Makefile.am contents follow:
+
+#INCLUDES = $(all_includes)
+#METASOURCES = AUTO
+#
+#AM_CPPFLAGS = -I$(R_INCLUDEDIR)
+#
+#noinst_LIBRARIES =  librbackend.a
+#librbackend_a_SOURCES = rembedinternal.cpp rinterface.cpp rthread.cpp rcommand.cpp rcommandreceiver.cpp rcommandstack.cpp \
+#rdata.cpp rkpthreadsupport.cpp rklocalesupport.cpp
+#noinst_HEADERS = rembedinternal.h rinterface.h rthread.h rcommand.h rcommandreceiver.h rcommandstack.h \
+#rdata.h rkpthreadsupport.h rklocalesupport.h
+#SUBDIRS =  rpackages
+#
+#rembedinternal.o: rkstructuregetter.cpp
\ No newline at end of file

Added: branches/KDE4_port/rkward/rbackend/DetectPthreads.cmake
===================================================================
--- branches/KDE4_port/rkward/rbackend/DetectPthreads.cmake	                        (rev 0)
+++ branches/KDE4_port/rkward/rbackend/DetectPthreads.cmake	2007-10-08 09:39:24 UTC (rev 2029)
@@ -0,0 +1,13 @@
+# TODO!
+
+# dnl check for pthread stack limit getting functions
+# AC_DEFUN([CHECK_PTHREAD_FLAVOR],
+# [
+# ac_check_pthread_flavor_save_LIBS="$LIBS"
+# LIBS="$LIBS $LIBPTHREAD"
+# AC_CHECK_HEADERS([pthread_np.h])
+# AC_CHECK_FUNCS([pthread_getattr_np pthread_attr_get_np pthread_get_stacksize_np pthread_get_stackaddr_np])
+# LIBS="$ac_check_pthread_flavor_save_LIBS"])
+# ])
+# 
+# 

Added: branches/KDE4_port/rkward/rbackend/FindR.cmake
===================================================================
--- branches/KDE4_port/rkward/rbackend/FindR.cmake	                        (rev 0)
+++ branches/KDE4_port/rkward/rbackend/FindR.cmake	2007-10-08 09:39:24 UTC (rev 2029)
@@ -0,0 +1,136 @@
+# find the R binary
+
+MESSAGE(STATUS "Looking for R executable")
+IF(R_EXECUTABLE)
+	MESSAGE(STATUS "Specified by user")
+ENDIF(R_EXECUTABLE)
+FIND_PROGRAM(R_EXECUTABLE R)
+
+IF(R_EXECUTABLE-NOTFOUND)
+	MESSAGE(FATAL_ERROR "Could NOT find R (TODO: name option)")
+ELSE(R_EXECUTABLE-NOTFOUND)
+	MESSAGE(STATUS "Using R at ${R_EXECUTABLE}")
+ENDIF(R_EXECUTABLE-NOTFOUND)
+
+# find R_HOME
+
+MESSAGE(STATUS "Looking for R_HOME")
+IF(NOT R_HOME)
+	EXEC_PROGRAM(${R_EXECUTABLE}
+		ARGS CMD sh -c 'echo $R_HOME'
+		OUTPUT_VARIABLE R_HOME)
+ELSE(NOT R_HOME)
+	MESSAGE(STATUS "Specified by user")
+ENDIF(NOT R_HOME)
+IF(NOT R_HOME)
+	MESSAGE(FATAL_ERROR "Could NOT determine R_HOME (probably you misspecified the location of R)")
+ELSE(NOT R_HOME)
+	MESSAGE(STATUS "R_HOME is ${R_HOME}")
+ENDIF(NOT R_HOME)
+
+# find R include dir
+
+MESSAGE(STATUS "Looking for R include files")
+IF(NOT R_INCLUDEDIR)
+	EXEC_PROGRAM(${R_EXECUTABLE}
+		ARGS CMD sh -c 'echo $R_INCLUDE_DIR'
+		OUTPUT_VARIABLE R_INCLUDEDIR)
+ELSE(NOT R_INCLUDEDIR)
+	MESSAGE(STATUS "Location specified by user")
+ENDIF(NOT R_INCLUDEDIR)
+
+IF(NOT R_INCLUDEDIR)
+	SET(R_INCLUDEDIR ${R_HOME}/include)
+	MESSAGE(STATUS "Not findable via R. Guessing")
+ENDIF(NOT R_INCLUDEDIR)
+MESSAGE(STATUS "Include files should be at ${R_INCLUDEDIR}. Checking for R.h")
+
+FIND_FILE(R_H
+	R.h
+	PATHS ${R_INCLUDEDIR}
+	NO_DEFAULT_PATH)
+IF(NOT R_H)
+	MESSAGE(FATAL_ERROR "Not found")
+ELSE(NOT R_H)
+	MESSAGE(STATUS "Found at ${R_H}")
+	GET_FILENAME_COMPONENT(R_INCLUDEDIR ${R_H}
+				PATH)
+	SET(R_INCLUDEFLAG -I${R_INCLUDEDIR})
+ENDIF(NOT R_H)
+
+# check for existence of libR.so
+
+MESSAGE(STATUS "Checking for existence of libR.so")
+FIND_FILE(LIBR_SO
+	libR.so
+	PATHS ${R_HOME}/lib ${R_SHAREDLIBDIR}
+	NO_DEFAULT_PATH)
+IF(NOT LIBR_SO)
+	MESSAGE(FATAL_ERROR "Not found. Make sure the location of R was detected correctly, above, and R was compiled with the --enable-shlib option")
+ELSE(NOT LIBR_SO)
+	MESSAGE(STATUS "Exists at ${LIBR_SO}")
+	GET_FILENAME_COMPONENT(R_SHAREDLIBDIR ${LIBR_SO}
+				PATH)
+	SET(R_SHAREDLIBFLAG -L${R_SHAREDLIBDIR} -lR)
+ENDIF(NOT LIBR_SO)
+
+# for at least some versions of R, we seem to have to link against -lRlapack. Else loading some
+# R packages will fail due to unresolved symbols. However, we can't do this unconditionally,
+# as this is not available in some configurations of R
+
+MESSAGE(STATUS "Checking whether we should link against libRlapack.so")
+FIND_FILE(LIBR_LAPACK
+	libRlapack.so
+	PATHS ${R_LIBDIR}
+	NO_DEFAULT_PATH)
+IF(NOT LIBR_LAPACK)
+	MESSAGE(STATUS "No, ${R_LIBDIR}/libRlapack.so does not exist")
+ELSE(NOT LIBR_LAPACK)
+	MESSAGE(STATUS "Yes, ${LIBR_LAPACK} exists")
+	SET(R_LIBADDS ${R_LIBADDS} -lRlapack -lgfortran)
+ENDIF(NOT LIBR_LAPACK)
+
+# for at least some versions of R, we seem to have to link against -lRblas. Else loading some
+# R packages will fail due to unresolved symbols. However, we can't do this unconditionally,
+# as this is not available in some configurations of R
+
+MESSAGE(STATUS "Checking whether we should link against libRblas.so")
+FIND_FILE(LIBR_BLAS
+	libRblas.so
+	PATHS ${R_LIBDIR}
+	NO_DEFAULT_PATH)
+IF(NOT LIBR_BLAS)
+	MESSAGE(STATUS "No, ${R_LIBDIR}/libRblas.so does not exist")
+ELSE(NOT LIBR_BLAS)
+	MESSAGE(STATUS "Yes, ${LIBR_BLAS} exists")
+	SET(R_LIBADDS ${R_LIBADDS} -lRblas)
+ENDIF(NOT LIBR_BLAS)
+
+
+
+# find R package library location
+
+MESSAGE(STATUS "Checking for R package library location to use")
+IF(NOT R_LIBDIR)
+	EXEC_PROGRAM(${R_EXECUTABLE}
+		ARGS CMD sh -c 'echo $R_LIBS'
+		OUTPUT_VARIABLE R_LIBDIR)
+ELSE(NOT R_LIBDIR)
+	MESSAGE(STATUS "Location specified by user")
+ENDIF(NOT R_LIBDIR)
+
+# strip whitespace
+STRING(REGEX REPLACE "[ \n]+"
+	"" R_LIBDIR
+	"${R_LIBDIR}")
+
+IF(NOT R_LIBDIR)
+	MESSAGE(STATUS "Not reliably determined or specified. Guessing.")
+	SET(R_LIBDIR ${R_HOME}/library)
+ENDIF(NOT R_LIBDIR)
+
+IF(NOT EXISTS ${R_LIBDIR})
+	MESSAGE(FATAL_ERROR "${R_LIBDIR} does not exist")
+ENDIF(NOT EXISTS ${R_LIBDIR})
+	MESSAGE(STATUS "Will use ${R_LIBDIR}")
+ENDIF(NOT EXISTS ${R_LIBDIR})

Added: branches/KDE4_port/rkward/rbackend/rpackages/CMakeLists.txt
===================================================================
--- branches/KDE4_port/rkward/rbackend/rpackages/CMakeLists.txt	                        (rev 0)
+++ branches/KDE4_port/rkward/rbackend/rpackages/CMakeLists.txt	2007-10-08 09:39:24 UTC (rev 2029)
@@ -0,0 +1,31 @@
+ADD_SUBDIRECTORY( rkward ) 
+
+INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${KDE3_INCLUDE_DIR} ${QT_INCLUDE_DIR}  )
+
+
+########### install files ###############
+
+
+
+
+#original Makefile.am contents follow:
+
+#SUBDIRS = rkward
+#
+#all:
+#	-${R_HOMEDIR}/bin/R CMD build rkward
+#install:
+#	-mkdir -p tmp ; \
+#	OLDTMP=$$TMPDIR ; \
+#	export TMPDIR=`pwd`/tmp ; \
+#	mkdir -p $(DESTDIR)/$(R_LIBDIR) ; \
+#	${R_HOMEDIR}/bin/R CMD INSTALL -l $(DESTDIR)/$(R_LIBDIR) rkward ; \
+#	export TMPDIR=$$OLDTMP
+#uninstall:
+#	-${R_HOMEDIR}/bin/R CMD REMOVE -l $(DESTDIR)/$(R_LIBDIR) rkward
+#check:
+#	-${R_HOMEDIR}/bin/R CMD check rkward
+#clean \
+#distclean:
+#	-rm -f rkward_*.tar.gz
+#	-rm -rf tmp

Added: branches/KDE4_port/rkward/scriptbackends/CMakeLists.txt
===================================================================
--- branches/KDE4_port/rkward/scriptbackends/CMakeLists.txt	                        (rev 0)
+++ branches/KDE4_port/rkward/scriptbackends/CMakeLists.txt	2007-10-08 09:39:24 UTC (rev 2029)
@@ -0,0 +1,32 @@
+INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${KDE3_INCLUDE_DIR} ${QT_INCLUDE_DIR}  )
+
+
+########### next target ###############
+
+SET(scriptbackends_STAT_SRCS
+   phpbackend.cpp
+   scriptbackend.cpp
+   simplebackend.cpp
+   )
+
+KDE3_AUTOMOC(${scriptbackends_STAT_SRCS})
+
+ADD_LIBRARY(scriptbackends STATIC ${scriptbackends_STAT_SRCS})
+
+
+########### install files ###############
+
+INSTALL(FILES   common.php php.ini DESTINATION /share/apps/rkward/phpfiles )
+
+
+
+#original Makefile.am contents follow:
+
+#INCLUDES = $(all_includes)
+#METASOURCES = AUTO
+#noinst_LIBRARIES =  libscriptbackends.a
+#noinst_HEADERS =  phpbackend.h scriptbackend.h simplebackend.h
+#libscriptbackends_a_SOURCES =  phpbackend.cpp scriptbackend.cpp simplebackend.cpp
+#phpfilesdir = $(kde_datadir)/rkward/phpfiles
+#phpfiles_DATA = common.php php.ini
+#

Added: branches/KDE4_port/rkward/settings/CMakeLists.txt
===================================================================
--- branches/KDE4_port/rkward/settings/CMakeLists.txt	                        (rev 0)
+++ branches/KDE4_port/rkward/settings/CMakeLists.txt	2007-10-08 09:39:24 UTC (rev 2029)
@@ -0,0 +1,40 @@
+INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${KDE3_INCLUDE_DIR} ${QT_INCLUDE_DIR}  )
+
+
+########### next target ###############
+
+SET(settings_STAT_SRCS
+   rksettings.cpp
+   rksettingsmodule.cpp
+   rksettingsmodulegeneral.cpp
+   rksettingsmoduleoutput.cpp
+   rksettingsmodulephp.cpp
+   rksettingsmoduleplugins.cpp
+   rksettingsmoduler.cpp
+   rksettingsmodulewatch.cpp
+   rksettingsmoduleobjectbrowser.cpp
+   rksettingsmoduleconsole.cpp
+   )
+
+KDE3_AUTOMOC(${settings_STAT_SRCS})
+
+ADD_LIBRARY(settings STATIC ${settings_STAT_SRCS})
+
+
+########### install files ###############
+
+
+
+
+#original Makefile.am contents follow:
+
+#INCLUDES = $(all_includes)
+#METASOURCES = AUTO
+#noinst_LIBRARIES =  libsettings.a
+#libsettings_a_SOURCES = rksettings.cpp rksettingsmodule.cpp \
+#	rksettingsmodulegeneral.cpp rksettingsmoduleoutput.cpp rksettingsmodulephp.cpp \
+#	rksettingsmoduleplugins.cpp rksettingsmoduler.cpp rksettingsmodulewatch.cpp \
+#	rksettingsmoduleobjectbrowser.cpp rksettingsmoduleconsole.cpp
+#noinst_HEADERS = rksettings.h rksettingsmodule.h rksettingsmodulegeneral.h \
+#	rksettingsmoduleoutput.h rksettingsmodulephp.h rksettingsmoduleplugins.h rksettingsmoduler.h \
+#	rksettingsmodulewatch.h rksettingsmoduleobjectbrowser.h rksettingsmoduleconsole.h

Added: branches/KDE4_port/rkward/syntax/CMakeLists.txt
===================================================================
--- branches/KDE4_port/rkward/syntax/CMakeLists.txt	                        (rev 0)
+++ branches/KDE4_port/rkward/syntax/CMakeLists.txt	2007-10-08 09:39:24 UTC (rev 2029)
@@ -0,0 +1,15 @@
+INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${KDE3_INCLUDE_DIR} ${QT_INCLUDE_DIR}  )
+
+
+########### install files ###############
+
+INSTALL(FILES   r.xml rkward.xml DESTINATION /share/apps/katepart/syntax/ )
+
+
+
+#original Makefile.am contents follow:
+
+#EXTRA_DIST = r-syntax-test.R
+#
+#katesyntaxdir = $(kde_datadir)/katepart/syntax/
+#katesyntax_DATA =  r.xml rkward.xml

Added: branches/KDE4_port/rkward/windows/CMakeLists.txt
===================================================================
--- branches/KDE4_port/rkward/windows/CMakeLists.txt	                        (rev 0)
+++ branches/KDE4_port/rkward/windows/CMakeLists.txt	2007-10-08 09:39:24 UTC (rev 2029)
@@ -0,0 +1,49 @@
+INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${KDE3_INCLUDE_DIR} ${QT_INCLUDE_DIR}  )
+
+
+########### next target ###############
+
+SET(windows_STAT_SRCS
+   rkcommandeditorwindow.cpp
+   rkcommandeditorwindowpart.cpp
+   rkhtmlwindow.cpp
+   rcontrolwindow.cpp
+   detachedwindowcontainer.cpp
+   rkmdiwindow.cpp
+   rkworkplaceview.cpp
+   rkworkplace.cpp
+   qxembedcopy.cpp
+   rkwindowcatcher.cpp
+   rkcommandlog.cpp
+   rkhelpsearchwindow.cpp
+   rktoplevelwindowgui.cpp
+   rkfilebrowser.cpp
+   )
+
+KDE3_AUTOMOC(${windows_STAT_SRCS})
+
+ADD_LIBRARY(windows STATIC ${windows_STAT_SRCS})
+
+
+########### install files ###############
+
+INSTALL(FILES   rkcommandeditorwindowpart.rc rkoutputwindow.rc rkhelpwindow.rc detachedwindowcontainer.rc  	rkcatchedx11windowpart.rc rkcommandlogpart.rc rktoplevelwindowgui.rc DESTINATION /share/apps/rkward )
+
+
+
+#original Makefile.am contents follow:
+
+#INCLUDES = $(all_includes)
+#METASOURCES = AUTO
+#noinst_LIBRARIES =  libwindows.a
+#noinst_HEADERS = rkcommandeditorwindow.h rkcommandeditorwindowpart.h \
+#	rkhtmlwindow.h rcontrolwindow.h detachedwindowcontainer.h rkmdiwindow.h \
+#	rkworkplaceview.h rkworkplace.h qxembedcopy.h rkwindowcatcher.h rkcommandlog.h \
+#	rkhelpsearchwindow.h rktoplevelwindowgui.h rkfilebrowser.h
+#libwindows_a_SOURCES = rkcommandeditorwindow.cpp rkcommandeditorwindowpart.cpp \
+#	rkhtmlwindow.cpp rcontrolwindow.cpp detachedwindowcontainer.cpp rkmdiwindow.cpp \
+#	rkworkplaceview.cpp rkworkplace.cpp qxembedcopy.cpp rkwindowcatcher.cpp rkcommandlog.cpp \
+#	rkhelpsearchwindow.cpp rktoplevelwindowgui.cpp rkfilebrowser.cpp
+#rcdir = $(kde_datadir)/rkward
+#rc_DATA = rkcommandeditorwindowpart.rc rkoutputwindow.rc rkhelpwindow.rc detachedwindowcontainer.rc \
+#	rkcatchedx11windowpart.rc rkcommandlogpart.rc rktoplevelwindowgui.rc

Added: branches/KDE4_port/version.h
===================================================================
--- branches/KDE4_port/version.h	                        (rev 0)
+++ branches/KDE4_port/version.h	2007-10-08 09:39:24 UTC (rev 2029)
@@ -0,0 +1,4 @@
+/* TODO: rename to version.h */
+
+/* Version number of package */
+#define VERSION "0.4.9pre1"


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the rkward-tracker mailing list