[csw-devel] SF.net SVN: gar:[17332] csw/mgar/pkg/spidermonkey/trunk

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Thu Mar 8 10:28:19 CET 2012


Revision: 17332
          http://gar.svn.sourceforge.net/gar/?rev=17332&view=rev
Author:   wahwah
Date:     2012-03-08 09:28:19 +0000 (Thu, 08 Mar 2012)
Log Message:
-----------
work on version 185 in progress

Modified Paths:
--------------
    csw/mgar/pkg/spidermonkey/trunk/Makefile
    csw/mgar/pkg/spidermonkey/trunk/checksums

Modified: csw/mgar/pkg/spidermonkey/trunk/Makefile
===================================================================
--- csw/mgar/pkg/spidermonkey/trunk/Makefile	2012-03-08 07:29:16 UTC (rev 17331)
+++ csw/mgar/pkg/spidermonkey/trunk/Makefile	2012-03-08 09:28:19 UTC (rev 17332)
@@ -1,5 +1,7 @@
+# $Id$
+
 NAME = spidermonkey
-VERSION = 1.7.0
+VERSION = 1.0.0
 CATEGORIES = lib
 GARTYPE = v2
 
@@ -10,35 +12,42 @@
 
 VENDOR_URL   = http://www.mozilla.org/js/spidermonkey/
 MASTER_SITES = http://ftp.mozilla.org/pub/mozilla.org/js/
-DISTFILES    = js-$(VERSION).tar.gz
-UFILES_REGEX = js-(\d+(?:\.\d+)*).tar.gz
+DISTFILES    = js185-$(VERSION).tar.gz
 
 # the sun5.8 x86 config file is missing so
 # we are using our own
 #DISTFILES += SunOS5.8_i86pc.mk
 
-DISTNAME = js
+PACKAGING_PLATFORMS = solaris10-sparc solaris10-i386
+prefix = $(BUILD_PREFIX)/gxx
 
-# we find the os string used by the makefile by using
-# the same code (from config.mk)
-OS_ARCH := $(subst /,_,$(shell uname -s | sed /\ /s//_/))
-# Attempt to differentiate between SunOS 5.4 and x86 5.4
-OS_CPUARCH := $(shell uname -m)
-ifeq ($(OS_CPUARCH),i86pc)
-OS_RELEASE := $(shell uname -r)_$(OS_CPUARCH)
-else
-OS_RELEASE := $(shell uname -r)
-endif
-OS_CONFIG := $(OS_ARCH)$(OS_OBJTYPE)$(OS_RELEASE)
+DISTNAME = js-1.8.5
 
+# # we find the os string used by the makefile by using
+# # the same code (from config.mk)
+# OS_ARCH := $(subst /,_,$(shell uname -s | sed /\ /s//_/))
+# # Attempt to differentiate between SunOS 5.4 and x86 5.4
+# OS_CPUARCH := $(shell uname -m)
+# ifeq ($(OS_CPUARCH),i86pc)
+# OS_RELEASE := $(shell uname -r)_$(OS_CPUARCH)
+# else
+# OS_RELEASE := $(shell uname -r)
+# endif
+# OS_CONFIG := $(OS_ARCH)$(OS_OBJTYPE)$(OS_RELEASE)
+
 CONFIGURE_ARGS = $(DIRPATHS)
 
-CONFIGURE_SCRIPTS = 
+CONFIGURE_SCRIPTS = custom
 BUILD_SCRIPTS = custom
 TEST_SCRIPTS = 
 INSTALL_SCRIPTS = custom
 
+GARCOMPILER = GNU
 
+BUILD_DEP_PKGS = CSWautoconf2-13
+BUILD_DEP_PKGS += CSWnspr-dev
+BUILD_DEP_PKGS += CSWgcc4core
+BUILD_DEP_PKGS += CSWgcc4g++
 
 include gar/category.mk
 
@@ -47,19 +56,37 @@
 	# it seems to be used to define special debug functions,
 	# for developper only I suppose.
 	# we just change it by echo to avoid error messages
-	perl -pi -e 's/whoami/echo/g' $(WORKSRC)/src/config.mk
+	# perl -pi -e 's/whoami/echo/g' $(WORKSRC)/src/config.mk
 
-pre-build:
+pre-configure-modulated:
+	(cd $(WORKSRC)/js/src && autoconf-2.13)
+	@$(MAKECOOKIE)
+
+configure-custom:
+	(cd $(WORKSRC)/js && mkdir -p objdir && cd objdir && \
+	CFLAGS="-DJS_C_STRINGS_ARE_UTF8" \
+	       CXXFLAGS="-fshort-enums -DJS_C_STRINGS_ARE_UTF8" \
+	       CXX=/opt/csw/bin/g++ CC=/opt/csw/bin/gcc \
+	       ../src/configure \
+	       --disable-pedantic \
+	       --with-nspr-prefix=/opt/csw \
+	       --prefix=/opt/csw/gxx \
+	       --with-system-nspr)
+	@$(MAKECOOKIE)
+
+disabled-pre-build:
 	# if we are on x86, we install our own config file
 	# and remove the lock_SunOS.s cause the makefile
 	# always tries to compile it (why so ?)
-	( if [ "$(OS_CPUARCH)" = "i86pc" ]; then \
-		cp $(WORKDIR)/SunOS5.8_i86pc.mk $(WORKSRC)/src/config; \
-		rm -f $(WORKSRC)/src/lock_SunOS.s; \
-	fi )
+	# ( if [ "$(OS_CPUARCH)" = "i86pc" ]; then \
+	# 	cp $(WORKDIR)/SunOS5.8_i86pc.mk $(WORKSRC)/src/config; \
+	# 	rm -f $(WORKSRC)/src/lock_SunOS.s; \
+	# fi )
 
 build-custom:
-	cd $(WORKSRC)/src && BUILD_OPT=1 $(MAKE) -f Makefile.ref
+	# cd $(WORKSRC)/js/src && DISABLE_JIT=1 BUILD_OPT=1 $(MAKE) -f Makefile.ref
+	cd $(WORKSRC)/js/objdir && $(MAKE)
+	@$(MAKECOOKIE)
 
 install-custom:
 	ginstall -d $(DESTDIR)$(includedir)

Modified: csw/mgar/pkg/spidermonkey/trunk/checksums
===================================================================
--- csw/mgar/pkg/spidermonkey/trunk/checksums	2012-03-08 07:29:16 UTC (rev 17331)
+++ csw/mgar/pkg/spidermonkey/trunk/checksums	2012-03-08 09:28:19 UTC (rev 17332)
@@ -1 +1 @@
-5571134c3863686b623ebe4e6b1f6fe6  js-1.7.0.tar.gz
+a4574365938222adca0a6bd33329cb32  js185-1.0.0.tar.gz

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



More information about the devel mailing list