Author: lluis
Date: 2008-02-14 06:35:02 -0500 (Thu, 14 Feb 2008)
New Revision: 95620

Added:
   trunk/monodevelop/extras/MonoDevelop.AddinAuthoring/ChangeLog
   trunk/monodevelop/extras/MonoDevelop.AddinAuthoring/Makefile
   trunk/monodevelop/extras/MonoDevelop.AddinAuthoring/Makefile.include
   
trunk/monodevelop/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.make
   trunk/monodevelop/extras/MonoDevelop.AddinAuthoring/configure
   
trunk/monodevelop/extras/MonoDevelop.AddinAuthoring/monodevelop.addinauthoring.pc.in
   trunk/monodevelop/extras/MonoDevelop.AddinAuthoring/rules.make
Log:
* configure, monodevelop.addinauthoring.pc.in, Makefile.include,
  MonoDevelop.AddinAuthoring.make, rules.make, Makefile: Add build
  files

Added: trunk/monodevelop/extras/MonoDevelop.AddinAuthoring/ChangeLog
===================================================================
--- trunk/monodevelop/extras/MonoDevelop.AddinAuthoring/ChangeLog       
2008-02-14 11:32:11 UTC (rev 95619)
+++ trunk/monodevelop/extras/MonoDevelop.AddinAuthoring/ChangeLog       
2008-02-14 11:35:02 UTC (rev 95620)
@@ -0,0 +1,5 @@
+2008-02-14  Lluis Sanchez Gual <[EMAIL PROTECTED]> 
+
+       * configure, monodevelop.addinauthoring.pc.in, Makefile.include,
+         MonoDevelop.AddinAuthoring.make, rules.make, Makefile: Add build files
+

Added: trunk/monodevelop/extras/MonoDevelop.AddinAuthoring/Makefile
===================================================================
--- trunk/monodevelop/extras/MonoDevelop.AddinAuthoring/Makefile        
2008-02-14 11:32:11 UTC (rev 95619)
+++ trunk/monodevelop/extras/MonoDevelop.AddinAuthoring/Makefile        
2008-02-14 11:35:02 UTC (rev 95620)
@@ -0,0 +1,73 @@
+
+EXTRA_DIST = MonoDevelop.AddinAuthoring.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 MonoDevelop.AddinAuthoring.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

Added: trunk/monodevelop/extras/MonoDevelop.AddinAuthoring/Makefile.include
===================================================================
--- trunk/monodevelop/extras/MonoDevelop.AddinAuthoring/Makefile.include        
2008-02-14 11:32:11 UTC (rev 95619)
+++ trunk/monodevelop/extras/MonoDevelop.AddinAuthoring/Makefile.include        
2008-02-14 11:35:02 UTC (rev 95620)
@@ -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)

Added: 
trunk/monodevelop/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.make
===================================================================
--- 
trunk/monodevelop/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.make
 2008-02-14 11:32:11 UTC (rev 95619)
+++ 
trunk/monodevelop/extras/MonoDevelop.AddinAuthoring/MonoDevelop.AddinAuthoring.make
 2008-02-14 11:35:02 UTC (rev 95620)
