Init, adding corrade,magnum,magnum-plugins,magnum-integration,magnum-extras, and magnum-examples 2025.47_1

This commit is contained in:
2025-11-19 13:35:26 +02:00
parent 6031ef978f
commit 17b687c5c1
346 changed files with 28087 additions and 12 deletions

40
common/wrappers/cross-cc Normal file
View File

@@ -0,0 +1,40 @@
#!/bin/bash
# compiler wrapper to get rid of -I/usr/include and -L/usr/lib, that fucks up
# cross compilation badly.
declare -a MYARGS
ARGS=("$@")
i=0
while [ $i -lt ${#ARGS[@]} ]; do
arg="${ARGS[$i]}"
if [ -n "$incpath" ]; then
if [ "$arg" = "/usr/include" ]; then
echo "[cc-wrapper] ignoring ${incpath} $arg"
else
MYARGS+=("${incpath}${arg}")
fi
unset incpath
elif [ "$libpath" ]; then
# XXX: avoid so much repetition
if [ "$arg" = "/usr/lib" -o "$arg" = "/usr/lib32" -o "$arg" = "/usr/lib64" -o "$arg" = "/lib" ]; then
echo "[cc-wrapper] ignoring -L $arg"
else
MYARGS+=("-L${arg}")
fi
unset libpath
elif [ "$arg" = "-I" -o "$arg" = "-isystem" ]; then
incpath="$arg"
elif [ "$arg" = "-L" ]; then
libpath=1
elif [ "$arg" = "-I/usr/include" -o "$arg" = "-isystem/usr/include" \
-o "$arg" = "-L/usr/lib32" -o "$arg" = "-L/usr/lib64" \
-o "$arg" = "-L/usr/lib" -o "$arg" = "-L/lib" ]; then
echo "[cc-wrapper] ignoring $arg"
else
MYARGS+=("${arg}")
fi
i=$((i+1))
done
#echo "[cc-wrapper] @BIN@ ${MYARGS[@]}"
exec @BIN@ "${MYARGS[@]}"

6
common/wrappers/date.sh Normal file
View File

@@ -0,0 +1,6 @@
#!/bin/sh
if [ "$SOURCE_DATE_EPOCH" ]; then
post="--utc --date @$SOURCE_DATE_EPOCH"
fi
exec /usr/bin/date "$@" $post

View File

@@ -0,0 +1,44 @@
#!/bin/bash
# install-wrapper - run install(1), but never strip or chown
set -e
# taken from install (GNU coreutils) 8.23
opts='bcCdDg:m:o:psS:t:TvZ'
longopts='backup::,compare,directory,group:,mode:,owner:,preserve-timestamps,\
strip:,strip-program:,suffix:,target-directory:,no-target-directory,verbose,\
preserve-context,context::,help,version'
parsed="$(getopt -o "$opts" --long "$longopts" -n 'install-wrapper' -- "$@")"
eval set -- "$parsed"
iopts=()
while :; do
case "$1" in
-s|--strip)
echo "install-wrapper: overriding call to strip(1)." 1>&2
iopts+=("$1" --strip-program=true)
shift;;
--strip-program)
echo "install-wrapper: dropping strip program '$2'." 1>&2
shift 2;;
-g|--group|-o|--owner)
echo "install-wrapper: dropping option $1 $2." 1>&2
shift 2;;
-b|-c|-C|--compare|-d|--directory|-D|-p|--preserve-timestamps|\
-T|--no-target-directory|-v|--verbose|--preserve-context|-Z|\
--help|--version)
iopts+=("$1")
shift;;
-m|--mode|-S|--suffix|-t|--target-directory|--backup|--context)
iopts+=("$1" "$2")
shift 2;;
--)
shift
break;;
*)
echo 'cant happen, report a bug' 1>&2
exit 111;;
esac
done
exec /usr/bin/install "${iopts[@]}" -- "$@"

View File

@@ -0,0 +1,8 @@
#!/bin/sh
if [ "$1" = "-p" ]; then
exec /usr/bin/ldconfig "$@"
fi
echo "ldconfig-wrapper: ignoring arguments: $@"
exit 0

4
common/wrappers/strip.sh Normal file
View File

@@ -0,0 +1,4 @@
#!/bin/sh
echo "strip-wrapper: ignoring arguments: $@"
exit 0

13
common/wrappers/uname.sh Normal file
View File

@@ -0,0 +1,13 @@
#!/bin/sh
uname=$(/usr/bin/uname $@)
rv=$?
uname_m=$(/usr/bin/uname -m)
arch=${XBPS_ARCH%-musl}
# if XBPS_ARCH was reseted by `env -i` use original `/usr/bin/uname -m`
: ${arch:=$uname_m}
echo "$uname" |
sed "s/\(^\| \)$(/usr/bin/uname -n)\($\| \)/\1void\2/" |
sed "s/$uname_m/$arch/"
exit $rv