[csw-devel] SF.net SVN: gar:[10027] csw/mgar/pkg/xpm/trunk

theferret at users.sourceforge.net theferret at users.sourceforge.net
Fri May 28 00:26:45 CEST 2010


Revision: 10027
          http://gar.svn.sourceforge.net/gar/?rev=10027&view=rev
Author:   theferret
Date:     2010-05-27 22:26:45 +0000 (Thu, 27 May 2010)

Log Message:
-----------
xpm: adds for sparcv9 build

Modified Paths:
--------------
    csw/mgar/pkg/xpm/trunk/Makefile
    csw/mgar/pkg/xpm/trunk/README
    csw/mgar/pkg/xpm/trunk/prototype.sparc

Modified: csw/mgar/pkg/xpm/trunk/Makefile
===================================================================
--- csw/mgar/pkg/xpm/trunk/Makefile	2010-05-27 21:55:12 UTC (rev 10026)
+++ csw/mgar/pkg/xpm/trunk/Makefile	2010-05-27 22:26:45 UTC (rev 10027)
@@ -11,10 +11,14 @@
 CREATEPKG=createpkg -r `pwd`/build/*/cswstage
 
 
-BUILDDIR=build/*
+BUILDDIR=build/libXpm*
 
 
+## hax for sparcv9
+RAWLIB=libXpm.so.4.11.0
+XPM_PC=build/libXpm-3.5.8/cswstage/opt/csw/lib/pkgconfig/xpm.pc
 
+
 STDFILES=pkginfo copyright prototype
 FILES=
 
@@ -27,6 +31,21 @@
 	stagepkg  )
 
 
+sparcv9:
+	(cd $(BUILDDIR)/src ; \
+	gmake clean;  \
+	gmake CFLAGS='-xstrconst -fast -xarch=v9' \
+	  LDFLAGS='-R/opt/csw/lib/sparcv9 -L/opt/csw/lib/sparcv9'  ; \
+	  strip .libs/$(RAWLIB); \
+	  cp .libs/$(RAWLIB) ../cswstage ; cd .. ;\
+	  sed 's:libdir=.*:/opt/csw/lib/sparcv9:' xpm.pc>cswstage/xpm.pc.sparcv9 ; \
+	echo sparcv9 build done  )
+
+hack:
+	( cd $(BUILDDIR) ; \
+	  sed 's:libdir=.*:/opt/csw/lib/sparcv9:' xpm.pc>cswstage/xpm.pc.sparcv9 )
+
+	
 # dummy target for configure
 build/.config.done:
 	(cd $(BUILDDIR) ; \
@@ -41,7 +60,8 @@
 # I tried depending this on   $(BUILDDIR)/config.log  but that didnt stick
 configure:	build/.config.done
 
-package:	$(STDFILE) $(FILES) build
+package:	$(STDFILE) $(FILES)
+	@echo Building package for `uname -p`
 	$(CREATEPKG)
 
 

Modified: csw/mgar/pkg/xpm/trunk/README
===================================================================
--- csw/mgar/pkg/xpm/trunk/README	2010-05-27 21:55:12 UTC (rev 10026)
+++ csw/mgar/pkg/xpm/trunk/README	2010-05-27 22:26:45 UTC (rev 10027)
@@ -1,13 +1,15 @@
-This is the first time Phil is doing an actual "needs compiling"
-package in svn.
+Current build methodology for libXpm is as follows:
 
-Current build methodology theory is as follows:
-
 mkdir build
 (extract source tarfile under there)
-(come back to this location)
-make
+come back to this location)
+ make
+ make package
 
 and it should just All Magically Work.
+except for sparc, where you have to do
 
-But this is only theory. i have to test it now :)
+make
+make sparcv9
+make package
+

Modified: csw/mgar/pkg/xpm/trunk/prototype.sparc
===================================================================
--- csw/mgar/pkg/xpm/trunk/prototype.sparc	2010-05-27 21:55:12 UTC (rev 10026)
+++ csw/mgar/pkg/xpm/trunk/prototype.sparc	2010-05-27 22:26:45 UTC (rev 10027)
@@ -18,8 +18,8 @@
 s none /opt/csw/lib/libXpm.so=libXpm.so.4.11.0
 d none /opt/csw/lib/pkgconfig 0755 root bin
 f none /opt/csw/lib/pkgconfig/xpm.pc 0644 root bin
-f none /opt/csw/lib/sparcv9/libXpm.so.4.11.0 0755 root bin
+f none /opt/csw/lib/sparcv9/libXpm.so.4.11.0=libXpm.so.4.11.0 0755 root bin
 s none /opt/csw/lib/sparcv9/libXpm.so.4=libXpm.so.4.11.0
 s none /opt/csw/lib/sparcv9/libXpm.so=libXpm.so.4.11.0
 d none /opt/csw/lib/sparcv9/pkgconfig 0755 root bin
-f none /opt/csw/lib/sparcv9/pkgconfig/xpm.pc 0644 root bin
+f none /opt/csw/lib/sparcv9/pkgconfig/xpm.pc=xpm.pc.sparcv9 0644 root bin


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