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

lblume at users.sourceforge.net lblume at users.sourceforge.net
Sun Oct 6 18:34:28 CEST 2013


Revision: 22137
          http://gar.svn.sourceforge.net/gar/?rev=22137&view=rev
Author:   lblume
Date:     2013-10-06 16:34:28 +0000 (Sun, 06 Oct 2013)
Log Message:
-----------
tcl85/trunk: Remove Studio-specific compiler options from script

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

Modified: csw/mgar/pkg/tcl85/trunk/Makefile
===================================================================
--- csw/mgar/pkg/tcl85/trunk/Makefile	2013-10-06 15:25:23 UTC (rev 22136)
+++ csw/mgar/pkg/tcl85/trunk/Makefile	2013-10-06 16:34:28 UTC (rev 22137)
@@ -105,7 +105,19 @@
 post-install-modulated:
 	@echo Creating tclsh link
 	ln -s $(REN_TCLSH) $(DESTDIR)$(bindir)/tclsh
-	perl -pi -e "s|/usr/local|$(prefix)|g" $(DESTDIR)$(libdir)/tclConfig.sh
-	perl -pi -e "s|/usr/local|$(prefix)|g" $(DESTDIR)$(mandir)/man1/tclsh.1
+	# Remove wrong path
+	perl -pi -e "s|/usr/local|$(prefix)|g" \
+		$(DESTDIR)$(libdir)/tclConfig.sh
+	perl -pi -e "s|/usr/local|$(prefix)|g" \
+		$(DESTDIR)$(mandir)/man1/tclsh.1
+	# Remove Studio-specific arch references
+	gsed -i \
+		-e '/^[^#]/s/-xO[0-5][^ ]* //' \
+		-e '/^[^#]/s/-xarch=[^ ]* //' \
+		-e '/^[^#]/s/-xchip=[^ ]* //' \
+		-e '/^[^#]/s/-norunpath[^ ]* //' \
+		-e '/^[^#]/s/-lCrun[^ ]* //' \
+		-e '/^[^#]/s/-lCstd[^ ]* //' \
+		$(DESTDIR)$(libdir)/tclConfig.sh
 	@$(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