emulators/i386-wine: Remove port.

This port and its pre-built binaries have not been updated lately and
emulators/wine is now providing i386 support on amd64, so remove the
i386-wine port.

Adjust CONFLICTS_INSTALL on related ports and simplify (and update both
user and developer documentation in emulators/wine).

PR:		259589
Differential Revision:	https://reviews.freebsd.org/D32322
This commit is contained in:
Alexander Vereeken 2021-11-19 06:53:49 +00:00 committed by Gerald Pfeifer
parent dff8cd7fdf
commit 056135a38e
15 changed files with 9 additions and 3969 deletions

1
MOVED
View file

@ -16599,3 +16599,4 @@ multimedia/celluloid-devel|multimedia/celluloid|2021-11-05|Out of date: use mult
devel/zmusic|audio/zmusic|2021-11-10|Category change
emulators/i386-wine-devel||2021-11-16|Removed: obsolete, emulators/wine-devel provides i386 support
emulators/qemu52|emulators/qemu5|2021-11-16|Has expired
emulators/i386-wine||2021-11-19|Removed: obsolete, emulators/wine provides i386 support

View file

@ -44,7 +44,6 @@
SUBDIR += higan
SUBDIR += hugo
SUBDIR += hv_kvp_cmd
SUBDIR += i386-wine
SUBDIR += ines
SUBDIR += javatari
SUBDIR += joytran

View file

@ -1,41 +0,0 @@
# Created by: David Naylor (dbn@FreeBSD.org)
# Special bootstrapper to allow:
# - i386 specific port to be slave to ${PORTSDIR}/emulators/wine
# - amd64 specific port to be normal port (based on binary package)
PORTNAME= wine
# define a dummy DISTVERSION to avoid errors with poudriere bulk -a
# on architectures unsupported by this port
DISTVERSION?= 0
# define PORTREVISION with ?= to allow it to be overriden by
# wine's PORTREVISION when cross building
PORTREVISION= 0
PKGNAMEPREFIX= i386-
CATEGORIES= emulators
MAINTAINER= Alexander88207@protonmail.com
COMMENT= 32-bit Microsoft Windows compatibility environment for 64-bit FreeBSD
ONLY_FOR_ARCHS= i386 amd64
CONFLICTS_INSTALL= wine-[0-9]* wine-devel-[0-9]*
USES= cpe
CPE_VENDOR= winehq
PKGINSTALL= ${.CURDIR}/files/pkg-install
PKGDEINSTALL= ${PKGINSTALL}
distinfo-update:
${RM} ${.CURDIR}/distinfo ${.CURDIR}/distinfo~
.for osrel in 12 13 14
${MAKE} fetch OSREL=${osrel} OSVERSION=${osrel}99999 _OSRELEASE=${osrel}
${MAKE} makesum OSREL=${osrel} OSVERSION=${osrel}99999 _OSRELEASE=${osrel}
${CAT} ${.CURDIR}/distinfo >> ${.CURDIR}/distinfo~
${RM} ${.CURDIR}/distinfo
.endfor
${SED} -e '2,$${' -e '/^TIMESTAMP/d' -e '}' distinfo~ > ${.CURDIR}/distinfo
${RM} ${.CURDIR}/distinfo~
.include <bsd.port.mk>

View file

