emulators/wine: fix desktop file on amd64

Reviewed by:	gerald
Approved by:	dbn
Differential Revision:	https://reviews.freebsd.org/D15489
This commit is contained in:
Tobias C. Berner 2018-06-03 20:03:49 +00:00
parent 6481e033ea
commit 954b333fe3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=471521

View File

@ -3,6 +3,7 @@
PORTNAME= wine
DISTVERSION= 3.0.1
PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= emulators
MASTER_SITES= SF/${PORTNAME}/Source \
@ -129,8 +130,10 @@ CPPFLAGS+= -D__builtin_ms_va_list=__builtin_va_list \
.endif
# Wine assumes a WoW64 package is available however WoW64 is not yet available on FreeBSD.
# Also fix the desktop file.
post-patch:
${REINPLACE_CMD} 's|/wine|/wine64|g' ${WRKSRC}/tools/wineapploader.in
${REINPLACE_CMD} '/Exec/s|wine|wine64|g' ${WRKSRC}/loader/wine.desktop
.else
PLIST_SUB+= WINE32="" WINE64="@comment "