Author: mhutch
Date: 2007-12-14 20:34:10 -0500 (Fri, 14 Dec 2007)
New Revision: 91335

Added:
   trunk/monodevelop/extras/GeckoWebBrowser/
   trunk/monodevelop/extras/GeckoWebBrowser/GeckoWebBrowser.make
   trunk/monodevelop/extras/GeckoWebBrowser/GeckoWebBrowser.mds
   trunk/monodevelop/extras/GeckoWebBrowser/Makefile
   trunk/monodevelop/extras/GeckoWebBrowser/Makefile.include
   trunk/monodevelop/extras/GeckoWebBrowser/configure
   trunk/monodevelop/extras/GeckoWebBrowser/monodevelop-geckowebbrowser.pc.in
   trunk/monodevelop/extras/GeckoWebBrowser/rules.make
Removed:
   trunk/monodevelop/extras/GeckoWebBrowser/Makefile.am
Modified:
   trunk/monodevelop/extras/GeckoWebBrowser/GeckoWebBrowser.mdp
   
trunk/monodevelop/extras/GeckoWebBrowser/MonoDevelop.WebBrowsers.GeckoWebBrowser.addin.xml
   trunk/monodevelop/extras/GeckoWebBrowser/gtk-gui/gui.stetic
   trunk/monodevelop/profiles/all
Log:
Move GeckoBrowser to extras.


Copied: trunk/monodevelop/extras/GeckoWebBrowser (from rev 91296, 
trunk/monodevelop/main/src/addins/GeckoWebBrowser)


Property changes on: trunk/monodevelop/extras/GeckoWebBrowser
___________________________________________________________________
Name: svn:ignore
   + GeckoWebBrowser.pidb
build
config.log
config.make
monodevelop-geckowebbrowser.pc