@ -1,52 +0,0 @@
# Created by: David Naylor <dbn@FreeBSD.org>
DISTVERSION= 6.0.1
PORTEPOCH= 1
MASTER_SITES= http://Alexander88207.de/Homura/Winebuilds/${DIST_SUBDIR}/
DISTNAME= ${PKGNAMEPREFIX}${PORTNAME}${PKGNAMESUFFIX}-${PKGVERSION}
DIST_SUBDIR= FreeBSD:${OSREL:C/\..*//}:amd64
LICENSE= LGPL21 LGPL3
LICENSE_COMB= dual
LICENSE_FILE= ${WRKDIR}/LICENSE
EXTRACT_AFTER_ARGS= -C / --exclude +COMPACT_MANIFEST --exclude +MANIFEST \
--exclude +MTREE_DIRS --exclude share/licenses/'*' \
--exclude libdata/ldconfig32/${PKGNAMEPREFIX}${PORTNAME} \
-s '|/usr/local|${STAGEDIR}${PREFIX}|gs'
NO_BUILD= yes
SUB_FILES= pkg-message
USE_LDCONFIG32= ${PREFIX}/lib32 ${PREFIX}/lib32/wine
USES+= desktop-file-utils tar:txz
BUNDLE_LIBS= yes
PKGMESSAGE= ${WRKDIR}/pkg-message
PORTSCOUT= limitw:1,even
.for osrel in 12 13 14
.if ${OSREL:C/\..*//} == ${osrel}
PLIST_SUB+= OSREL${osrel}=""
PLIST_SUB+= NOOSREL${osrel}="@comment "
.else
PLIST_SUB+= OSREL${osrel}="@comment "
PLIST_SUB+= NOOSREL${osrel}=""
.endif
.endfor
.if ${OPSYS} != FreeBSD || (!(${OSVERSION} >= 1202000 && ${OSVERSION} < 1300000) && !(${OSVERSION} >= 1300139 && ${OSVERSION} < 1400000) && !(${OSVERSION} >= 1400024))
IGNORE= binaries compiled for FreeBSD 12.2+, 13.0+ & 14.0+ only
.endif
OPTIONS_DEFINE= GECKO MONO
GECKO_DESC= Bundle Gecko MSI package for Wine
MONO_DESC= Bundle Mono MSI package for Wine
GECKO_RUN_DEPENDS= wine-gecko>0:emulators/wine-gecko
MONO_RUN_DEPENDS= wine-mono>0:emulators/wine-mono
do-extract:
@${RM} -r ${WRKDIR}
@${MKDIR} ${WRKDIR}
${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/${EXTRACT_ONLY} -C ${WRKDIR} --include '/usr/local/share/licenses/[^/]*/LICENSE' -s '|/usr/local/share/licenses/[^/]*/||g'
do-install:
${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/${EXTRACT_ONLY} ${EXTRACT_AFTER_ARGS}

View file

@ -1,88 +0,0 @@
# Created by: David Naylor <dbn@FreeBSD.org>
# Use the wine port to do most of the heavy lifting
MASTERDIR= ${.CURDIR}/../wine
RUN_DEPENDS= mesa-dri>0:graphics/mesa-dri
ACTUAL-PACKAGE-DEPENDS= ${DO_NADA}
WINELIBDIR= ${PREFIX}/lib32
CONFIGURE_ARGS+= --bindir=${PREFIX}/bin32 --libdir=${WINELIBDIR}
PLIST_REINPLACE+= winelib
PLIST_REINPLACE_WINELIB= s!lib/!lib32/!g
WINE_SLAVE_BUILD= yes
USE_LDCONFIG32= ${WINELIBDIR} ${WINELIBDIR}/wine
BUNDLE_LIBS= yes
.if !defined(WINE_CROSS_BUILD)
IGNORE= This port is not for consumption on FreeBSD/i386. To cross-build for FreeBSD/amd64: make -DWINE_CROSS_BUILD
.endif
# Hook into post-install and do some adapting to make i386 binaries work nicely
# under FreeBSD/amd64
post-install-script:
# Fix pkg-plist references
${REINPLACE_CMD} -e 's!lib/!lib32/!g' ${TMPPLIST}
# Install bounce script to access the 32-bit executables
${INSTALL_SCRIPT} ${.CURDIR}/files/binbounce ${STAGEDIR}${PREFIX}/bin/wine
for i in `${GREP} ^bin ${TMPPLIST} | ${XARGS} -n1 basename` ; do \
[ "$${i}" = "wine" ] || ${LN} -f ${STAGEDIR}${PREFIX}/bin/wine ${STAGEDIR}${PREFIX}/bin/$${i} ; \
${ECHO_CMD} bin32/$${i} >> ${TMPPLIST} ; \
done
# Install libGL
${MKDIR} ${STAGEDIR}${PREFIX}/lib32/.libGL/dri
${INSTALL_DATA} ${LOCALBASE}/lib/libGL.so.1 ${STAGEDIR}${PREFIX}/lib32/.libGL/
${ECHO_CMD} lib32/.libGL/libGL.so.1 >> ${TMPPLIST}
# Install dri libraries (internal libGL requirements)
for i in ${LOCALBASE}/lib/dri/*.so; do \
${INSTALL_DATA} $${i} ${STAGEDIR}${PREFIX}/lib32/.libGL/dri/ ; \
${ECHO_CMD} lib32/.libGL/dri/$${i##*/} >> ${TMPPLIST} ; \
done
# Find all soft dependencies (via strings(1))
${GREP} -v '[@%]' ${TMPPLIST} | ${SED} "s!^!${STAGEDIR}${PREFIX}/!g" | \
${XARGS} -n1 file -F' ' | ${GREP} ELF | ${CUT} -f1 -d' ' | ${XARGS} strings | \
${GREP} '^lib.*\.so' | ${SORT} -u > ${WRKDIR}/winesoftlibs
for i in `${CAT} ${WRKDIR}/winesoftlibs` ; do \
if [ -e ${LOCALBASE}/lib/$${i} ] && [ -z "`${GREP} $${i} ${TMPPLIST}`" ]; then \
${INSTALL_DATA} ${LOCALBASE}/lib/$${i} ${STAGEDIR}${PREFIX}/lib32/ ; \
${ECHO_CMD} lib32/$${i} >> ${TMPPLIST} ; \
fi ; \
done
# Find all libraries that are linked too (via ldd(1))
${GREP} -v '[@%]' ${TMPPLIST} | ${SED} "s!^!${STAGEDIR}${PREFIX}/!g" | \
${XARGS} -n1 file -F' ' | ${GREP} ELF | ${CUT} -f1 -d' ' | \
env LD_LIBRARY_PATH=${STAGEDIR}${PREFIX}/lib32:${LD_LIBRARY_PATH} ${XARGS} ldd -f '%p\n' \
| ${SORT} -u | ${GREP} -v '^\(/usr\)\?/lib' | ${GREP} -v "^${STAGEDIR}${PREFIX}/lib32/libwine.so" \
| ${GREP} -v "^${STAGEDIR}${PREFIX}/lib32/wine" > ${WRKDIR}/winelibs
for i in `${CAT} ${WRKDIR}/winelibs` ; do \
if [ -z "`${GREP} $${i##*/} ${TMPPLIST}`" ]; then \
${INSTALL_DATA} $${i} ${STAGEDIR}${PREFIX}/lib32/ ; \
${ECHO_CMD} lib32/$${i##*/} >> ${TMPPLIST} ; \
fi ; \
done
# Install missing libraries that dont have been caught
${INSTALL_DATA} ${LOCALBASE}/lib/libGLX_mesa.so.0 ${STAGEDIR}${PREFIX}/lib32
${INSTALL_DATA} ${LOCALBASE}/lib/libX11-xcb.so.1 ${STAGEDIR}${PREFIX}/lib32
${INSTALL_DATA} ${LOCALBASE}/lib/libxcb-dri2.so.0 ${STAGEDIR}${PREFIX}/lib32
${INSTALL_DATA} ${LOCALBASE}/lib/libxcb-dri3.so.0 ${STAGEDIR}${PREFIX}/lib32
${INSTALL_DATA} ${LOCALBASE}/lib/libxcb-glx.so.0 ${STAGEDIR}${PREFIX}/lib32
${INSTALL_DATA} ${LOCALBASE}/lib/libxcb-present.so.0 ${STAGEDIR}${PREFIX}/lib32
${INSTALL_DATA} ${LOCALBASE}/lib/libxcb-sync.so.1 ${STAGEDIR}${PREFIX}/lib32
${INSTALL_DATA} ${LOCALBASE}/lib/libxcb-xfixes.so.0 ${STAGEDIR}${PREFIX}/lib32
${INSTALL_DATA} ${LOCALBASE}/lib/libXdamage.so.1 ${STAGEDIR}${PREFIX}/lib32
${INSTALL_DATA} ${LOCALBASE}/lib/libxshmfence.so.1 ${STAGEDIR}${PREFIX}/lib32
${ECHO_CMD} lib32/libGLX_mesa.so.0 >> ${TMPPLIST}
${ECHO_CMD} lib32/libX11-xcb.so.1 >> ${TMPPLIST}
${ECHO_CMD} lib32/libxcb-dri2.so.0 >> ${TMPPLIST}
${ECHO_CMD} lib32/libxcb-dri3.so.0 >> ${TMPPLIST}
${ECHO_CMD} lib32/libxcb-glx.so.0 >> ${TMPPLIST}
${ECHO_CMD} lib32/libxcb-present.so.0 >> ${TMPPLIST}
${ECHO_CMD} lib32/libxcb-sync.so.1 >> ${TMPPLIST}
${ECHO_CMD} lib32/libxcb-xfixes.so.0 >> ${TMPPLIST}
${ECHO_CMD} lib32/libXdamage.so.1 >> ${TMPPLIST}
${ECHO_CMD} lib32/libxshmfence.so.1 >> ${TMPPLIST}
# Install nvidia patching script
${INSTALL_SCRIPT} ${.CURDIR}/files/nvidia.sh ${STAGEDIR}${DATADIR}/patch-nvidia.sh
${ECHO_CMD} ${DATADIR:S|$(PREFIX)/||}/patch-nvidia.sh >> ${TMPPLIST}
.include "${MASTERDIR}/Makefile"

View file

@ -1,9 +0,0 @@
TIMESTAMP = 1626616290
SHA256 (FreeBSD:11:amd64/i386-wine-6.0.1,1.txz) = d1bb3d83ad62fbd47f4b3448a7d26e37008822eecee2b1c633cfee815881bc87
SIZE (FreeBSD:11:amd64/i386-wine-6.0.1,1.txz) = 98339760
SHA256 (FreeBSD:12:amd64/i386-wine-6.0.1,1.txz) = 745b4f9e82db1a675288beea3da48aa1961b30d2c8ba08f8dd3e9441bbb104fa
SIZE (FreeBSD:12:amd64/i386-wine-6.0.1,1.txz) = 98699908
SHA256 (FreeBSD:13:amd64/i386-wine-6.0.1,1.txz) = 01633ca6f07a8471792172e7b82a6618d104678e117e4b8194efa428430293e7
SIZE (FreeBSD:13:amd64/i386-wine-6.0.1,1.txz) = 99157636
SHA256 (FreeBSD:14:amd64/i386-wine-6.0.1,1.txz) = 25d2e7994e9477bea92f3091d257a0c24dbc4ee824eefe7d6bc4dcc602746565
SIZE (FreeBSD:14:amd64/i386-wine-6.0.1,1.txz) = 100871384

View file

@ -1,26 +0,0 @@
#!/bin/sh
# Workaround for https://bugs.winehq.org/show_bug.cgi?id=50257
export LD_32_BIND_NOW=1
TARGET="`realpath $0`"
LOCALBASE=${TARGET%/*}/..
BINNAME=${TARGET##*/}
if [ -z "$__BINBOUNCE_BOOTSTRAP" ]
then
export LIBGL_DRIVERS_PATH=$LOCALBASE/lib32/dri
if [ `uname -p` = i386 ]
then
export LD_LIBRARY_PATH="$LOCALBASE/lib32":"$LOCALBASE/lib32/wine":"$LD_LIBRARY_PATH":"$LOCALBASE/lib32/.libGL"
export LD_LIBRARY_PATH_RPATH=y
else
export LD_32_LIBRARY_PATH="$LOCALBASE/lib32":"$LOCALBASE/lib32/wine":"$LD_32_LIBRARY_PATH":"$LOCALBASE/lib32/.libGL":/usr/lib32
export LD_32_LIBRARY_PATH_RPATH=y
fi
export PATH="$LOCALBASE/bin32":"$PATH"
export __BINBOUNCE_BOOTSTRAP="1"
fi
exec "$LOCALBASE/bin32/$BINNAME" "$@"

View file

@ -1,168 +0,0 @@
#!/bin/sh
# Copyright 2010 to 2015 David Naylor <dbn@FreeBSD.org>
# Copyright 2012 Jan Beich <jbeich@tormail.org>
# Copyright 2020 Lorenzo Salvadore <salvadore@FreeBSD.org>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice,
# this list of conditions and the following disclaimer.
#
# 2. Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY David Naylor ``AS IS'' AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL David Naylor OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
# OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
# EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
# The views and conclusions contained in the software and documentation are
# those of the authors and should not be interpreted as representing official
# policies, either expressed or implied, of David Naylor.
set -e
PORTSDIR=${PORTSDIR:-/usr/ports}
PREFIX=${PREFIX:-/usr/local}
DISTDIR=${DISTDIR:-${PORTSDIR}/distfiles}
if [ -d $DISTDIR ]
then
cd $DISTDIR
NO_REMOVE_NVIDIA="yes"
else
cd /tmp/
fi
terminate() {
echo "!!! $2 !!!"
echo "Terminating..."
exit $1
}
args=`getopt dn $*`
if [ $? -ne 0 ]
then
echo "Usage: $0 [-n]"
exit 7
fi
set -- $args
while true
do
case $1 in
-d)
rm -f ${PREFIX}/lib32/libGL.so.1
rm -f ${PREFIX}/lib32/libGLcore.so.1 ${PREFIX}/lib32/libnvidia-tls.so.1
rm -f ${PREFIX}/lib32/libnvidia-glcore.so.1 ${PREFIX}/lib32/libnvidia-tls.so.1
rm -rf ${PREFIX}/lib32/.nvidia/
exit 0
;;
-n)
NO_FETCH=yes
;;
--)
shift
break
;;
esac
shift
done
version() {
local ret pkg="$1"
if [ -f "/usr/local/sbin/pkg" ]
then
ret=`pkg query -g '%v' "$pkg" || true`
fi
# installed manually or failed to register
if [ -z "$ret" ] && [ "$pkg" = "nvidia-driver*" ]
then
ret=`sed -n "s/.*Version: //p" 2> /dev/null \
$PREFIX/share/doc/NVIDIA_GLX-1.0/README || true`
fi
echo "$ret"
}
[ `whoami` = root ] \
|| terminate 254 "This script should be run as root"
echo "===> Patching i386-wine to work with x11/nvidia-driver:"
if [ -z "${WINE}" ]
then
WINE=`version 'i386-wine*'`
fi
[ -n "$WINE" ] \
|| terminate 255 "Unable to detect i386-wine, please install first"
echo "=> Detected i386-wine: ${WINE}"
NV=`version 'nvidia-driver*'`
[ -n "$NV" ] \
|| terminate 1 "Unable to detect nvidia-driver, please install first"
echo "=> Detected nvidia-driver: ${NV}"
NVIDIA=${NV}
NV=`echo ${NV} | cut -f 1 -d _ | cut -f 1 -d ,`
if [ ! "$(pkg version -t ${NV} 440.59)" == "<" ]
then
terminate 0 "nvidia-driver 440.59+ already includes 32-bit drivers: nothing to do"
fi
if [ ! -f NVIDIA-FreeBSD-x86-${NV}.tar.gz ] || !(tar -tf NVIDIA-FreeBSD-x86-${NV}.tar.gz > /dev/null 2>&1)
then
[ -n "$NO_FETCH" ] \
&& terminate 8 "NVIDIA-FreeBSD-x86-${NV}.tar.gz unavailable"
echo "=> Downloading NVIDIA-FreeBSD-x86-${NV}.tar.gz from https://download.nvidia.com..."
rm -f NVIDIA-FreeBSD-x86-${NV}.tar.gz
fetch -aRr https://download.nvidia.com/XFree86/FreeBSD-x86/${NV}/NVIDIA-FreeBSD-x86-${NV}.tar.gz \
|| terminate 2 "Failed to download NVIDIA-FreeBSD-x86-${NV}.tar.gz"
echo "=> Downloaded NVIDIA-FreeBSD-x86-${NV}.tar.gz"
echo "Please check the following information against /usr/ports/x11/nvidia-driver/distinfo"
sha256 NVIDIA-FreeBSD-x86-${NV}.tar.gz
echo "SIZE (NVIDIA-FreeBSD-x86-${NV}.tar.gz) = `stat -f "%z" NVIDIA-FreeBSD-x86-${NV}.tar.gz`"
fi
echo "=> Extracting NVIDIA-FreeBSD-x86-${NV}.tar.gz to $PREFIX/lib32..."
EXTRACT_LIST="libGL.so.1"
case $NV in
195*|173*|96*|71*)
EXTRACT_LIST="$EXTRACT_LIST libGLcore.so.1 libnvidia-tls.so.1"
;;
*)
EXTRACT_LIST="$EXTRACT_LIST libnvidia-glcore.so.1 libnvidia-tls.so.1"
;;
esac
EXTRACT_ARGS="--no-same-owner --no-same-permissions --strip-components 2 -C $PREFIX/lib32"
for i in $EXTRACT_LIST
do
EXTRACT_ARGS="$EXTRACT_ARGS --include NVIDIA-FreeBSD-x86-${NV}/obj/$i"
done
umask 0333
tar $EXTRACT_ARGS -xvf NVIDIA-FreeBSD-x86-${NV}.tar.gz \
|| terminate 3 "Failed to extract NVIDIA-FreeBSD-x86-${NV}.tar.gz"
mkdir -m 0755 -p ${PREFIX}/lib32/.nvidia \
|| terminate 9 "Failed to create .nvidia shadow directory"
mv ${PREFIX}/lib32/libGL.so.1 ${PREFIX}/lib32/.nvidia/ \
|| terminate 10 "Failed to move libGL.so.1 to .nvidia/ shadow directory"
ln -s .nvidia/libGL.so.1 ${PREFIX}/lib32/libGL.so.1 \
|| terminate 11 "Failed to link to .nvidia/libGL.so.1 in the shadow directory"
echo "=> Cleaning up..."
[ -n "$NO_REMOVE_NVIDIA" ] || rm -vf NVIDIA-FreeBSD-x86-${NV}.tar.gz \
|| terminate 6 "Failed to remove files"
echo "===> i386-wine-${WINE} successfully patched for nvidia-driver-${NVIDIA}"

