[Freeswitch-svn] [commit] r5017 - freeswitch/trunk/src/mod/languages/mod_mono

Freeswitch SVN anthm at freeswitch.org
Wed Apr 25 18:24:19 EDT 2007


Author: anthm
Date: Wed Apr 25 18:24:19 2007
New Revision: 5017

Modified:
   freeswitch/trunk/src/mod/languages/mod_mono/Makefile

Log:
a bit closer on getting mod_mono to build again

Modified: freeswitch/trunk/src/mod/languages/mod_mono/Makefile
==============================================================================
--- freeswitch/trunk/src/mod/languages/mod_mono/Makefile	(original)
+++ freeswitch/trunk/src/mod/languages/mod_mono/Makefile	Wed Apr 25 18:24:19 2007
@@ -1,17 +1,40 @@
 
-VERSION = mono-1.1.13.8
-TARBALL = mono-1.1.13.8.tar.gz
-GLIB_TARBALL = glib-2.12.3.tar.gz
-GETTEXT_TARBALL = gettext-0.15.tar.gz
-PKGCONFIG_TARBALL = pkg-config-0.21.tar.gz
+MONO = mono-1.1.13.8
+MONO_DIR = $(switch_srcdir)/libs/$(MONO)
+GLIB = glib-2.12.3
+GLIB_DIR = $(switch_srcdir)/libs/$(GLIB)
+GETTEXT = gettext-0.15
+GETTEXT_DIR = $(switch_srcdir)/libs/$(GETTEXT)
+PKGCONFIG = pkg-config-0.21
+PKGCONFIG_DIR = $(switch_srcdir)/libs/$(PKGCONFIG)
 
 LOCAL_CFLAGS=`$(PREFIX)/bin/pkg-config --cflags mono`
 LOCAL_LDFLAGS=`$(PREFIX)/bin/pkg-config --libs mono`
 include ../../../../build/modmake.rules
 
-local_depend:
-	MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) configure install $(GETTEXT_TARBALL) --prefix=$(PREFIX) --with-pic
-	MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) configure install $(PKGCONFIG_TARBALL) --prefix=$(PREFIX) --with-pic
-	export PKG_CONFIG=$(PREFIX)/bin/pkg-config; export MSGFMT=$(PREFIX)/bin/; MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) configure install $(GLIB_TARBALL) --prefix=$(PREFIX) --with-pic
-	export PATH=$(PATH):$(PREFIX)/bin/; MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) configure install $(TARBALL) --prefix=$(PREFIX) --with-pic --with-gc=boehm --with-preview=yes --without-sigaltstack
+DEFAULT_ARGS=--prefix=$(PREFIX) --with-pic
 
+local_depend: $(GETTEXT_DIR) $(PKGCONFIG_DIR) $(GLIB_DIR) $(MONO_DIR)
+
+$(GETTEXT_DIR):
+	$(GETLIB) $(GETTEXT).tar.gz
+	cd $(GETTEXT_DIR) && ./configure $(DEFAULT_ARGS) 
+	cd $(GETTEXT_DIR) && $(MAKE) install
+
+$(PKGCONFIG_DIR):
+	$(GETLIB) $(PKGCONFIG).tar.gz
+	cd $(PKGCONFIG_DIR) && ./configure $(DEFAULT_ARGS) 
+	cd $(PKGCONFIG_DIR) && $(MAKE) install
+
+$(GLIB_DIR):
+	$(GETLIB) $(GLIB).tar.gz
+	export PKG_CONFIG=$(PREFIX)/bin/pkg-config
+	export MSGFMT=$(PREFIX)/bin/
+	cd $(GLIB_DIR) && ./configure $(DEFAULT_ARGS) 
+	cd $(GLIB_DIR) && $(MAKE) install
+
+$(MONO_DIR):
+	$(GETLIB) $(MONO).tar.gz
+	export PATH=$(PATH):$(PREFIX)/bin/
+	cd $(MONO_DIR) && ./configure $(DEFAULT_ARGS) --with-pic --with-gc=boehm --with-preview=yes --without-sigaltstack 
+	cd $(MONO_DIR) && $(MAKE) install



More information about the Freeswitch-svn mailing list