Added: trunk/monodevelop/extras/GeckoWebBrowser/GeckoWebBrowser.make
===================================================================
--- trunk/monodevelop/main/src/addins/GeckoWebBrowser/GeckoWebBrowser.make      
2007-12-14 16:15:49 UTC (rev 91296)
+++ trunk/monodevelop/extras/GeckoWebBrowser/GeckoWebBrowser.make       
2007-12-15 01:34:10 UTC (rev 91335)
@@ -0,0 +1,114 @@
+
+
+# Warning: This is an automatically generated file, do not edit!
+
+srcdir=.
+top_srcdir=.
+
+include $(top_srcdir)/Makefile.include
+include $(top_srcdir)/config.make
+
+ifeq ($(CONFIG),DEBUG)
+ASSEMBLY_COMPILER_COMMAND = gmcs
+ASSEMBLY_COMPILER_FLAGS =  -noconfig -codepage:utf8 -warn:4 -optimize+ -debug 
-define:DEBUG
+ASSEMBLY = build/MonoDevelop.GeckoWebBrowser.dll
+ASSEMBLY_MDB = $(ASSEMBLY).mdb
+COMPILE_TARGET = library
+PROJECT_REFERENCES = 
+BUILD_DIR = build
+
+
+endif
+
+ifeq ($(CONFIG),RELEASE)
+ASSEMBLY_COMPILER_COMMAND = gmcs
+ASSEMBLY_COMPILER_FLAGS =  -noconfig -codepage:utf8 -warn:4 -optimize+
+ASSEMBLY = build/MonoDevelop.GeckoWebBrowser.dll
+ASSEMBLY_MDB = 
+COMPILE_TARGET = library
+PROJECT_REFERENCES = 
+BUILD_DIR = build
+
+
+endif
+
+INSTALL_DIR = $(prefix)/lib/monodevelop/AddIns/GeckoWebBrowser
+
+LINUX_PKGCONFIG = \
+       $(GECKOWEBBROWSER_PC)  
+
+
+
+GECKOWEBBROWSER_PC = $(BUILD_DIR)/monodevelop-geckowebbrowser.pc
+
+
+FILES =  \
+       GeckoWebBrowser.cs \
+       GeckoWebBrowserLoader.cs \
+       gtk-gui/generated.cs 
+
+DATA_FILES = 
+
+RESOURCES =  \
+       gtk-gui/gui.stetic \
+       MonoDevelop.WebBrowsers.GeckoWebBrowser.addin.xml 
+
+EXTRAS = \
+       ChangeLog \
+       Makefile.am \
+       monodevelop-geckowebbrowser.pc.in 
+
+REFERENCES =  \
+       -pkg:gecko-sharp-2.0 \
+       -pkg:glib-sharp-2.0 \
+       -pkg:gtk-sharp-2.0 \
+       -pkg:monodevelop
+
+DLL_REFERENCES = 
+
+CLEANFILES += $(LINUX_PKGCONFIG) 
+
+#Targets
+all-local: $(ASSEMBLY) $(LINUX_PKGCONFIG)  $(top_srcdir)/config.make
+
+$(GECKOWEBBROWSER_PC): monodevelop-geckowebbrowser.pc
+       mkdir -p $(BUILD_DIR)
+       cp '$<' '$@'
+
+
+
+monodevelop-geckowebbrowser.pc: monodevelop-geckowebbrowser.pc.in 
$(top_srcdir)/config.make
+       sed -e "s,@prefix@,$(prefix)," -e "s,@PACKAGE@,$(PACKAGE)," < 
monodevelop-geckowebbrowser.pc.in > monodevelop-geckowebbrowser.pc
+
+
+$(build_xamlg_list): %.xaml.g.cs: %.xaml
+       xamlg '$<'
+
+$(build_resx_resources) : %.resources: %.resx
+       resgen2 '$<' '$@'
+
+
+
+$(ASSEMBLY) $(ASSEMBLY_MDB): $(build_sources) $(build_resources) 
$(build_datafiles) $(DLL_REFERENCES) $(PROJECT_REFERENCES) $(build_xamlg_list)
+       make pre-all-local-hook prefix=$(prefix)
+       mkdir -p $(dir $(ASSEMBLY))
+       make $(CONFIG)_BeforeBuild
+       $(ASSEMBLY_COMPILER_COMMAND) $(ASSEMBLY_COMPILER_FLAGS) 
-out:$(ASSEMBLY) -target:$(COMPILE_TARGET) $(build_sources_embed) 
$(build_resources_embed) $(build_references_ref)
+       make $(CONFIG)_AfterBuild
+       make post-all-local-hook prefix=$(prefix)
+
+
+install-local: $(ASSEMBLY) $(ASSEMBLY_MDB) $(GECKOWEBBROWSER_PC)
+       make pre-install-local-hook prefix=$(prefix)
+       mkdir -p $(INSTALL_DIR)
+       cp $(ASSEMBLY) $(ASSEMBLY_MDB) $(INSTALL_DIR)
+       mkdir -p $(prefix)/lib/pkgconfig
+       test -z '$(GECKOWEBBROWSER_PC)' || cp $(GECKOWEBBROWSER_PC) 
$(prefix)/lib/pkgconfig
+       make post-install-local-hook prefix=$(prefix)
+
+uninstall-local: $(ASSEMBLY) $(ASSEMBLY_MDB) $(GECKOWEBBROWSER_PC)
+       make pre-uninstall-local-hook prefix=$(prefix)
+       rm -f $(INSTALL_DIR)/$(notdir $(ASSEMBLY))
+       test -z '$(ASSEMBLY_MDB)' || rm -f $(INSTALL_DIR)/$(notdir 
$(ASSEMBLY_MDB))
+       test -z '$(GECKOWEBBROWSER_PC)' || rm -f 
$(prefix)/lib/pkgconfig/$(notdir $(GECKOWEBBROWSER_PC))
+       make post-uninstall-local-hook prefix=$(prefix)

