Lines 3-9
Link Here
|
3 |
|
3 |
|
4 |
PORTNAME= wine |
4 |
PORTNAME= wine |
5 |
DISTVERSION= 4.21 |
5 |
DISTVERSION= 4.21 |
6 |
PORTEPOCH= 1 |
6 |
PORTEPOCH= 2 |
7 |
CATEGORIES= emulators |
7 |
CATEGORIES= emulators |
8 |
MASTER_SITES= SF/${PORTNAME}/Source \ |
8 |
MASTER_SITES= SF/${PORTNAME}/Source \ |
9 |
http://mirrors.ibiblio.org/wine/source/4.x/ |
9 |
http://mirrors.ibiblio.org/wine/source/4.x/ |
Lines 27-33
LIB_DEPENDS= libFAudio.so:audio/faudio \
Link Here
|
27 |
USES= bison desktop-file-utils gmake localbase shebangfix tar:xz xorg |
27 |
USES= bison desktop-file-utils gmake localbase shebangfix tar:xz xorg |
28 |
|
28 |
|
29 |
CONFLICTS_INSTALL= wine-[0-9]* wine-staging-[0-9]* i386-wine-[0-9]* \ |
29 |
CONFLICTS_INSTALL= wine-[0-9]* wine-staging-[0-9]* i386-wine-[0-9]* \ |
30 |
i386-wine-staging-[0-9]* i386-wine-devel-[0-9]* |
30 |
i386-wine-staging-[0-9]* |
31 |
|
31 |
|
32 |
GNU_CONFIGURE= yes |
32 |
GNU_CONFIGURE= yes |
33 |
CONFIGURE_ARGS+=--verbose \ |
33 |
CONFIGURE_ARGS+=--verbose \ |
Lines 55-66
SHEBANG_FILES= tools/make_requests tools/winemaker/winemaker \
Link Here
|
55 |
|
55 |
|
56 |
SUB_FILES= pkg-message |
56 |
SUB_FILES= pkg-message |
57 |
|
57 |
|
58 |
PORTDATA= l_intl.nls wine.inf |
|
|
59 |
|
60 |
OPTIONS_DEFINE= CUPS DOCS DOSBOX GCC GNUTLS HAL LDAP LIBXSLT MPG123 OPENAL STAGING V4L VKD3D VULKAN WINEMAKER X11 GECKO MONO |
58 |
OPTIONS_DEFINE= CUPS DOCS DOSBOX GCC GNUTLS HAL LDAP LIBXSLT MPG123 OPENAL STAGING V4L VKD3D VULKAN WINEMAKER X11 GECKO MONO |
61 |
OPTIONS_DEFAULT=GCC GNUTLS X11 |
59 |
OPTIONS_DEFAULT=GCC GNUTLS X11 |
62 |
OPTIONS_SUB= yes |
60 |
OPTIONS_SUB= yes |
63 |
|
61 |
|
|
|
62 |
OPTIONS_DEFINE_amd64=WOW64 |
63 |
|
64 |
.if defined(WINE_CROSS_BUILD_OPTIONS) |
65 |
OPTIONS_DEFINE+=${WINE_CROSS_BUILD_OPTIONS} |
66 |
.endif |
67 |
|
64 |
DOSBOX_DESC= Use DOSBox to run MS-DOS programs |
68 |
DOSBOX_DESC= Use DOSBox to run MS-DOS programs |
65 |
LIBXSLT_DESC= Use libxslt (only used by msxml3.dll) |
69 |
LIBXSLT_DESC= Use libxslt (only used by msxml3.dll) |
66 |
VKD3D_DESC= Direct3D 12 support via Vulkan |
70 |
VKD3D_DESC= Direct3D 12 support via Vulkan |
Lines 68-73
VULKAN_DESC= Vulkan API support
Link Here
|
68 |
WINEMAKER_DESC= Fully support winemaker (requires Perl) |
72 |
WINEMAKER_DESC= Fully support winemaker (requires Perl) |
69 |
GECKO_DESC= Bundle Gecko MSI package for Wine |
73 |
GECKO_DESC= Bundle Gecko MSI package for Wine |
70 |
MONO_DESC= Bundle Mono MSI package for Wine |
74 |
MONO_DESC= Bundle Mono MSI package for Wine |
|
|
75 |
WOW64_DESC= Allow simultaneous installation of 32- and 64-bit Wine |
71 |
|
76 |
|
72 |
CUPS_CONFIGURE_WITH= cups |
77 |
CUPS_CONFIGURE_WITH= cups |
73 |
CUPS_LIB_DEPENDS= libcups.so:print/cups |
78 |
CUPS_LIB_DEPENDS= libcups.so:print/cups |
Lines 122-127
X11_LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \
Link Here
|
122 |
|
127 |
|
123 |
.include <bsd.port.pre.mk> |
128 |
.include <bsd.port.pre.mk> |
124 |
|
129 |
|
|
|
130 |
.if empty(PORT_OPTIONS:MWOW64) || ${ARCH} == amd64 |
131 |
PORTDATA= l_intl.nls wine.inf |
132 |
.endif |
133 |
|
134 |
.if empty(PORT_OPTIONS:MWOW64) |
135 |
CONFLICTS_INSTALL+= i386-wine-devel-[0-9]* |
136 |
.endif |
137 |
|
125 |
.if ${ARCH} == amd64 |
138 |
.if ${ARCH} == amd64 |
126 |
# Wine is composed of three parts: |
139 |
# Wine is composed of three parts: |
127 |
# - wine (aka this port) is the 32-bit component and runs 32-bit programs (on FreeBSD/i386) |
140 |
# - wine (aka this port) is the 32-bit component and runs 32-bit programs (on FreeBSD/i386) |
Lines 136-148
X11_LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \
Link Here
|
136 |
# --libdir is required since Wine defaults to "${PREFIX}/lib64" on amd64. |
149 |
# --libdir is required since Wine defaults to "${PREFIX}/lib64" on amd64. |
137 |
CONFIGURE_ARGS+= --enable-win64 --libdir=${PREFIX}/lib |
150 |
CONFIGURE_ARGS+= --enable-win64 --libdir=${PREFIX}/lib |
138 |
PLIST_SUB+= WINE32="@comment " WINE64="" |
151 |
PLIST_SUB+= WINE32="@comment " WINE64="" |
139 |
|
|
|
140 |
# Wine assumes a WoW64 package is available, however WoW64 is not yet |
141 |
# available on FreeBSD. Also fix the desktop file. |
142 |
post-patch: |
143 |
${REINPLACE_CMD} 's|/wine|/wine64|g' ${WRKSRC}/tools/wineapploader.in |
144 |
${REINPLACE_CMD} '/Exec/s|wine|wine64|g' ${WRKSRC}/loader/wine.desktop |
145 |
|
146 |
.else |
152 |
.else |
147 |
PLIST_SUB+= WINE32="" WINE64="@comment " |
153 |
PLIST_SUB+= WINE32="" WINE64="@comment " |
148 |
.endif |
154 |
.endif |
Lines 175-180
post-install:
Link Here
|
175 |
.endfor |
181 |
.endfor |
176 |
${INSTALL_DATA} ${WRKSRC}/programs/winedbg/README ${STAGEDIR}${DOCSDIR}/README.winedbg |
182 |
${INSTALL_DATA} ${WRKSRC}/programs/winedbg/README ${STAGEDIR}${DOCSDIR}/README.winedbg |
177 |
${INSTALL_DATA} ${WRKSRC}/tools/winedump/README ${STAGEDIR}${DOCSDIR}/README.winedump |
183 |
${INSTALL_DATA} ${WRKSRC}/tools/winedump/README ${STAGEDIR}${DOCSDIR}/README.winedump |
|
|
184 |
.if ${ARCH} == i386 && ${PORT_OPTIONS:MWOW64} |
185 |
for i in `${GREP} ^bin ${TMPPLIST} | ${XARGS} -n1 basename` ; do \ |
186 |
[ "$${i}" = "wine" ] || ${RM} ${STAGEDIR}${PREFIX}/bin/$${i} ${STAGEDIR}${PREFIX}/bin32/$${i} ; \ |
187 |
done |
188 |
${RM} -r ${STAGEDIR}${PREFIX}/include/wine |
189 |
${RM} -r ${STAGEDIR}${PREFIX}/man |
190 |
${RM} -r ${STAGEDIR}${PREFIX}/share/wine/fonts |
191 |
${RM} -r ${STAGEDIR}${PREFIX}/share/wine/gecko |
192 |
${RM} -r ${STAGEDIR}${PREFIX}/share/wine/mono |
193 |
${RM} -r ${STAGEDIR}${DOCSDIR} |
194 |
${RM} ${STAGEDIR}${PREFIX}/share/applications/wine.desktop |
195 |
${RM} ${STAGEDIR}${PREFIX}/share/wine/*.inf |
196 |
${RM} ${STAGEDIR}${PREFIX}/share/wine/*.nls |
197 |
${REINPLACE_CMD} -n -E -e "/^(@|bin\/wine$$|lib\/)/p" ${TMPPLIST} |
198 |
.endif |
178 |
|
199 |
|
179 |
check-wine-devel-vs-staging: |
200 |
check-wine-devel-vs-staging: |
180 |
@${GREP} %%STAGING%% pkg-plist | while read f; do \ |
201 |
@${GREP} %%STAGING%% pkg-plist | while read f; do \ |