summaryrefslogtreecommitdiff
path: root/package/pkgmaker
diff options
context:
space:
mode:
authorThorsten Glaser <tg@mirbsd.org>2009-12-18 20:51:46 +0059
committerWaldemar Brodkorb <wbx@openadk.org>2009-12-18 22:20:49 +0100
commitc549fe094745b04e32a6f2419bbf7a2ac1b246e0 (patch)
tree20df5f32a6e32925228146841cce90a84ac4c28e /package/pkgmaker
parent8385713df974239b7cf5395873b4ad459953fa5e (diff)
next one, multi-packages
Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
Diffstat (limited to 'package/pkgmaker')
-rw-r--r--package/pkgmaker45
1 files changed, 32 insertions, 13 deletions
diff --git a/package/pkgmaker b/package/pkgmaker
index 5cc957ff9..46b8b1b15 100644
--- a/package/pkgmaker
+++ b/package/pkgmaker
@@ -5,25 +5,44 @@ else
export GMAKE=make
fi
-for subdir in bash; do
+for subdir in bash bc; do
cd $subdir
pn=$($GMAKE show=PKG_NAME)
+ pa=$($GMAKE show=ALL_PKGOPTS)
typeset -u pnu=$pn
pd=$($GMAKE show=PKG_DESCR)
ph=$($GMAKE show=PKG_URL)
- (print "config ADK_PACKAGE_$pnu"
- pnf=$pn
- while (( ${#pnf} < 34 )); do
- pnf=$pnf.
- done
- print "\tprompt \"$pnf ${pd:-$pn}\""
+
+ (
+ print "config ADK_COMPILE_$pnu"
print \\ttristate
+ print -n \\tdepends on
+ sp=' '
+ for xu in $pa; do
+ print -n "${sp}ADK_PACKAGE_$xu"
+ sp=' || '
+ done
+ print
print \\tdefault n
- if [[ -n $pd$ph ]]; then
- print \\thelp
- [[ -n $pd ]] && print "\t $pd"
- [[ -n $pd && -n $ph ]] && print '\t '
- [[ -n $ph ]] && print "\t $ph"
- fi
+
+ for xu in $pa; do
+ x=$($GMAKE show=PKGNAME_$xu)
+ print \\nconfig ADK_PACKAGE_$xu
+ xf=$x
+ while (( ${#xf} < 34 )); do
+ xf=$xf.
+ done
+ print "\tprompt \"$xf ${pd:-$pn}\""
+ print \\ttristate
+ print \\tdefault n
+ print \\tselect ADK_COMPILE_$pnu
+ if [[ -n $pd$ph ]]; then
+ print \\thelp
+ [[ -n $pd ]] && print "\t $pd"
+ [[ -n $pd && -n $ph ]] && print '\t '
+ [[ -n $ph ]] && print "\t $ph"
+ fi
+ done
) >Config.in
+ cd ..
done