Modified: trunk/monodevelop/extras/GeckoWebBrowser/GeckoWebBrowser.mdp
===================================================================
--- trunk/monodevelop/main/src/addins/GeckoWebBrowser/GeckoWebBrowser.mdp       
2007-12-14 16:15:49 UTC (rev 91296)
+++ trunk/monodevelop/extras/GeckoWebBrowser/GeckoWebBrowser.mdp        
2007-12-15 01:34:10 UTC (rev 91335)
@@ -1,13 +1,13 @@
 <Project name="GeckoWebBrowser" fileversion="2.0" language="C#" 
clr-version="Net_2_0" ctype="DotNetProject">
   <Configurations active="Debug">
     <Configuration name="Debug" ctype="DotNetProjectConfiguration">
-      <Output 
directory="../../../build/AddIns/MonoDevelop.GeckoWebBrowser/GeckoWebBrowser" 
assembly="MonoDevelop.GeckoWebBrowser" />
+      <Output directory="build" assembly="MonoDevelop.GeckoWebBrowser" />
       <Build debugmode="True" target="Library" />
       <Execution runwithwarnings="True" consolepause="True" runtime="MsNet" 
clr-version="Net_2_0" />
       <CodeGeneration compiler="Mcs" warninglevel="4" optimize="True" 
unsafecodeallowed="False" generateoverflowchecks="True" 
generatexmldocumentation="False" ctype="CSharpCompilerParameters" />
     </Configuration>
     <Configuration name="Release" ctype="DotNetProjectConfiguration">
-      <Output 
directory="../../../build/AddIns/MonoDevelop.GeckoWebBrowser/GeckoWebBrowser" 
assembly="MonoDevelop.GeckoWebBrowser" />
+      <Output directory="build" assembly="MonoDevelop.GeckoWebBrowser" />
       <Build debugmode="False" target="Library" />
       <Execution runwithwarnings="True" consolepause="True" runtime="MsNet" 
clr-version="Net_2_0" />
       <CodeGeneration compiler="Mcs" warninglevel="4" optimize="True" 
unsafecodeallowed="False" generateoverflowchecks="True" 
generatexmldocumentation="False" ctype="CSharpCompilerParameters" />
@@ -20,27 +20,22 @@
     <File name="MonoDevelop.WebBrowsers.GeckoWebBrowser.addin.xml" 
subtype="Code" buildaction="EmbedAsResource" />
     <File name="GeckoWebBrowserLoader.cs" subtype="Code" buildaction="Compile" 
/>
     <File name="ChangeLog" subtype="Code" buildaction="Nothing" />
-    <File name="Makefile.am" subtype="Code" buildaction="Nothing" />
   </Contents>
   <References>
-    <ProjectReference type="Project" localcopy="False" 
refto="MonoDevelop.Core.Gui" />
-    <ProjectReference type="Gac" localcopy="True" refto="Mono.Posix, 
Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756" />
-    <ProjectReference type="Project" localcopy="False" 
refto="MonoDevelop.Core" />
     <ProjectReference type="Gac" localcopy="True" refto="gecko-sharp, 
Version=2.0.0.0, Culture=neutral, PublicKeyToken=ccf7d78a55e9f021" />
-    <ProjectReference type="Gac" localcopy="True" refto="glib-sharp, 
Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
-    <ProjectReference type="Gac" localcopy="True" refto="pango-sharp, 
Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
-    <ProjectReference type="Gac" localcopy="True" refto="atk-sharp, 
Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
-    <ProjectReference type="Gac" localcopy="True" refto="gdk-sharp, 
Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
-    <ProjectReference type="Gac" localcopy="True" refto="gtk-sharp, 
Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
+    <ProjectReference type="Gac" localcopy="True" refto="gtk-sharp, 
Version=2.10.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
+    <ProjectReference type="Gac" localcopy="True" refto="glib-sharp, 
Version=2.10.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
+    <ProjectReference type="Gac" localcopy="True" refto="MonoDevelop.Core.Gui, 
Version=0.18.0.0, Culture=neutral" />
+    <ProjectReference type="Gac" localcopy="True" refto="MonoDevelop.Core, 
Version=0.18.0.0, Culture=neutral" />
   </References>
