• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/ksh-23/ksh/src/cmd/INIT/

Lines Matching defs:package

2  * source and binary package support
4 * @(#)package.mk (AT&T Research) 2012-02-14
8 * cd $INSTALLROOT/lib/package
13 * name package description file or component
32 * :COVERS: package ...
33 * :REQURES: package ...
50 * package base version (overrides current date)
53 * package delta release (overrides current date)
65 * don't strip non-lcl binary package members
74 * NOTE: the Makerules.mk :PACKAGE: operator defers to :package: when
112 package.notice = ------------ NOTICE -- LICENSED SOFTWARE -- SEE README FOR DETAILS ------------
114 package.readme = $(@.package.readme.)
116 .package.readme. :
117 This is a package root directory $PACKAGEROOT. Source and binary
120 bin/package
124 INSTALLROOT=$PACKAGEROOT/arch/`bin/package`
128 bin/package help
133 Each package is covered by one of the license files
137 where <license> is the license type for the package. At the top
141 bin/package license [<package>]
145 license file(s)$(notice:?, this README file, and the empty file$$("\n")$$(package.notice)?.?)
147 .package.licenses. : .FUNCTION
173 T := $(.FIND. lib/package .lic $(F):P=W,query=type)
189 .package.glob. : .FUNCTION
208 P += $(I)/$(.package.glob. $(S.$(I)))
213 .MAKEINIT : .package.init
215 .package.init : .MAKE .VIRTUAL .FORCE
231 PACKAGELIB = lib/package
237 package.omit = -|*/$(init)
238 package.glob.all = $(INSTALLROOT)/src/*/*/($(MAKEFILES:/:/|/G))
239 package.all = $(package.glob.all:P=G:W=O=$(?$(name):A=.VIRTUAL):N!=$(package.omit):T=F:$(PACKAGEVIEW:C,.*,C;^&/;;,:/ /:/G):U)
240 package.glob.pkg = $(.package.glob. $(~$(name):P=U):C%.*%$(INSTALLROOT)/src/*/&/($(MAKEFILES:/:/|/G))%) $(~$(name):P=U:N=$(name):?$$(INSTALLROOT)/src/$$(name)/($$(MAKEFILES:/:/|/G))??)
241 package.pkg = $(package.glob.pkg:P=G:D:N!=$(package.omit):T=F:$(PACKAGEVIEW:C,.*,C;^&/;;,:/ /:/G):U)
242 package.closure = $(closure:?$$(package.all)?$$(package.pkg)?)
244 package.init = $(.package.glob. $("$(init)$(name)":P=U):C%.*%$(INSTALLROOT)/src/*/&/($(MAKEFILES:/:/|/G))%:P=G:T=F:D::B)
245 package.ini = ignore mamprobe manmake package silent
246 package.src.pat = $(PACKAGESRC)/($(name).(ini|pkg))
247 package.src = $(package.src.pat:P=G) $(.package.licenses. --save $(name))
248 package.bin = $(PACKAGEBIN)/$(name).ini
250 package.mam = --never --force --mam=static --corrupt=accept --clobber --compare --link='lib*.a*' CC=$(CC.DIALECT:N=C++:?CC?cc?) package.license.class=$(license:Q) $(=) 'dontcare test' install test
270 package.requires = 0
272 ":package:" : .MAKE .OPERATOR
276 if ! package.requires
281 package.omit = -
282 package.src += $(package.ini:C,^,$(PACKAGEROOT)/bin/,) $(PACKAGESRC)/package.mk
284 $(P) : $(package.init)
295 LICENSEFILEDEFAULT := $(.package.licenses. $(name):@/ /:/G)
302 package.dir += $(I:V)
309 $(P).README := This is the $(P) package.
314 package.auxiliary.$(style) += $(>:N=/*:T=F) $(>:N!=/*:C%^%$(INSTALLROOT)/%:T=F)
317 if ! package.requires
341 error $(--exec:?3?1?) $(I): unknown package $(I)
347 if ! package.requires
352 if ! package.requires
357 if ! package.requires
362 if ! package.requires
367 if ! package.requires
372 if ! package.requires
399 if ! package.requires && ! license
404 if ! package.requires
405 package.omit := $(package.omit)|$(>:C,^,*/,:/ /|/G)
409 if ! package.requires
414 if ! package.requires
424 package.omit = -
431 error 1 $(I): package should be written before $(P)
433 let package.requires = package.requires + 1
435 let package.requires = package.requires - 1
437 error 1 $(I): package not found
446 if ! package.requires
525 BINPACKAGE := $(PATH:/:/ /G:X=package:T=F:O=1)
540 error 3 $(style): source package style not supported yet
566 package.ini := $(package.ini)
567 package.src.pat := $(package.src.pat)
568 package.src := $(package.src)
569 package.bin := $(package.bin)
608 HOSTTYPE := $$(shell bin/package)
612 PACKAGEROOT= CYGWIN="$$CYGWIN ntsec binmode" bin/package make $(export.$(style))
619 $(readme.$(style):@?$$(readme.$$(style))$$("\n\n")??)To build binaries from source into the ./arch/`bin/package` tree run:
627 The bin/package command provides a command line interface for all package
630 package write cyg base source version=$(version.original) $(name.original)
631 package write cyg base binary version=$(version.original) $(name.original)
633 using the $(org)-base package. To download and install the latest
634 $(org)-base source package in /opt/$(org) run:
638 package authorize "NAME" password "PASSWORD" setup flat source $("\\")
641 package make
646 /opt/$(org) then drop "flat" and export /opt/$(org)/arch/`package`/bin in PATH
650 package setup
651 package make
653 To download and install the latest $(org)-base binary package in
654 /opt/$(org) change "source" to "binary" and omit "package make".
664 echo ";;;$(BINPACKAGE);bin/package"
694 $(package.src:U:T=F:/.*/echo ";;;&"$("\n")/)
696 set -- $(package.closure)
709 $(MAKE) $(package.mam) $(export.$(style):Q) > $tmp/$m.mam
729 $(MAKE) $(package.mam) $(export.$(style):Q) > $tmp/$m.mam
733 $(MAKE) --noexec $(-) $(=) recurse list.package.$(type) package.license.class=$(license:Q)
736 set -- $(package.dir:P=G)
744 $(package.readme)
749 [[ '$(notice)' ]] && echo ";;;$tmp/TAIL;$(package.notice)"
768 $(package.src:U:T=F:/.*/echo ";;;&"$("\n")/)
769 set -- $(package.closure)
772 $(MAKE) --noexec $(-) $(=) .FILES.+=Mamfile recurse list.package.local
774 set -- $(package.dir:P=G)
836 $(package.src:U:T=F:C%^$(PACKAGEROOT)/%%:C%.*%echo ";;;$(PACKAGEROOT)/&;&"$("\n")%)
872 then echo "This package is a superset of the following package$(~covers:O=2:?s??): $(~covers); you won't need $(~covers:O=2:?these?this?) if you download $(name)."
875 then echo 'It requires the following package$(~requires:O=2:?s??): $(~requires).'
878 package help source
879 package release $(name)
884 echo '.xx title="$(name) package"'
885 echo '.xx meta.description="$(name) package"'
886 echo '.xx meta.keywords="software, package"'
889 echo '$(name) package'
890 echo '.H 1 "$(name) package"'
892 set -- $(package.closure:C,.*,$(INSTALLROOT)/&/PROMO.mm,:T=F:D::B)
897 set -- $(package.closure:B)
899 then echo 'Components in this package:'
917 then echo "This package is a superset of the following package$(~covers:O=2:?s??): $(~covers); you won't need $(~covers:O=2:?these?this?) if you download $(name)."
920 then echo 'It requires the following package$(~requires:O=2:?s??): $(~requires).'
922 set -- $(.package.licenses. --all $(name))
944 cat $(package.closure:C,.*,$(INSTALLROOT)/&/PROMO.mm,:T=F) < /dev/null
948 package release $(name) |
963 echo '.xx title="$(name) package"'
964 echo '.xx meta.description="$(name) package $(version) delta $(release)"'
965 echo '.xx meta.keywords="software, package, delta"'
968 echo '$(name) package $(deltaversion) delta $(release)'
969 echo '.H 1 "$(name) package $(deltaversion) delta $(release) changes"'
971 package release $(deltasince) $(name) |
980 set -- $(package.closure)
993 $(MAKE) $(package.mam) > $tmp/$m.mam
1015 $(MAKE) $(package.mam) > $tmp/$m.mam
1020 $(MAKE) --noexec $(-) $(=) recurse list.package.$(type) package.license.class=$(license:Q) $(copyright:N=1:??LICENSE=?)
1023 set -- $(package.dir:P=G)
1030 [[ '$(notice)' ]] && echo ";;;$tmp/HEAD;$(package.notice)"
1032 $(package.readme)
1038 [[ '$(notice)' ]] && echo ";;;$tmp/TAIL;$(package.notice)"
1065 echo '.xx title="$(name) package"'
1066 echo '.xx meta.description="$(name) package"'
1067 echo '.xx meta.keywords="software, package"'
1070 echo '$(name) package'
1078 package help source
1147 error 3 $(style): binary package style not supported yet
1166 The remainder of this file is the README from the source package
1167 that was used to generate this binary package. It describes
1170 $(package.readme)
1174 package release $(name.original) > $tmp/RELEASE
1182 set -- $(.package.licenses. --text $(name.original):N!=*.lic)
1199 [[ '$(notice)' ]] && echo ";;;$tmp/HEAD;$(package.notice)"
1202 [[ '$(notice)' ]] && echo ";;;$tmp/TAIL;$(package.notice)"
1218 $(package.src:U:T=F:/.*/echo ";;;&"$("\n")/)
1219 $(package.bin:U:T=F:/.*/echo ";;;&"$("\n")/)
1220 set -- $(package.closure)
1223 $(MAKE) --noexec $(-) --variants=$(variants:Q) $(=) recurse list.package.$(type) package.license.class=$(license:Q) cc-
1253 $(package.src:U:T=F:C%^$(PACKAGEROOT)/%%:C%.*%echo ";;;$(PACKAGEROOT)/&;&"$("\n")%)
1254 $(package.bin:U:T=F:C%^$(INSTALLROOT)/%%:C%.*%echo ";;;$(INSTALLROOT)/&;&"$("\n")%)
1255 $(package.auxiliary.$(style):U:T=F:C%^$(INSTALLROOT)/%%:C%.*%echo ";;;$(INSTALLROOT)/&;&"$("\n")%)
1288 then echo "This package is a superset of the following package$(~covers:O=2:?s??): $(~covers); you won't need $(~covers:O=2:?these?this?) if you download $(name)."
1291 then echo 'It requires the following package$(~requires:O=2:?s??): $(~requires).'
1294 package help binary
1295 package release $(name)
1299 set -- $(package.closure)
1302 $(MAKE) --noexec $(-) --variants=$(variants:Q) $(=) package.strip=$(strip) recurse list.package.$(type) package.license.class=$(license:Q) cc-
1307 [[ '$(notice)' ]] && echo ";;;$tmp/HEAD;$(package.notice)"
1309 $(package.readme)
1314 [[ '$(notice)' ]] && echo ";;;$tmp/TAIL;$(package.notice)"
1353 package help binary
1426 error 3 $(style): runtime package style not supported yet
1440 $(package.src:U:T=F:C%^$(PACKAGEROOT)/%%:C%.*%echo ";;;$(PACKAGEROOT)/&;&"$("\n")%)
1441 $(package.bin:U:T=F:C%^$(INSTALLROOT)/%%:C%.*%echo ";;;$(INSTALLROOT)/&;&"$("\n")%)
1442 $(package.auxiliary.$(style):U:T=F:C%^$(INSTALLROOT)/%%:C%.*%echo ";;;$(INSTALLROOT)/&;&"$("\n")%)
1475 echo "This package is a superset of the following package$(~covers:O=2:?s??): $(~covers); you won't need $(~covers:O=2:?these?this?) if you download $(name)."
1479 echo 'It requires the following package$(~requires:O=2:?s??): $(~requires).'
1482 echo "To install this $(type) package read the tarball into a directory"
1486 echo "To use the package export the bin directory in PATH. The commands and"
1492 set -- $(package.closure)
1495 $(MAKE) --noexec $(-) --variants=$(variants:Q) $(=) package.strip=$(strip) recurse list.package.$(type) package.license.class=$(license:Q) cc-
1500 [[ '$(notice)' ]] && echo ";;;$tmp/HEAD;$(package.notice)"
1502 $(package.readme)
1507 [[ '$(notice)' ]] && echo ";;;$tmp/TAIL;$(package.notice)"
1533 set -- $(package.closure)