mirror of
https://github.com/rxrbln/t2sde.git
synced 2025-05-08 20:21:59 +08:00
55 lines
1.6 KiB
Plaintext
55 lines
1.6 KiB
Plaintext
# --- T2-COPYRIGHT-BEGIN ---
|
|
# t2/package/*/wine/wine.conf
|
|
# Copyright (C) 2004 - 2025 The T2 SDE Project
|
|
# Copyright (C) 1998 - 2004 ROCK Linux Project
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
# --- T2-COPYRIGHT-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" ;;
|
|
*) f=$d ;;
|
|
esac
|
|
mkdir -p $root$bindir/../tools/$d
|
|
for x in $f; do
|
|
install $d/$x $root$bindir/../tools/$d/
|
|
done
|
|
mkdir -p $root$bindir/../tools/wine
|
|
touch $root$bindir/../tools/wine/wine
|
|
done
|
|
}
|
|
|
|
if atstage toolchain; then
|
|
hook_add premake 5 "cd tools"
|
|
makeinstopt=
|
|
hook_add inmake 5 "build_tools"
|
|
var_append confopt ' ' --without-x
|
|
[[ $arch_build = *64-* ]] && var_append confopt ' ' --enable-win64
|
|
elif atstage cross; then
|
|
var_append confopt ' ' '--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 confopt ' ' --enable-win64
|
|
|
|
case "$arch" in
|
|
x86) GCC_WRAPPER_INSERT="${GCC_WRAPPER_INSERT/i486/i586}" ;;
|
|
x86-64) var_append confopt ' ' '--enable-archs=i386,x86_64' ;;
|
|
arm64) var_append confopt ' ' '--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 confopt ' ' --disable-tests
|