-  <GtkDesignInfo gtkVersion="2.8.3" />
-  <MonoDevelop.Autotools.MakefileInfo IntegrationEnabled="True" 
RelativeMakefileName="Makefile.am" BuildTargetName="" CleanTargetName="" 
SyncReferences="True" IsAutotoolsProject="True" 
RelativeConfigureInPath="../../..">
+  <GtkDesignInfo />
+  <MonoDevelop.Autotools.MakefileInfo IntegrationEnabled="True" 
RelativeMakefileName="GeckoWebBrowser.make" SyncReferences="True" 
RelativeConfigureInPath="../../..">
     <BuildFilesVar Sync="True" Name="FILES" />
     <DeployFilesVar />
-    <ResourcesVar Sync="True" Name="RES" />
+    <ResourcesVar Sync="True" Name="RESOURCES" />
     <OthersVar />
-    <GacRefVar Sync="True" Name="REFS" Prefix="-r:" />
-    <AsmRefVar Sync="True" Name="REFS" Prefix="-r:" />
-    <ProjectRefVar Sync="True" Name="REFS" Prefix="-r:" />
+    <GacRefVar Sync="True" Name="REFERENCES" />
+    <AsmRefVar Sync="True" Name="DLL_REFERENCES" />
+    <ProjectRefVar Sync="True" Name="PROJECT_REFERENCES" />
   </MonoDevelop.Autotools.MakefileInfo>
 </Project>
\ No newline at end of file

Added: trunk/monodevelop/extras/GeckoWebBrowser/GeckoWebBrowser.mds
===================================================================
--- trunk/monodevelop/main/src/addins/GeckoWebBrowser/GeckoWebBrowser.mds       
2007-12-14 16:15:49 UTC (rev 91296)
+++ trunk/monodevelop/extras/GeckoWebBrowser/GeckoWebBrowser.mds        
2007-12-15 01:34:10 UTC (rev 91335)
@@ -0,0 +1,16 @@
+<Combine name="GeckoWebBrowser" fileversion="2.0">
+  <Configurations active="Debug">
+    <Configuration name="Debug" ctype="CombineConfiguration">
+      <Entry build="True" name="GeckoWebBrowser" configuration="Debug" />
+    </Configuration>
+    <Configuration name="Release" ctype="CombineConfiguration">
+      <Entry build="True" name="GeckoWebBrowser" configuration="Release" />
+    </Configuration>
+  </Configurations>
+  <StartMode startupentry="GeckoWebBrowser" single="True">
+    <Execute type="None" entry="GeckoWebBrowser" />
+  </StartMode>
+  <Entries>
+    <Entry filename="GeckoWebBrowser.mdp" />
+  </Entries>
+</Combine>
\ No newline at end of file

