summaryrefslogtreecommitdiff
path: root/package/pkgmaker
diff options
context:
space:
mode:
authorThorsten Glaser <tg@mirbsd.org>2009-12-19 23:06:42 +0059
committerWaldemar Brodkorb <wbx@openadk.org>2009-12-20 10:35:02 +0100
commit1b111741aee8028b8bbb0dc3ad7b456e953f9aad (patch)
tree07603c7eaefb5bdaa1148778de2e534a91f44eda /package/pkgmaker
parentc43aee42a122248712f1c31d481afcfce8331f64 (diff)
also create list of package subdirs automatically; fix name mangling
Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
Diffstat (limited to 'package/pkgmaker')
-rw-r--r--package/pkgmaker15
1 files changed, 8 insertions, 7 deletions
diff --git a/package/pkgmaker b/package/pkgmaker
index 59228d753..b9f591a4b 100644
--- a/package/pkgmaker
+++ b/package/pkgmaker
@@ -11,12 +11,13 @@ for subdir in alsa-lib bash bc mksh; do
pn=$($GMAKE show=PKG_NAME) # pn: package name
pa=$($GMAKE show=ALL_PKGOPTS) # pa: all subpackage options
pfl=$($GMAKE show=PKG_FLAVOURS) # pfl: all package flavours
- typeset -u pnu=${pn//-/_} # pnu: package name uppercase
+ typeset -u dnu=${subdir//-/_} # dnu: subdir name uppercase
+ dnu=${dnu//+/X}
pd=$($GMAKE show=PKG_DESCR) # pd: package description
ph=$($GMAKE show=PKG_URL) # ph: package homepage
(
- print "config ADK_COMPILE_$pnu"
+ print "config ADK_COMPILE_$dnu"
print \\ttristate
print -n \\tdepends on
sp=' ' # local sp: space (or ' || ')
@@ -37,7 +38,7 @@ for subdir in alsa-lib bash bc mksh; do
print "\tprompt \"$xf ${pd:-$pn}\""
print \\ttristate
print \\tdefault n
- print \\tselect ADK_COMPILE_$pnu
+ print \\tselect ADK_COMPILE_$dnu
if [[ -n $pd$ph ]]; then
print \\thelp
[[ -n $pd ]] && print "\t $pd"
@@ -49,12 +50,12 @@ for subdir in alsa-lib bash bc mksh; do
for pf in $pfl; do # pf: package flavour
pfd=$($GMAKE show=PKGFD_$pf)
print
- print config ADK_PACKAGE_${pnu}_$pf
- print "\tbool \"${pfd:-flavour ADK_PACKAGE_${pnu}_$pf}\""
+ print config ADK_PACKAGE_${dnu}_$pf
+ print "\tbool \"${pfd:-flavour ADK_PACKAGE_${dnu}_$pf}\""
print \\tdefault n
- print \\tdepends on ADK_COMPILE_$pnu
+ print \\tdepends on ADK_COMPILE_$dnu
print \\thelp
- print "\t flavour ADK_PACKAGE_${pnu}_$pf"
+ print "\t flavour ADK_PACKAGE_${dnu}_$pf"
done
) >Config.in
cd ..