Changeset 4936
- Timestamp:
- 05/18/09 17:41:02 (4 years ago)
- Files:
-
- 1 modified
-
csw/mgar/gar/v2/gar.pkg.mk (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
csw/mgar/gar/v2/gar.pkg.mk
r4932 r4936 26 26 # If no explicit gspec-files have been defined the default name for the package is CSW$(GARNAME). 27 27 # The whole processing is done from _PKG_SPECS, which includes all packages to be build. 28 29 # SRCPACKAGE_BASE is the name of the package containing the sourcefiles for all packages 30 # generated from this GAR recipe. It defaults to the first defined package name or gspec. 31 # SRCPACKAGE is the name of the package containing the sources 32 28 33 ifeq ($(origin PACKAGES), undefined) 29 34 PACKAGES = $(if $(filter %.gspec,$(DISTFILES)),,CSW$(GARNAME)) 30 SPKG_SPECS ?= $(basename $(filter %.gspec,$(DISTFILES))) $(PACKAGES) 35 SRCPACKAGE_BASE = $(firstword $(basename $(filter %.gspec,$(DISTFILES))) $(PACKAGES)) 36 SRCPACKAGE ?= $(SRCPACKAGE_BASE)-src 37 SPKG_SPECS ?= $(basename $(filter %.gspec,$(DISTFILES))) $(PACKAGES) $(SRCPACKAGE) 31 38 else 32 SPKG_SPECS ?= $(sort $(basename $(filter %.gspec,$(DISTFILES))) $(PACKAGES)) 33 endif 39 SRCPACKAGE_BASE = $(firstword $(PACKAGES)) 40 SRCPACKAGE ?= $(SRCPACKAGE_BASE)-src 41 SPKG_SPECS ?= $(sort $(basename $(filter %.gspec,$(DISTFILES))) $(PACKAGES) $(SRCPACKAGE)) 42 endif 43 44 # Automatic definitions for source package 45 CATALOGNAME_$(SRCPACKAGE) ?= $(patsubst CSW%,%,$(SRCPACKAGE_BASE))_src 46 SPKG_DESC_$(SRCPACKAGE) ?= $(SPKG_DESC_$(SRCPACKAGE_BASE)) Source Package 47 ARCHALL_$(SRCPACKAGE) ?= 1 48 # XXX: Use Repository Root instead of fixed URL as base 49 GARSYSTEMVERSION ?= $(shell $(SVN) propget svn:externals $(CURDIR) | perl -ane 'if($$F[0] eq "gar") { print ($$F[1]=~m(https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/(.*))),"\n";}') 50 GARPKG_v1 = CSWgar-v1 51 GARPKG_v2 = CSWgar-v2 52 REQUIRED_PKGS_$(SRCPACKAGE) ?= $(or $(GARPKG_$(GARSYSTEMVERSION)),$(error GAR version $(GARSYSTEMVERSION) unknown)) 53 54 _PKG_SPECS = $(filter-out $(NOPACKAGE),$(SPKG_SPECS)) 34 55 35 56 # The is the name of the package containing the sourcefiles for all packages generated from this GAR recipe. … … 485 506 merge-src: _SRCDIR=$(PKGROOT)$(sourcedir)/$(call catalogname,$(SRCPACKAGE_BASE)) 486 507 merge-src: fetch 487 @$(_DBG)mkdir -p $(_SRCDIR) 488 $(_DBG)(cd $(DOWNLOADDIR); pax -r -w -v $(foreach F,$(DISTFILES) $(PATCHFILES),$F) $(_SRCDIR)) 508 $(_DBG)mkdir -p $(_SRCDIR)/files 509 $(_DBG)(cd $(DOWNLOADDIR); pax -rH -w -v $(foreach F,$(DISTFILES) $(PATCHFILES),$F) $(_SRCDIR)/files) 510 $(_DBG)(cd $(CURDIR); pax -rH -w -v Makefile checksums $(_SRCDIR)) 511 $(_DBG)ln -s ../gar/$(GARSYSTEMVERSION) $(_SRCDIR)/gar 489 512 @$(MAKECOOKIE) 490 513 … … 492 515 @rm -f $(COOKIEDIR)/merge-src 493 516 @$(DONADA) 517 494 518 495 519 # package - Use the mkpackage utility to create Solaris packages
