[csw-devel] SF.net SVN: gar:[10346] csw/mgar/pkg/TEMPLATES/createpkg

theferret at users.sourceforge.net theferret at users.sourceforge.net
Sat Jun 26 22:51:06 CEST 2010


Revision: 10346
          http://gar.svn.sourceforge.net/gar/?rev=10346&view=rev
Author:   theferret
Date:     2010-06-26 20:51:05 +0000 (Sat, 26 Jun 2010)

Log Message:
-----------
TEMPLATES/createpkg: minor tweaks

Modified Paths:
--------------
    csw/mgar/pkg/TEMPLATES/createpkg/Makefile.lib
    csw/mgar/pkg/TEMPLATES/createpkg/Makefile.lib32

Removed Paths:
-------------
    csw/mgar/pkg/TEMPLATES/createpkg/Makefile.sparcv9

Modified: csw/mgar/pkg/TEMPLATES/createpkg/Makefile.lib
===================================================================
--- csw/mgar/pkg/TEMPLATES/createpkg/Makefile.lib	2010-06-26 19:58:55 UTC (rev 10345)
+++ csw/mgar/pkg/TEMPLATES/createpkg/Makefile.lib	2010-06-26 20:51:05 UTC (rev 10346)
@@ -4,7 +4,7 @@
 
 
 # If you do NOT want to build 64bit libs, remove the $(ARCH)-64 from
-# the "all:" target.
+# the "all:" target. Or just use Makefile.lib32
 
 # If you DO want to, then leave it in, and also customize your
 #  the build/.stage-$(ARCH)-64.done    target(s),

Modified: csw/mgar/pkg/TEMPLATES/createpkg/Makefile.lib32
===================================================================
--- csw/mgar/pkg/TEMPLATES/createpkg/Makefile.lib32	2010-06-26 19:58:55 UTC (rev 10345)
+++ csw/mgar/pkg/TEMPLATES/createpkg/Makefile.lib32	2010-06-26 20:51:05 UTC (rev 10346)
@@ -10,11 +10,11 @@
 
 # Where do we keep local downloads of software src files
 ARCHIVEDIR ?= /home/src
-ARCHIVENAME ?= firefox-3.6.3.source.tar.bz2
+ARCHIVENAME ?= FooSoft.1.2.3.tar.gz
 EXTRACTPROG ?= /usr/sfw/bin/gtar jfx
 
 # Only use ONE here. The name is used for compat with 'gar'.
-MASTER_SITES ?= http://releases.mozilla.org/pub/mozilla.org/firefox/releases/3.6.3/source/
+MASTER_SITES ?= http://xorg.freedesktop.org/releases/X11R7.5/src/lib
 
 ARCH := $(shell /bin/uname -p)
 

Deleted: csw/mgar/pkg/TEMPLATES/createpkg/Makefile.sparcv9
===================================================================
--- csw/mgar/pkg/TEMPLATES/createpkg/Makefile.sparcv9	2010-06-26 19:58:55 UTC (rev 10345)
+++ csw/mgar/pkg/TEMPLATES/createpkg/Makefile.sparcv9	2010-06-26 20:51:05 UTC (rev 10346)
@@ -1,90 +0,0 @@
-#This Makefile originally generated from a template under 
-# pkg/TEMPLATES/createpkg
-# You will most likely have to use GNU make to use it.
-# This is one specifically hacked to make building sparcv9 packages
-# easier.
-#
-# Steps to use:
-# 
-# 1. put your normal prototype  as prototype.i386
-# 2. copy to prototype.sparc and edit as appropriate
-# 3. search for "XXX" and replace with appropriate string
-#
-# 4. build your package with:
-#    "make", "make sparcv9", "make package"
-
-
-#Uncomment one of these definitions. The -b invokation,
-# is suitable for use with small packages, where you want to have a few files
-# in your top level src directory. It is also suitable for
-# "relocateable" packages. see the createpkg docs for more details.
-#CREATEPKG=createpkg -b `pwd`
-CREATEPKG=createpkg -r `pwd`/build/*/cswstage
-
-## hax for sparcv9
-RAWLIB=libXXX.so.#.#.#
-
-
-BUILDDIR=build/*
-
-
-
-STDFILES=pkginfo copyright prototype
-FILES=
-
-all:	build
-
-
-build:	build/.config.done
-	(cd $(BUILDDIR) ; \
-	$(MAKE) ; \
-	stagepkg  )
-
-
-# dummy target for configure
-build/.config.done:
-	@echo Configuring with:
-	@echo CC=$(CC) $(CFLAGS)
-	@echo CXX=$(CXX) $(CXXFLAGS)
-	(cd $(BUILDDIR) ; \
-	test -f ../../patchfile.preconf && \
-		gpatch -p0 <../../patchfile.preconf ; \
-	./configure --prefix=/opt/csw --disable-static ; \
-	if test -f ../../patchfile.postconf ; then \
-                 gpatch -p0 <../../patchfile.postconf ; fi)
-	touch build/.config.done
-
-
-# I tried depending this on   $(BUILDDIR)/config.log  but that didnt stick
-configure:	build/.config.done
-
-
-# Note: If you decide to do a full re ./configure, you may have to do
-# PKG_CONFIG_PATH=/opt/csw/lib/sparcv9/pkgconfig , particularly if you
-# use glib. because that changes the #include paths as well !!
-#
-sparcv9:
-	(cd $(BUILDDIR)/src ; \
-	gmake clean;  \
-	LD_OPTIONS="" 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:' XXX.pc>cswstage/XXX.pc.sparcv9 ; \
-	echo sparcv9 build done  )
-
-
-package:	$(STDFILE) $(FILES)
-	$(CREATEPKG)
-
-
-
-pkgclean:
-	rm -f *.pkg.gz package
-
-clean:	pkgclean
-	cd $(BUILDDIR) && make clean
-
-reallyclean:	clean
-	rm -f $BUILDDIR/config.log $BUILDDIR/config.cache $BUILDDIR/config.status
-	rm -f build/.config.done	


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