View file

@ -1,47 +0,0 @@
#!/bin/sh
export PREFIX=${PKG_PREFIX:-/usr/local}
export WINE=$1
LIBGLDIR=.libGL
case "$2" in
DEINSTALL)
sh ${PREFIX}/share/wine/patch-nvidia.sh -d
rm -r ${PREFIX}/lib32/dri
;;
POST-INSTALL)
mkdir -p ${PREFIX}/lib32/dri
for dri in $(cd ${PREFIX}/lib32/${LIBGLDIR}/dri/; echo *.so)
do
ln -s ../${LIBGLDIR}/dri/${dri} ${PREFIX}/lib32/dri/${dri}
done
sh ${PREFIX}/share/wine/patch-nvidia.sh -n > /dev/null 2>&1
case $? in
0)
cat << _EOF
$1 has been patched for use with nvidia graphics driver. If
the version of the installed nvidia graphics driver changes execute (as root):
_EOF
;;
1)
cat << _EOF
This system does not appear to use a nvidia graphics driver. If this changes
and then every time the driver's version changes execute (as root)
_EOF
;;
*)
cat << _EOF
A NVIDIA GRAPHICS DRIVER HAS BEEN DETECTED ON THIS SYSTEM AND THE AUTOMATED
PATCHING HAS FAILED, execute (as root)
_EOF
;;
esac
cat << _EOF
sh ${PREFIX}/share/wine/patch-nvidia.sh
to get 2D/3D acceleration to work with the nvidia driver. Without this wine
will crash when a program requires 2D/3D graphics acceleration.
_EOF
;;
esac

