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

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Mon Nov 23 23:01:34 CET 2009


Revision: 7396
          http://gar.svn.sourceforge.net/gar/?rev=7396&view=rev
Author:   wahwah
Date:     2009-11-23 22:01:34 +0000 (Mon, 23 Nov 2009)

Log Message:
-----------
nspr: Adding /opt/csw/lib/nspr/64 --> {amd64,sparcv9} symlinks

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

Modified: csw/mgar/pkg/nspr/trunk/Makefile
===================================================================
--- csw/mgar/pkg/nspr/trunk/Makefile	2009-11-23 18:38:49 UTC (rev 7395)
+++ csw/mgar/pkg/nspr/trunk/Makefile	2009-11-23 22:01:34 UTC (rev 7396)
@@ -60,12 +60,6 @@
 CONFIGURE_ARGS_DBG += --enable-tests
 CONFIGURE_ARGS += $(CONFIGURE_ARGS_$(GARFLAVOR))
 
-# These options I'm unsure about, are they really needed?
-# EXTRA_LDFLAGS = -R'\$\$ORIGIN:\$\$ORIGIN/..' -R/opt/csw/lib
-# prefix = /opt/csw/mozilla/nspr
-# CONFIGURE_ARGS += --with-dist-prefix=$(DESTDIR)/opt/csw/mozilla/nspr
-# CONFIGURE_ARGS += --with-dist-bindir=$(DESTDIR)/opt/csw/mozilla/nspr/lib
-
 BUILD64 = 1
 
 include gar/category.mk
@@ -84,7 +78,7 @@
 
 install-nspr:
 	(cd $(WORKSRC)/build && $(INSTALL_ENV) gmake install DESTDIR=$(DESTDIR))
-	(cd $(DESTDIR)/opt/csw/lib/nspr \
+	(cd $(DESTDIR)$(libdir) \
 		&& for file in *.so; do \
 			mv $${file} $${file}.$(MIN_VERSION); \
 			ln -s $${file}.$(MIN_VERSION) $${file}; \
@@ -95,6 +89,16 @@
 	ginstall -m 755 -d $(DESTDIR)$(prefix)/lib/pkgconfig
 	ginstall -m 644 $(WORKSRC)/build/config/nspr.pc \
 		$(DESTDIR)$(prefix)/lib/pkgconfig
-	rm $(DESTDIR)$(bindir)/prerr.properties
-	rm $(DESTDIR)$(bindir)/nspr.pc
+	rm -f $(DESTDIR)$(bindir)/prerr.properties
+	rm -f $(DESTDIR)$(bindir)/nspr.pc
 	@$(MAKECOOKIE)
+
+# Create symlinks allowing to use -L/opt/csw/lib/nspr/64 for 64-bit
+# architectures.
+post-merge:
+	if [ "$(GARCH)" = sparc ]; then \
+		gln -sf sparcv9 $(PKGROOT)$(libdir)/64; \
+	elif [ "$(GARCH)" = i386 ]; then \
+		gln -sf amd64 $(PKGROOT)$(libdir)/64; \
+	fi
+	@$(MAKECOOKIE)


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