summaryrefslogtreecommitdiff
path: root/package/xx
diff options
context:
space:
mode:
authorThorsten Glaser <tg@mirbsd.org>2009-12-19 23:26:58 +0059
committerWaldemar Brodkorb <wbx@openadk.org>2009-12-20 10:35:03 +0100
commit67fc90c4cc712a8610f2091e6d0984d8174061e1 (patch)
tree6b5c62cac6f43c5f183960393579fd4e9ce96e79 /package/xx
parent11f4462c6de666345e0722f68ba462a61c779176 (diff)
fix dependencies; note libfuse are broken
• xx is the script used to validate them (will be folded into pkgmaker soon) • davfs2 (two of three flavours) and wdfs (once), as well as fuse (or fuse-utils?) depend on libfuse, but there is no libfuse (the working builddep on the fuse directory was kept intact, though) Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
Diffstat (limited to 'package/xx')
-rw-r--r--package/xx35
1 files changed, 35 insertions, 0 deletions
diff --git a/package/xx b/package/xx
new file mode 100644
index 000000000..529a46d6f
--- /dev/null
+++ b/package/xx
@@ -0,0 +1,35 @@
+cd "$(dirname "$0")"
+export TOPDIR=$(realpath ..)
+if gmake --help >/dev/null 2>&1; then
+ export GMAKE=gmake
+else
+ export GMAKE=make
+fi
+
+rm -rf pkglist.d
+mkdir pkglist.d
+for a in */Makefile; do
+ sd=${a%/*}
+ cd $sd
+ pa=$($GMAKE show=ALL_PKGOPTS) # pa: all subpackage options
+ for xu in $pa; do # xu: package option uppercase
+ x=$($GMAKE show=PKGNAME_$xu) # x: subpackage name
+ print -nr -- "$xu" >../pkglist.d/"$x"
+ done
+ cd ..
+done
+
+rm -f kdeps kaputt
+for a in */Makefile; do
+ sd=${a%/*}
+ cd $sd
+ deps=$($GMAKE show=PKG_DEPENDS)
+ cd ..
+ for dep in $deps; do
+ if [[ $dep = kmod-* ]]; then
+ print $sd $dep >>kdeps
+ continue
+ fi
+ [[ -e pkglist.d/$dep ]] || print $sd $dep >>kaputt
+ done
+done