View file

@ -1,33 +0,0 @@
[
{ type: install
message: <<EOM
Some ZFS tuning guides recommend setting KVA_PAGES=512 in your kernel
configuration. This is incompatible with Wine. The maximum possible
is KVA_PAGES=500, which should still be enough for ZFS.
The port also installs some of Wine's documentation which describes
additional programs that are not in the manual pages under
%%PREFIX%%/share/doc/wine
There is more in the source tree but the others are only useful in
conjunction with the rest of the source tree.
---
This package requires procfs(5) mounted on /proc.
If you have not done it yet, please do the following:
mount -t procfs proc /proc
To make it permanent, you need the following line in /etc/fstab:
proc /proc procfs rw 0 0
---
This winebuild was built by (Alexander88207) Alexander Vereeken <Alexander88207@protonmail.com>
If you have any issues [or even need help to run an application] dont fear to create an issue or ask him via E-Mail, in forums or Discord.
Have Fun!
---
EOM
}
]

View file

@ -1,15 +0,0 @@
Wine is a Microsoft Windows compatibility layer (or program loader)
capable of running Windows applications on i386 and compatible CPUs.
Windows programs running in Wine act as native programs would, running
without the performance or memory usage penalties of an emulator, with
a similar look and feel to other applications on your desktop.
Many applications already work, more or less, including versions of
Microsoft Office and many games.
If you receive a message of "Did you reconfigure your kernel with
"options USER_LDT"?" add the line
machdep.max_ldt_segment="2048"
to /boot/loader.conf and reboot.
WWW: https://www.winehq.org

