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

theferret at users.sourceforge.net theferret at users.sourceforge.net
Sun Jun 6 20:55:28 CEST 2010


Revision: 10109
          http://gar.svn.sourceforge.net/gar/?rev=10109&view=rev
Author:   theferret
Date:     2010-06-06 18:55:28 +0000 (Sun, 06 Jun 2010)

Log Message:
-----------
TEMPLATES/createpkg: Added "fetch/garchive" capability

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

Modified: csw/mgar/pkg/TEMPLATES/createpkg/Makefile.lib
===================================================================
--- csw/mgar/pkg/TEMPLATES/createpkg/Makefile.lib	2010-06-06 18:07:28 UTC (rev 10108)
+++ csw/mgar/pkg/TEMPLATES/createpkg/Makefile.lib	2010-06-06 18:55:28 UTC (rev 10109)
@@ -32,8 +32,10 @@
 
 # Where do we keep local downloads of software src files
 ARCHIVEDIR ?= /home/src
-ARCHIVENAME=FillThisInHere.tar.foo
+ARCHIVENAME ?= FillThisInHere.tar.foo
 
+# Only use ONE here. The name is used for compate with 'gar'.
+MASTER_SITES ?= http://www.url.here/download
 
 all:	$(ARCH)-32 clean $(ARCH)-64 package
 
@@ -62,8 +64,24 @@
 	$(MAKE) -C $(SRCDIR) $@
 
 
+garchive:
+	@echo Call the fetch target instead: it does the same thing.
 
-package patch garchive:
+
+# Downloads the source code to the common ARCHIVEDIR
+fetch:	$(ARCHIVEDIR)/$(ARCHIVENAME)
+	@echo fetch done
+
+$(ARCHIVEDIR)/$(ARCHIVENAME):
+	wget -P $(ARCHIVEDIR) $(MASTER_SITES)/$(ARCHIVENAME)
+
+patch:
+	@echo patch: patching is handled automatically as part of the configure phase.
+
+
+
+
+package:
 	@echo make $@ not implemented yet
 	### potentially want to handle "merge" type stuff in 'package'
 	# we also want to handle multi-package thingies.


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