@@ -18,7 +18,7 @@ do-configure:
post-configure:
${_CONFIGURE_COOKIE}: ${_PATCH_COOKIE}
@sed -e '/^#/d' ${REORDER_DEPENDENCIES} | \
- tsort | tac | while read f; do \
+ tsort | while read f; do \
cd ${WRKSRC}; \
case $$f in \
/*) \
@@ -0,0 +1,17 @@
+#!/usr/bin/env bash
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+os=$(uname)
+case $os in
+ NetBSD|MirBSD|OpenBSD)
+ targ="-r"
+ ;;
+ *)
+ targ="|tac"
+esac
+if [ -x /usr/bin/tsort ];then
+ /usr/bin/tsort $targ "$@"
+fi