File diff suppressed because it is too large Load diff

View file

@ -30,7 +30,7 @@ USE_SDL= sdl2
CPE_VENDOR= winehq
CONFLICTS_INSTALL= wine-[0-9]* i386-wine-[0-9]*
CONFLICTS_INSTALL= wine-[0-9]*
GNU_CONFIGURE= yes
CONFIGURE_ARGS+=--verbose \

View file

@ -27,7 +27,7 @@ USE_SDL= sdl2
CPE_VENDOR= winehq
CONFLICTS_INSTALL= wine-devel-[0-9]* i386-wine-[0-9]*
CONFLICTS_INSTALL= wine-devel-[0-9]*
GNU_CONFIGURE= yes
CONFIGURE_ARGS+=--verbose \
@ -120,22 +120,16 @@ X11_LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \
libvulkan.so:graphics/vulkan-loader \
libvkd3d.so:graphics/vkd3d
# Include this only if it has not been already included by the
# i386-wine slave port.
.ifndef WINE_SLAVE_BUILD
.include <bsd.port.pre.mk>
.endif
.if ${ARCH} == amd64
# Wine is composed of three parts:
# - wine (aka this port) is the 32-bit component and runs 32-bit programs (on FreeBSD/i386)
# - wine64 (aka this part of this port) is the 64-bit component and runs 64-bit programs
# (on FreeBSD/amd64)
# - wow64 (a subset of emulators/i386-wine-devel) is a part of the 64-bit component that runs
# 32-bit programs (on FreeBSD/amd64)
# We also currently have:
# - "wine32" (aka emulators/i386-wine-devel) is the 32-bit component and runs 32-bit programs
# (on FreeBSD/amd64). This will be superseded by wow64.
# - wine (aka this port on FreeBSD/i386) is the 32-bit component
# and runs 32-bit programs.
# - wine64 (aka this part of this port on FreeBSD/amd64) is the
# 64-bit component and runs 64-bit programs.
# - wow64 (aka this port built on FreeBSD/i386) is a part of the
# 64-bit component [wine64] that runs 32-bit programs on FreeBSD/amd64.
# --libdir is required since Wine defaults to "${PREFIX}/lib64" on amd64.
CONFIGURE_ARGS+= --enable-win64 --libdir=${PREFIX}/lib
@ -174,6 +168,4 @@ post-install:
${INSTALL_DATA} ${WRKSRC}/programs/winedbg/README ${STAGEDIR}${DOCSDIR}/README.winedbg
${INSTALL_DATA} ${WRKSRC}/tools/winedump/README ${STAGEDIR}${DOCSDIR}/README.winedump
.ifndef WINE_SLAVE_BUILD
.include <bsd.port.post.mk>
.endif

View file

@ -7,10 +7,6 @@ a similar look and feel to other applications on your desktop.
Many applications already work, more or less, including versions of
Microsoft Office and many games.
Use this port for 32-bit Windows binaries in an i386 environment or
64-bit Windows binaries in an amd64 environment; use emulators/i386-wine
for 32-bit Windows binaries in an amd64 environment.
If you receive a message of "Did you reconfigure your kernel with
"options USER_LDT"?" add the line
machdep.max_ldt_segment="2048"