[csw-devel] SF.net SVN: gar:[7445] csw/mgar/pkg/nspr/trunk/Makefile

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Thu Nov 26 01:37:10 CET 2009


Revision: 7445
          http://gar.svn.sourceforge.net/gar/?rev=7445&view=rev
Author:   wahwah
Date:     2009-11-26 00:37:10 +0000 (Thu, 26 Nov 2009)

Log Message:
-----------
nspr: Tried tests, they fail.

Modified Paths:
--------------
    csw/mgar/pkg/nspr/trunk/Makefile

Property Changed:
----------------
    csw/mgar/pkg/nspr/trunk/Makefile

Modified: csw/mgar/pkg/nspr/trunk/Makefile
===================================================================
--- csw/mgar/pkg/nspr/trunk/Makefile	2009-11-25 23:09:26 UTC (rev 7444)
+++ csw/mgar/pkg/nspr/trunk/Makefile	2009-11-26 00:37:10 UTC (rev 7445)
@@ -1,3 +1,11 @@
+# Copyright 2009 OpenCSW
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+# Based on the following resources:
+# - http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/nspr/nspr-4.8.ebuild?view=markup
+# - https://developer.mozilla.org/En/NSPR_build_instructions
+
 GARNAME = nspr
 MAJOR_VERSION = 4
 MIN_VERSION = 8
@@ -34,6 +42,8 @@
 
 CONFIGURE_SCRIPTS = nspr
 BUILD_SCRIPTS = nspr
+# TEST_SCRIPTS = nspr
+# Some tests are failing
 TEST_SCRIPTS =
 INSTALL_SCRIPTS = nspr
 
@@ -46,12 +56,10 @@
 includedir = $(prefix)/include/nspr
 
 CONFIGURE_ARGS  = $(DIRPATHS)
-CONFIGURE_ARGS += --enable-ipv6
 CONFIGURE_ARGS_isa-sparcv9 = --enable-64bit
 CONFIGURE_ARGS_isa-amd64 = --enable-64bit
 CONFIGURE_ARGS += $(CONFIGURE_ARGS_$(MODULATION))
-# http://docs.sun.com/app/docs/doc/819-5265/bjaur?a=view
-CONFIGURE_ARGS_OPT  = --enable-optimize="-xO3 -xlibmil"
+CONFIGURE_ARGS_OPT  = --enable-optimize="-xO3"
 CONFIGURE_ARGS_OPT += --disable-debug
 CONFIGURE_ARGS_OPT += --enable-strip
 CONFIGURE_ARGS_DBG  = --enable-debug
@@ -72,15 +80,21 @@
 
 build-nspr:
 	(cd $(WORKSRC)/build && $(BUILD_ENV) gmake)
+	(cd $(WORKSRC)/build/pr/tests && $(BUILD_ENV) gmake)
 	@$(MAKECOOKIE)
 
+test-nspr: test-accept test-runtests
+
+test-accept:
+	(cd $(WORKSRC)/build/pr/tests && DYLD_LIBRARY_PATH=../../dist/lib ./accept)
+	@$(MAKECOOKIE)
+
+test-runtests:
+	(cd $(WORKSRC)/build/pr/tests && DYLD_LIBRARY_PATH=../../dist/lib ../../../mozilla/nsprpub/pr/tests/runtests.sh)
+	@$(MAKECOOKIE)
+
 install-nspr:
 	(cd $(WORKSRC)/build && $(INSTALL_ENV) gmake install DESTDIR=$(DESTDIR))
-	(cd $(DESTDIR)$(libdir) \
-		&& for file in *.so; do \
-			mv $${file} $${file}.$(MIN_VERSION); \
-			ln -s $${file}.$(MIN_VERSION) $${file}; \
-		done)
 	ginstall -m 755 -d $(DESTDIR)$(bindir)
 	ginstall -m 755 $(WORKSRC)/build/config/nspr-config \
 		$(DESTDIR)$(bindir)


Property changes on: csw/mgar/pkg/nspr/trunk/Makefile
___________________________________________________________________
Added: svn:keywords
   + Id


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