2006-02-23 15:26:10 +00:00
|
|
|
# Description: WINE - Implementation of Windows DLL's and core.
|
2020-03-05 08:43:13 +11:00
|
|
|
# URL: https://www.winehq.org/
|
2014-11-10 23:25:50 +11:00
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2021-08-23 20:58:14 +10:00
|
|
|
# Depends on: fontconfig-32 freeglut-32 gnutls-32 lcms2-32 mpg123-32 openal-32 prelink vkd3d-32 xorg-libxcomposite-32 xorg-libxcursor-32 xorg-libxinerama-32 xorg-libxxf86dga-32 mingw-w64-gcc
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
name=wine
|
2022-02-26 20:55:59 +11:00
|
|
|
version=7.3
|
2020-04-25 21:07:25 +10:00
|
|
|
release=1
|
2022-02-12 12:01:34 +11:00
|
|
|
source=(https://dl.winehq.org/wine/source/7.x/$name-$version.tar.xz
|
2020-12-18 01:04:12 +11:00
|
|
|
https://dl.winehq.org/wine/wine-gecko/2.47.2/wine-gecko-2.47.2-x86.msi
|
|
|
|
https://dl.winehq.org/wine/wine-gecko/2.47.2/wine-gecko-2.47.2-x86_64.msi
|
2022-02-12 12:01:34 +11:00
|
|
|
https://dl.winehq.org/wine/wine-mono/7.1.1/wine-mono-7.1.1-x86.msi)
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
build() {
|
2018-12-09 19:11:08 +11:00
|
|
|
# Allow ccache to work
|
|
|
|
mv $name-$version $name
|
|
|
|
|
|
|
|
# https://bugs.winehq.org/show_bug.cgi?id=43530
|
|
|
|
export CFLAGS="${CFLAGS/-fno-plt/}"
|
|
|
|
export LDFLAGS="${LDFLAGS/,-z,now/}"
|
|
|
|
|
2012-11-22 12:50:35 -06:00
|
|
|
install -d wine32 wine64
|
2011-10-17 22:12:25 +11:00
|
|
|
|
2016-01-12 11:11:11 +11:00
|
|
|
export CPPFLAGS="${CPPFLAGS/-D_FORTIFY_SOURCE=2/} -D_FORTIFY_SOURCE=0"
|
2016-03-08 18:00:01 +11:00
|
|
|
|
2012-11-22 12:50:35 -06:00
|
|
|
cd wine64
|
|
|
|
|
2018-12-10 20:13:03 +11:00
|
|
|
../$name/configure \
|
2012-11-22 12:50:35 -06:00
|
|
|
--prefix=/usr \
|
|
|
|
--libdir=/usr/lib \
|
|
|
|
--enable-win64
|
|
|
|
|
|
|
|
make depend
|
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
|
|
|
|
cd ../wine32
|
|
|
|
CFLAGS="${CFLAGS} -m32"
|
|
|
|
CXXFLAGS="${CXXFLAGS} -m32"
|
|
|
|
LDFLAGS="${LDFLAGS} -m32"
|
|
|
|
export PKG_CONFIG_LIBDIR="/usr/lib32/pkgconfig"
|
|
|
|
|
2018-12-10 20:13:03 +11:00
|
|
|
../$name/configure \
|
2006-10-28 23:24:50 +03:00
|
|
|
--prefix=/usr \
|
2012-11-22 12:50:35 -06:00
|
|
|
--libdir=/usr/lib32 \
|
|
|
|
--x-includes=/usr/include/X11 \
|
|
|
|
--x-libraries=/usr/lib32 \
|
|
|
|
--cache-file=config.cache \
|
|
|
|
--with-wine64=../wine64
|
2011-10-17 22:12:25 +11:00
|
|
|
|
2006-02-23 15:26:10 +00:00
|
|
|
make depend
|
|
|
|
make
|
2012-11-22 12:50:35 -06:00
|
|
|
make DESTDIR=$PKG install
|
2012-10-29 00:24:01 +11:00
|
|
|
|
2021-10-28 19:16:51 +11:00
|
|
|
install -d $PKG/etc/revdep.d
|
|
|
|
echo "/usr/lib/wine/x86_64-unix" > $PKG/etc/revdep.d/$name
|
|
|
|
echo "/usr/lib32/wine/i386-unix" >> $PKG/etc/revdep.d/$name
|
|
|
|
|
2012-10-29 00:24:01 +11:00
|
|
|
install -d $PKG/usr/share/wine/gecko
|
|
|
|
install -d $PKG/usr/share/wine/mono
|
|
|
|
|
2012-11-22 12:50:35 -06:00
|
|
|
install -t $PKG/usr/share/wine/gecko/ \
|
2020-12-18 01:04:12 +11:00
|
|
|
$SRC/wine-gecko-2.47.2-x86.msi \
|
|
|
|
$SRC/wine-gecko-2.47.2-x86_64.msi
|
2012-11-22 12:50:35 -06:00
|
|
|
|
2022-02-12 12:01:34 +11:00
|
|
|
install $SRC/wine-mono-7.1.1-x86.msi $PKG/usr/share/wine/mono/
|
2012-10-29 00:24:01 +11:00
|
|
|
|
2015-12-20 20:28:24 +11:00
|
|
|
rm -r $PKG/usr/share/man/??.UTF-8
|
2006-02-23 15:26:10 +00:00
|
|
|
}
|