Added: trunk/monodevelop/extras/GeckoWebBrowser/Makefile
===================================================================
--- trunk/monodevelop/main/src/addins/GeckoWebBrowser/Makefile  2007-12-14 
16:15:49 UTC (rev 91296)
+++ trunk/monodevelop/extras/GeckoWebBrowser/Makefile   2007-12-15 01:34:10 UTC 
(rev 91335)
@@ -0,0 +1,73 @@
+
+EXTRA_DIST = GeckoWebBrowser.make rules.make configure Makefile.include
+
+all: all-recursive
+
+top_srcdir=.
+include $(top_srcdir)/config.make
+include $(top_srcdir)/rules.make
+
+#include $(top_srcdir)/custom-hooks.make
+
+#Warning: This is an automatically generated file, do not edit!
+ifeq ($(CONFIG),DEBUG)
+ SUBDIRS =  . 
+endif
+ifeq ($(CONFIG),RELEASE)
+ SUBDIRS =  . 
+endif
+
+# Include project specific makefile
+include GeckoWebBrowser.make
+
+CONFIG_MAKE=$(top_srcdir)/config.make
+
+%-recursive: $(CONFIG_MAKE)
+       @set . $$MAKEFLAGS; final_exit=:; \
+       case $$2 in --unix) shift ;; esac; \
+       case $$2 in *=*) dk="exit 1" ;; *k*) dk=: ;; *) dk="exit 1" ;; esac; \
+       make pre-$*-hook prefix=$(prefix)
+       for dir in $(SUBDIRS); do \
+               case $$dir in \
+               .) make $*-local || { final_exit="exit 1"; $$dk; };;\
+               *) (cd $$dir && make $*) || { final_exit="exit 1"; $$dk; };;\
+               esac \
+       done
+       make post-$*-hook prefix=$(prefix)
+       $$final_exit
+
+$(CONFIG_MAKE):
+       echo "You must run configure first"
+       exit 1
+
+clean: clean-recursive
+install: install-recursive
+uninstall: uninstall-recursive
+
+dist: $(CONFIG_MAKE)
+       rm -rf $(PACKAGE)-$(VERSION)
+       mkdir $(PACKAGE)-$(VERSION)
+       make pre-dist-hook distdir=$$distdir
+       for dir in $(SUBDIRS); do \
+               pkgdir=`pwd`/$(PACKAGE)-$(VERSION); \
+               mkdir $$pkgdir/$$dir || true; \
+               case $$dir in \
+               .) make dist-local distdir=$$pkgdir || exit 1;; \
+               *) (cd $$dir; make dist-local distdir=$$pkgdir/$$dir) || exit 
1;; \
+               esac \
+       done
+       (make dist-local distdir=$(PACKAGE)-$(VERSION))
+       make
+       make post-dist-hook distsir=$$distdir
+       tar czvf $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE)-$(VERSION)
+       rm -rf $(PACKAGE)-$(VERSION)
+       @echo "=========================================="
+       @echo "$(PACKAGE)-$(VERSION) has been packaged > 
$(PACKAGE)-$(VERSION).tar.gz"
+       @echo "=========================================="
+
+distcheck: dist
+       (mkdir test; cd test;  \
+        tar xzvf ../$(PACKAGE)-$(VERSION).tar.gz; cd $(PACKAGE)-$(VERSION); \
+        ./configure --prefix=$$(cd `pwd`/..; pwd); \
+        make && make install && make dist);
+       rm -rf test

Deleted: trunk/monodevelop/extras/GeckoWebBrowser/Makefile.am
===================================================================
--- trunk/monodevelop/main/src/addins/GeckoWebBrowser/Makefile.am       
2007-12-14 16:15:49 UTC (rev 91296)
+++ trunk/monodevelop/extras/GeckoWebBrowser/Makefile.am        2007-12-15 
01:34:10 UTC (rev 91335)
@@ -1,39 +0,0 @@
-ADDIN_BUILD = $(top_builddir)/build/AddIns/GeckoWebBrowser
-ASSEMBLY = $(ADDIN_BUILD)/MonoDevelop.GeckoWebBrowser.dll
-
-REFS =  \
-       $(GECKO_SHARP_LIBS) \
-       $(GLIB_SHARP_LIBS) \
-       $(GTK_SHARP_LIBS) \
-       -r:$(top_builddir)/build/bin/MonoDevelop.Core.dll \
-       -r:$(top_builddir)/build/bin/MonoDevelop.Core.Gui.dll \
-       -r:Mono.Posix
-
-FILES =  \
-       GeckoWebBrowser.cs \
-       GeckoWebBrowserLoader.cs \
-       gtk-gui/generated.cs  
-
-RES =  \
-       gtk-gui/gui.stetic \
-       MonoDevelop.WebBrowsers.GeckoWebBrowser.addin.xml  
-
-if ENABLE_GECKOBROWSER
-all: $(ASSEMBLY)
-else
-all:
-endif
-
-$(ASSEMBLY): $(FILES) $(build_resources)
-       mkdir -p $(ADDIN_BUILD)
-       $(CSC) $(CSC_FLAGS) $(REFS) $(build_resources:%=/resource:%) 
$(build_sources) -out:$@ -target:library
-
-if ENABLE_GECKOBROWSER
-assemblydir = $(MD_ADDIN_DIR)/GeckoWebBrowser
-assembly_DATA = $(ASSEMBLY)
-endif
-
-CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb
-EXTRA_DIST = $(FILES) $(RES)
-
-include $(top_srcdir)/Makefile.include