@@ -0,0 +1,162 @@
+
+
+# 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.AddinAuthoring.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 = bin/Release/MonoDevelop.AddinAuthoring.dll
+ASSEMBLY_MDB = 
+COMPILE_TARGET = library
+PROJECT_REFERENCES = 
+BUILD_DIR = bin/Release
+
+
+endif
+
+
+LINUX_PKGCONFIG = \
+       $(MONODEVELOP_ADDINAUTHORING_PC)  
+
+
+
+MONODEVELOP_ADDINAUTHORING_PC = $(BUILD_DIR)/monodevelop.addinauthoring.pc
+
+
+FILES =  \
+       AssemblyInfo.cs \
+       gtk-gui/generated.cs \
+       gtk-gui/MonoDevelop.AddinAuthoring.AddinDescriptionWidget.cs \
+       gtk-gui/MonoDevelop.AddinAuthoring.AddinFeatureWidget.cs \
+       gtk-gui/MonoDevelop.AddinAuthoring.AddinOptionPanelWidget.cs \
+       gtk-gui/MonoDevelop.AddinAuthoring.ExtensionEditorWidget.cs \
+       gtk-gui/MonoDevelop.AddinAuthoring.ExtensionPointsEditorWidget.cs \
+       gtk-gui/MonoDevelop.AddinAuthoring.ExtensionSelectorDialog.cs \
+       gtk-gui/MonoDevelop.AddinAuthoring.NewExtensionPointDialog.cs \
+       gtk-gui/MonoDevelop.AddinAuthoring.NodeSetEditorDialog.cs \
+       gtk-gui/MonoDevelop.AddinAuthoring.NodeSetEditorWidget.cs \
+       gtk-gui/MonoDevelop.AddinAuthoring.NodeTypeEditorDialog.cs \
+       gtk-gui/MonoDevelop.AddinAuthoring.RegistrySelector.cs \
+       gtk-gui/MonoDevelop.AddinAuthoring.SelectNodeSetDialog.cs \
+       gtk-gui/MonoDevelop.AddinAuthoring.SelectRepositoryDialog.cs \
+       gtk-gui/MonoDevelop.AddinAuthoring.TypeSelector.cs \
+       MonoDevelop.AddinAuthoring.NodeBuilders/AddinFolderNodeBuilder.cs \
+       MonoDevelop.AddinAuthoring.NodeBuilders/AddinHeaderNodeBuilder.cs \
+       MonoDevelop.AddinAuthoring.NodeBuilders/ExtensionPointsNodeBuilder.cs \
+       MonoDevelop.AddinAuthoring.NodeBuilders/ExtensionsNodeBuilder.cs \
+       
MonoDevelop.AddinAuthoring.NodeBuilders/ProjectFolderNodeBuilderExtension.cs \
+       MonoDevelop.AddinAuthoring/AddinAuthoringService.cs \
+       MonoDevelop.AddinAuthoring/AddinData.cs \
+       MonoDevelop.AddinAuthoring/AddinDescriptionView.cs \
+       MonoDevelop.AddinAuthoring/AddinDescriptionWidget.cs \
+       MonoDevelop.AddinAuthoring/AddinFeatureWidget.cs \
+       MonoDevelop.AddinAuthoring/AddinFileDescriptionTemplate.cs \
+       MonoDevelop.AddinAuthoring/AddinOptionPanelWidget.cs \
+       MonoDevelop.AddinAuthoring/AddinProjectExtension.cs \
+       MonoDevelop.AddinAuthoring/CellRendererExtension.cs \
+       MonoDevelop.AddinAuthoring/Commands.cs \
+       MonoDevelop.AddinAuthoring/ExtensionEditorWidget.cs \
+       MonoDevelop.AddinAuthoring/ExtensionPointsEditorWidget.cs \
+       MonoDevelop.AddinAuthoring/ExtensionSelectorDialog.cs \
+       MonoDevelop.AddinAuthoring/NewExtensionPointDialog.cs \
+       MonoDevelop.AddinAuthoring/NodeEditorDialog.cs \
+       MonoDevelop.AddinAuthoring/NodeEditorWidget.cs \
+       MonoDevelop.AddinAuthoring/NodeSetEditorDialog.cs \
+       MonoDevelop.AddinAuthoring/NodeSetEditorWidget.cs \
+       MonoDevelop.AddinAuthoring/NodeTypeEditorDialog.cs \
+       MonoDevelop.AddinAuthoring/RegistryExtensionNode.cs \
+       MonoDevelop.AddinAuthoring/RegistrySelector.cs \
+       MonoDevelop.AddinAuthoring/SelectNodeSetDialog.cs \
+       MonoDevelop.AddinAuthoring/SelectRepositoryDialog.cs \
+       MonoDevelop.AddinAuthoring/TypeSelector.cs 
+
+DATA_FILES = 
+
+RESOURCES =  \
+       extension-node-set.png \
+       extension-node-type.png \
+       extension-point.png \
+       flare.png \
+       gtk-gui/gui.stetic \
+       gtk-gui/objects.xml \
+       MonoDevelop.AddinAuthoring.addin.xml \
+       templates/AddinProject.xpt.xml 
+
+EXTRAS = \
+       monodevelop.addinauthoring.pc.in 
+
+REFERENCES =  \
+       System \
+       Mono.Posix \
+       System.Xml \
+       -pkg:monodevelop \
+       -pkg:mono-addins \
+       -pkg:mono-addins-setup \
+       -pkg:gtk-sharp-2.0
+
+DLL_REFERENCES = 
+
+CLEANFILES += $(LINUX_PKGCONFIG) 
+
+#Targets
+all-local: $(ASSEMBLY) $(LINUX_PKGCONFIG)  $(top_srcdir)/config.make
+
+$(MONODEVELOP_ADDINAUTHORING_PC): monodevelop.addinauthoring.pc
+       mkdir -p $(BUILD_DIR)
+       cp '$<' '$@'
+
+
+
+monodevelop.addinauthoring.pc: monodevelop.addinauthoring.pc.in 
$(top_srcdir)/config.make
+       sed -e "s,@prefix@,$(prefix)," -e "s,@PACKAGE@,$(PACKAGE)," < 
monodevelop.addinauthoring.pc.in > monodevelop.addinauthoring.pc
+
+
+$(build_xamlg_list): %.xaml.g.cs: %.xaml
+       xamlg '$<'
+
+$(build_resx_resources) : %.resources: %.resx
+       resgen2 '$<' '$@'
+
+LOCAL_PKGCONFIG=PKG_CONFIG_PATH=../../local-config:$$PKG_CONFIG_PATH
+
+$(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
+       $(LOCAL_PKGCONFIG) $(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) $(MONODEVELOP_ADDINAUTHORING_PC)
+       make pre-install-local-hook prefix=$(prefix)
+       mkdir -p $(DESTDIR)$(prefix)/lib/$(PACKAGE)
+       cp $(ASSEMBLY) $(ASSEMBLY_MDB) $(DESTDIR)$(prefix)/lib/$(PACKAGE)
+       mkdir -p $(DESTDIR)$(prefix)/lib/pkgconfig
+       test -z '$(MONODEVELOP_ADDINAUTHORING_PC)' || cp 
$(MONODEVELOP_ADDINAUTHORING_PC) $(DESTDIR)$(prefix)/lib/pkgconfig
+       make post-install-local-hook prefix=$(prefix)
+
+uninstall-local: $(ASSEMBLY) $(ASSEMBLY_MDB) $(MONODEVELOP_ADDINAUTHORING_PC)
+       make pre-uninstall-local-hook prefix=$(prefix)
+       rm -f $(DESTDIR)$(prefix)/lib/$(PACKAGE)/$(notdir $(ASSEMBLY))
+       test -z '$(ASSEMBLY_MDB)' || rm -f 
$(DESTDIR)$(prefix)/lib/$(PACKAGE)/$(notdir $(ASSEMBLY_MDB))
+       test -z '$(MONODEVELOP_ADDINAUTHORING_PC)' || rm -f 
$(DESTDIR)$(prefix)/lib/pkgconfig/$(notdir $(MONODEVELOP_ADDINAUTHORING_PC))
+       make post-uninstall-local-hook prefix=$(prefix)

Added: trunk/monodevelop/extras/MonoDevelop.AddinAuthoring/configure
===================================================================
--- trunk/monodevelop/extras/MonoDevelop.AddinAuthoring/configure       
2008-02-14 11:32:11 UTC (rev 95619)
+++ trunk/monodevelop/extras/MonoDevelop.AddinAuthoring/configure       
2008-02-14 11:35:02 UTC (rev 95620)
@@ -0,0 +1,109 @@
+#!/bin/bash
+VERSION=0.1
+PACKAGE=monodevelop_addinauthoring
+prefix=/usr/local
+config=DEBUG
+configurations=" RELEASE DEBUG"
+common_packages=" monodevelop;0.18 gtk-sharp-2.0;2.8.3 mono-addins-setup;0.3 
mono-addins;0.3"
+
+
+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/MonoDevelop.AddinAuthoring/configure
___________________________________________________________________
Name: svn:executable
   + *

Added: 
trunk/monodevelop/extras/MonoDevelop.AddinAuthoring/monodevelop.addinauthoring.pc.in
===================================================================
--- 
trunk/monodevelop/extras/MonoDevelop.AddinAuthoring/monodevelop.addinauthoring.pc.in
        2008-02-14 11:32:11 UTC (rev 95619)
+++ 
trunk/monodevelop/extras/MonoDevelop.AddinAuthoring/monodevelop.addinauthoring.pc.in
        2008-02-14 11:35:02 UTC (rev 95620)
@@ -0,0 +1,6 @@
+Name: MonoDevelop.AddinAuthoring
+Description: MonoDevelop.AddinAuthoring
+Version: 0.1
+
+Requires: 
+Libs: -r:@prefix@/lib/@PACKAGE@/MonoDevelop.AddinAuthoring.dll

Added: trunk/monodevelop/extras/MonoDevelop.AddinAuthoring/rules.make
===================================================================
--- trunk/monodevelop/extras/MonoDevelop.AddinAuthoring/rules.make      
2008-02-14 11:32:11 UTC (rev 95619)
+++ trunk/monodevelop/extras/MonoDevelop.AddinAuthoring/rules.make      
2008-02-14 11:35:02 UTC (rev 95620)
@@ -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: ; @:

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

Reply via email to