# --- T2-COPYRIGHT-NOTE-BEGIN --- # T2 SDE: package/*/embutils/embutils.conf # Copyright (C) 2004 - 2022 The T2 SDE Project # # This Copyright note is generated by scripts/Create-CopyPatch, # more information can be found in the files COPYING and README. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2. # --- T2-COPYRIGHT-NOTE-END --- if pkginstalled coreutils && [ $prefix_auto = 1 ]; then bindir=/$prefix/embutils fi # non-dietlibc, e.g. glibc/musl system libc? [ "$SDECFG_DIETLIBC_embutils" = 1 ] || var_append patchfiles ' ' "$confdir/not-dietlibc.diff" hook_add inmake 5 'mkdir -p $root$bindir' var_append INSTALL_WRAPPER_FILTER "|" "sed -e 's,$prefix/bin/,$bindir/,'" # we control some stuff ourselves var_append makeopt ' ' 'DIET= OBJDIR=bin' var_append makeinstopt ' ' 'DIET= OBJDIR=bin' hook_add premake 5 "mkdir -p bin" # some more add-ons for our install and rescue tasks hook_add postmake 5 "$CC -DTESTING -o bunzip2 `match_source_file -p bunzip`;\ install bunzip2 $root$bindir/"