Added: trunk/monodevelop/extras/GeckoWebBrowser/Makefile.include
===================================================================
--- trunk/monodevelop/main/src/addins/GeckoWebBrowser/Makefile.include  
2007-12-14 16:15:49 UTC (rev 91296)
+++ trunk/monodevelop/extras/GeckoWebBrowser/Makefile.include   2007-12-15 
01:34:10 UTC (rev 91335)
@@ -0,0 +1,33 @@
+build_sources = $(FILES) $(GENERATED_FILES)
+build_sources_embed = $(build_sources:%='$(srcdir)/%')
+
+comma__=,
+build_resx_list = $(foreach res, $(RESOURCES), $(if $(filter %.resx, 
$(firstword $(subst $(comma__), ,$(res)))),$(res),))
+build_others_list = $(foreach res, $(RESOURCES), $(if $(filter %.resx, 
$(firstword $(subst $(comma__), ,$(res)))), ,$(res)))
+build_xamlg_list = $(filter %.xaml.g.cs, $(FILES))
+
+build_resx_files = $(foreach res, $(build_resx_list), $(firstword $(subst 
$(comma__), ,$(res))))
+build_resx_resources = $(build_resx_files:.resx=.resources)
+build_resx_resources_hack = $(subst .resx,.resources, $(build_resx_list))
+build_resx_resources_embed = $(build_resx_resources_hack:%='-resource:%')
+
+build_others_files = $(foreach res, $(build_others_list), $(firstword $(subst 
$(comma__), ,$(res))))
+build_others_resources = $(build_others_files)
+build_others_resources_embed = $(build_others_list:%='-resource:$(srcdir)/%')
+
+build_resources = $(build_resx_resources) $(build_others_resources)
+build_resources_embed = $(build_resx_resources_embed) 
$(build_others_resources_embed)
+
+build_references_ref = $(foreach ref, $(REFERENCES), $(if $(filter -pkg:%, 
$(ref)), $(ref), $(if $(filter -r:%, $(ref)), $(ref), -r:$(ref))))
+build_references_ref += $(foreach ref, $(DLL_REFERENCES), -r:$(ref))
+build_references_ref += $(foreach ref, $(PROJECT_REFERENCES), -r:$(ref))
+
+EXTRA_DIST += $(build_sources) $(build_resx_files) $(build_others_files) 
$(ASSEMBLY_WRAPPER_IN) $(EXTRAS) $(DATA_FILES)
+CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb $(BINARIES) $(build_resx_resources)
+DISTCLEANFILES = $(GENERATED_FILES) $(pc_files) $(BUILD_DIR)/*
+
+pkglib_SCRIPTS = $(ASSEMBLY)
+bin_SCRIPTS = $(BINARIES)
+
+linuxpkgconfigdir = @prefix@/lib/pkgconfig
+linuxpkgconfig_DATA = $(LINUX_PKGCONFIG)

Modified: 
trunk/monodevelop/extras/GeckoWebBrowser/MonoDevelop.WebBrowsers.GeckoWebBrowser.addin.xml
===================================================================
--- 
trunk/monodevelop/main/src/addins/GeckoWebBrowser/MonoDevelop.WebBrowsers.GeckoWebBrowser.addin.xml
 2007-12-14 16:15:49 UTC (rev 91296)
+++ 
trunk/monodevelop/extras/GeckoWebBrowser/MonoDevelop.WebBrowsers.GeckoWebBrowser.addin.xml
  2007-12-15 01:34:10 UTC (rev 91335)
@@ -5,7 +5,7 @@
        copyright   = "MIT X11"
        url         = "http://www.monodevelop.com";
        description = "Mozilla Web Browser component using GeckoSharp and 
GtkMozEmbed"
-       category    = "Language bindings"
+       category    = "Platform Support"
        version     = "0.18.0">
 
        <Dependencies>
@@ -15,4 +15,4 @@
        <Extension path = "/MonoDevelop/Core/WebBrowsers">
                <Class id="GeckoWebBrowserLoader" 
class="MonoDevelop.WebBrowsers.GeckoWebBrowserLoader"/>
        </Extension>
-</Addin>
\ No newline at end of file
+</Addin>

Added: trunk/monodevelop/extras/GeckoWebBrowser/configure
===================================================================
--- trunk/monodevelop/main/src/addins/GeckoWebBrowser/configure 2007-12-14 
16:15:49 UTC (rev 91296)
+++ trunk/monodevelop/extras/GeckoWebBrowser/configure  2007-12-15 01:34:10 UTC 
(rev 91335)
@@ -0,0 +1,109 @@
+#!/bin/bash
+VERSION=0.1
+PACKAGE=geckowebbrowser
+prefix=/usr/local
+config=DEBUG
+configurations=" RELEASE DEBUG"
+common_packages=" glib-sharp-2.0;2.10.2 gtk-sharp-2.0;2.10.2 
gecko-sharp-2.0;0.12 monodevelop;0.18"
+
+
+usage ()
+{
+       echo "Usage : configure [--prefix=PREFIX] [--config=CONFIG]"
+       echo
+       echo "Configurations available :"
+       for c in $configurations; do
+               if [ "$c" = "$config" ]; then
+                       echo "        $c (Default)"
+               else
+                       echo "        $c"
+               fi
+       done
+}
+
+validate_config ()
+{
+       test -z "$1" && return 0
+       for c in $configurations; do
+               if [ "$c" = "$1" ]; then
+                       return 1
+               fi
+       done
+       return 0
+}
+
+check_package ()
+{
+       name=`echo $1 | cut -d\; -f1`
+       version=`echo $1 | cut -d\; -f2`
+
+       echo -n "Checking for package '$name'.." | tee -a config.log
+       pkg-config --atleast-version=$version $name
+       if [ $? -ne 0 ]; then
+               echo " ERROR: Package named '$name' >= $version not found." | 
tee -a config.log
+               echo "Try adjusting your PKG_CONFIG_PATH environment variable." 
| tee -a config.log
+               return 1
+       fi
+       echo " found." | tee -a config.log
+}
+
+check_required_packages ()
+{
+       echo "Looking for required packages" | tee config.log
+       var=required_packages_$config
+       for pkg in $common_packages ${!var}; do
+               check_package $pkg
+               retval=$?
+               [ $retval -ne 0 ] && return $retval
+       done
+       return 0
+}
+
+while test x$1 != x; do
+               case $1 in
+               --prefix=*)
+                               prefix=`echo $1 | sed 's/--prefix=//'`
+                               ;;
+               --prefix)
+                               shift
+                               prefix=$1
+                               ;;
+               --config=*)
+                               conf=`echo $1 | sed 's/--config=//'`
+                               validate_config "$conf"
+                               if [ $? -eq 1 ]; then
+                                       config=$conf
+                               else
+                                       echo "Invalid config name - $conf"
+                                       usage
+                                       exit 1
+                               fi
+                ;;
+               --help)
+                       usage
+                       exit
+                       ;;
+               *)
+                       echo Unknown argument $1 >&2
+                       usage
+                       exit 1
+                       ;;
+               esac
+               shift
+done
+
+check_required_packages
+[ $? -eq 1 ] && exit 1
+
+echo "prefix=$prefix" > config.make
+echo "RUNTIME=mono" >> config.make
+echo "ASSEMBLY_VERSION=$VERSION.0.0" >> config.make
+echo "VERSION=$VERSION" >> config.make
+echo "PACKAGE=$PACKAGE" >> config.make
+echo "CONFIG=$config" >> config.make
+
+echo
+echo "$PACKAGE has been configured with "
+echo "        prefix = $prefix"
+echo "        config = $config"
+echo


Property changes on: trunk/monodevelop/extras/GeckoWebBrowser/configure
___________________________________________________________________
Name: svn:executable
   + *

Modified: trunk/monodevelop/extras/GeckoWebBrowser/gtk-gui/gui.stetic
===================================================================
--- trunk/monodevelop/main/src/addins/GeckoWebBrowser/gtk-gui/gui.stetic        
2007-12-14 16:15:49 UTC (rev 91296)
+++ trunk/monodevelop/extras/GeckoWebBrowser/gtk-gui/gui.stetic 2007-12-15 
01:34:10 UTC (rev 91335)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <stetic-interface>
   <configuration>
-    <target-gtk-version>2.8.3</target-gtk-version>
+    <target-gtk-version>2.10.2</target-gtk-version>
   </configuration>
 </stetic-interface>
\ No newline at end of file

Added: 
trunk/monodevelop/extras/GeckoWebBrowser/monodevelop-geckowebbrowser.pc.in
===================================================================
--- 
trunk/monodevelop/main/src/addins/GeckoWebBrowser/monodevelop-geckowebbrowser.pc.in
 2007-12-14 16:15:49 UTC (rev 91296)
+++ trunk/monodevelop/extras/GeckoWebBrowser/monodevelop-geckowebbrowser.pc.in  
2007-12-15 01:34:10 UTC (rev 91335)
@@ -0,0 +1,6 @@
+Name: GeckoWebBrowser
+Description: GeckoWebBrowser
+Version: 0.1
+
+Requires: 
+Libs: -r:@prefix@/lib/@PACKAGE@/MonoDevelop.GeckoWebBrowser.dll

Added: trunk/monodevelop/extras/GeckoWebBrowser/rules.make
===================================================================
--- trunk/monodevelop/main/src/addins/GeckoWebBrowser/rules.make        
2007-12-14 16:15:49 UTC (rev 91296)
+++ trunk/monodevelop/extras/GeckoWebBrowser/rules.make 2007-12-15 01:34:10 UTC 
(rev 91335)
@@ -0,0 +1,40 @@
+clean-local:
+       make pre-clean-local-hook
+       make $(CONFIG)_BeforeClean
+       -rm -f $(CLEANFILES)
+       make $(CONFIG)_AfterClean
+       make post-clean-local-hook
+
+install-local:
+uninstall-local:
+
+dist-local:
+       make pre-dist-local-hook distdir=$$distdir
+       list='$(EXTRA_DIST)'; \
+       for f in Makefile $$list; do \
+               d=`dirname "$$f"`; \
+               test -d "$(distdir)/$$d" || \
+                       mkdir -p "$(distdir)/$$d"; \
+               cp -p "$$f" "$(distdir)/$$d" || exit 1; \
+       done
+       make post-dist-local-hook distdir=$$distdir
+
+dist-local-recursive:
+       for dir in $(SUBDIRS); do \
+               mkdir -p $(distdir)/$$dir || true; \
+               case $$dir in \
+               .) make dist-local distdir=$(distdir) || exit 1;; \
+               *) (cd $$dir; make dist-local distdir=$(distdir)/$$dir) || exit 
1; \
+               esac \
+       done
+
+#hooks: Available hooks - all, clean, install, uninstall and dist
+#      and their *-local variants
+pre-%-hook: ; @:
+post-%-hook: ; @:
+
+#targets for custom commands
+%_BeforeBuild: ; @:
+%_AfterBuild: ; @:
+%_BeforeClean: ; @:
+%_AfterClean: ; @:

Modified: trunk/monodevelop/profiles/all
===================================================================
--- trunk/monodevelop/profiles/all      2007-12-15 01:30:40 UTC (rev 91334)
+++ trunk/monodevelop/profiles/all      2007-12-15 01:34:10 UTC (rev 91335)
@@ -3,3 +3,4 @@
 extras/BooBinding
 extras/AspNetEdit
 extras/MonoDevelop.Database
+extras/GeckoWebBrowser

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to