wine: moved from opt, marked unmaintained

This commit is contained in:
Tim Biermann 2023-08-19 11:52:56 +02:00
parent b243727b60
commit 3ae22345b8
4 changed files with 4011 additions and 0 deletions

3909
wine/.footprint Normal file

File diff suppressed because it is too large Load Diff

8
wine/.signature Normal file
View File

@ -0,0 +1,8 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF382gJEFvPHQlpnmssggkGCGCg4WkYrg3uJqSRE1jUx3o/5dK6vrvGE8P/JywqhHRNVgj9LUiBdtLUP8tpTHc/Aw=
SHA256 (Pkgfile) = 3e31a978d86a42dabbdaf30b5fbcd3b8cd88b85a6303b99c5230d9be694d23ef
SHA256 (.footprint) = bdc6aa46d41c2006ff5eaef2a7e261e2fc4e91b1d2294d421308794c51ceb977
SHA256 (wine-8.14.tar.xz) = e1836ef66b1825fa9da042830c0495b2ac394815443643466979ee89fdd7faf4
SHA256 (wine-gecko-2.47.4-x86.msi) = 26cecc47706b091908f7f814bddb074c61beb8063318e9efc5a7f789857793d6
SHA256 (wine-gecko-2.47.4-x86_64.msi) = e590b7d988a32d6aa4cf1d8aa3aa3d33766fdd4cf4c89c2dcc2095ecb28d066f
SHA256 (wine-mono-7.4.0-x86.msi) = 6413ff328ebbf7ec7689c648feb3546d8102ded865079d1fbf0331b14b3ab0ec

69
wine/Pkgfile Normal file
View File

@ -0,0 +1,69 @@
# Description: WINE - Implementation of Windows DLL's and core.
# URL: https://www.winehq.org/
# Maintainer: unmaintained
# 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
name=wine
version=8.14
release=1
source=(https://dl.winehq.org/wine/source/8.x/$name-$version.tar.xz
https://dl.winehq.org/wine/wine-gecko/2.47.4/wine-gecko-2.47.4-x86.msi
https://dl.winehq.org/wine/wine-gecko/2.47.4/wine-gecko-2.47.4-x86_64.msi
https://dl.winehq.org/wine/wine-mono/7.4.0/wine-mono-7.4.0-x86.msi)
build() {
# 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/}"
install -d wine32 wine64
export CPPFLAGS="${CPPFLAGS/-D_FORTIFY_SOURCE=2/} -D_FORTIFY_SOURCE=0"
cd wine64
../$name/configure \
--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"
../$name/configure \
--prefix=/usr \
--libdir=/usr/lib32 \
--x-includes=/usr/include/X11 \
--x-libraries=/usr/lib32 \
--cache-file=config.cache \
--with-wine64=../wine64
make depend
make
make DESTDIR=$PKG install
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
install -d $PKG/usr/share/wine/gecko
install -d $PKG/usr/share/wine/mono
install -t $PKG/usr/share/wine/gecko/ \
$SRC/wine-gecko-2.47.4-x86.msi \
$SRC/wine-gecko-2.47.4-x86_64.msi
install $SRC/wine-mono-7.4.0-x86.msi $PKG/usr/share/wine/mono/
rm -r $PKG/usr/share/man/??.UTF-8
}

25
wine/README Normal file
View File

@ -0,0 +1,25 @@
Note that wine compiles twice for 32bit and 64bit use and as such
requires compat-32 ports tree to be enabled to work.
You could edit wine to only compile 64bit only but then you can
only run PE64 bit binaries.
You enable compat-32 by.
mv /etc/ports/compat-32.rsync.inactive /etc/ports/compat-32.rsync
$EDITOR /etc/prt-get.conf
And uncomment:
prtdir /usr/ports/compat-32
Also be sure to enable:
runscripts yes
To speed up building wine multiple times also:
prt-get depinst ccache
And configure ccache https://crux.nu/Wiki/HowToSpeedUpBuildingPackages#ccache