# --- T2-COPYRIGHT-NOTE-BEGIN --- # T2 SDE: package/*/wine/wine.conf # Copyright (C) 2004 - 2024 The T2 SDE Project # Copyright (C) 1998 - 2004 ROCK Linux 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 --- build_tools() { makeinstopt= mkdir -p $root$bindir/../tools for d in . sfnt2fon widl winebuild winegcc wmc wrc; do eval $MAKE $makeopt -C $d local f case $d in .) f="makedep make_xftmpl wineapploader" ;; *) f=$d ;; esac mkdir -p $root$bindir/../tools/$d for x in $f; do install $d/$x $root$bindir/../tools/$d/ done done } if atstage toolchain; then hook_add premake 5 "cd tools" makeinstopt= hook_add inmake 5 "build_tools" var_append extraconfopt ' ' --without-x [[ $arch_build = *64-* ]] && var_append extraconfopt ' ' --enable-win64 elif atstage cross; then var_append extraconfopt ' ' '--with-wine-tools=$root/TOOLCHAIN/cross' hook_add premake 5 'ln -svf $PWD $root/TOOLCHAIN/cross/usr/share/wine' # force configure to actually use our pkg-config export PKG_CONFIG=pkg-config fi if ! atstage toolchain; then [ $arch_sizeof_char_p = 8 ] && var_append extraconfopt ' ' --enable-win64 case "$arch" in x86-64) var_append extraconfopt ' ' '--enable-archs=i386,x86_64' ;; arm64) var_append extraconfopt ' ' '--enable-archs=arm,aarch64' ;; esac var_append GCC_WRAPPER_APPEND ' ' "-I$root$(pkgprefix includedir libx11)" var_append GCC_WRAPPER_APPEND ' ' "-c?:-L$root$(pkgprefix libdir libx11)" fi var_append extraconfopt ' ' --disable-tests