Lines 1-5
Link Here
|
1 |
PORTNAME= wine |
1 |
PORTNAME= wine |
2 |
DISTVERSION= 8.19 |
2 |
DISTVERSION= 8.19 |
|
|
3 |
PORTREVISION= 2 |
3 |
PORTEPOCH= 1 |
4 |
PORTEPOCH= 1 |
4 |
CATEGORIES= emulators |
5 |
CATEGORIES= emulators |
5 |
MASTER_SITES= https://dl.winehq.org/wine/source/8.x/ |
6 |
MASTER_SITES= https://dl.winehq.org/wine/source/8.x/ |
Lines 15-65
LICENSE_FILE= ${WRKSRC}/LICENSE
Link Here
|
15 |
|
16 |
|
16 |
ONLY_FOR_ARCHS= amd64 i386 |
17 |
ONLY_FOR_ARCHS= amd64 i386 |
17 |
|
18 |
|
18 |
BUILD_DEPENDS= ${LOCALBASE}/bin/flex:textproc/flex llvm${_LLVM_VERSION}>=0:devel/llvm${_LLVM_VERSION} |
19 |
BUILD_DEPENDS= ${LOCALBASE}/bin/flex:textproc/flex \ |
|
|
20 |
llvm${_LLVM_VERSION}>=0:devel/llvm${_LLVM_VERSION} |
19 |
|
21 |
|
20 |
USES= bison cpe desktop-file-utils gmake localbase \ |
22 |
USES= bison cpe desktop-file-utils gmake localbase pkgconfig sdl \ |
21 |
pkgconfig sdl shebangfix tar:xz |
23 |
shebangfix tar:xz |
|
|
24 |
CPE_VENDOR= winehq |
22 |
USE_GCC= yes |
25 |
USE_GCC= yes |
|
|
26 |
.if !defined(USE_LDCONFIG32) |
27 |
USE_LDCONFIG= ${_WINELIBDIR} ${_WINELIBDIR}/wine |
28 |
.endif |
23 |
USE_SDL= sdl2 |
29 |
USE_SDL= sdl2 |
24 |
|
30 |
|
25 |
CPE_VENDOR= winehq |
31 |
SHEBANG_FILES= tools/make_requests tools/winedump/function_grep.pl \ |
|
|
32 |
tools/winemaker/winemaker |
33 |
|
34 |
GNU_CONFIGURE= yes |
35 |
CONFIGURE_ARGS+= --disable-kerberos \ |
36 |
--disable-tests \ |
37 |
--verbose \ |
38 |
--with-mingw \ |
39 |
--with-pthread \ |
40 |
--with-sdl \ |
41 |
--without-capi \ |
42 |
--without-coreaudio \ |
43 |
--without-dbus \ |
44 |
--without-gettext \ |
45 |
--without-gettextpo \ |
46 |
--without-gphoto \ |
47 |
--without-gssapi \ |
48 |
--without-inotify \ |
49 |
--without-krb5 \ |
50 |
--without-netapi \ |
51 |
--without-opencl \ |
52 |
--without-osmesa \ |
53 |
--without-pcap \ |
54 |
--without-pcsclite \ |
55 |
--without-pulse \ |
56 |
--without-sane \ |
57 |
--without-udev \ |
58 |
--without-unwind \ |
59 |
--without-usb \ |
60 |
--without-wayland \ |
61 |
CROSSCC="clang" \ |
62 |
CROSSCFLAGS="-isystem ${FILESDIR}/clang" |
63 |
CONFIGURE_ENV= ac_cv_prog_STRIP="${STRIP_CMD}" \ |
64 |
CPPBIN="${CPP}" \ |
65 |
FLEX="${LOCALBASE}/bin/flex" |
26 |
|
66 |
|
27 |
CONFLICTS_INSTALL= wine |
67 |
CONFLICTS_INSTALL= wine |
28 |
|
68 |
|
29 |
GNU_CONFIGURE= yes |
|
|
30 |
CONFIGURE_ARGS+=--verbose \ |
31 |
--disable-kerberos \ |
32 |
--disable-tests \ |
33 |
--without-capi \ |
34 |
--without-coreaudio \ |
35 |
--without-dbus \ |
36 |
--without-gettext --without-gettextpo \ |
37 |
--without-gphoto \ |
38 |
--without-gssapi \ |
39 |
--without-inotify \ |
40 |
--without-krb5 \ |
41 |
--with-mingw CROSSCC="clang" CROSSCFLAGS="-isystem ${FILESDIR}/clang" \ |
42 |
--without-netapi \ |
43 |
--without-opencl \ |
44 |
--without-osmesa \ |
45 |
--without-pcap \ |
46 |
--without-pcsclite \ |
47 |
--with-pthread \ |
48 |
--without-pulse \ |
49 |
--without-sane \ |
50 |
--with-sdl \ |
51 |
--without-udev \ |
52 |
--without-unwind \ |
53 |
--without-usb \ |
54 |
--without-wayland |
55 |
CONFIGURE_ENV= CPPBIN="${CPP}" FLEX="${LOCALBASE}/bin/flex" |
56 |
WINELIBDIR= ${PREFIX}/lib |
57 |
.if !defined(USE_LDCONFIG32) |
58 |
USE_LDCONFIG= ${WINELIBDIR} ${WINELIBDIR}/wine |
59 |
.endif |
60 |
SHEBANG_FILES= tools/make_requests tools/winemaker/winemaker \ |
61 |
tools/winedump/function_grep.pl |
62 |
|
63 |
BINARY_ALIAS+= clang=${LOCALBASE}/bin/clang${_LLVM_VERSION} \ |
69 |
BINARY_ALIAS+= clang=${LOCALBASE}/bin/clang${_LLVM_VERSION} \ |
64 |
lld-link=${LOCALBASE}/bin/lld-link${_LLVM_VERSION} |
70 |
lld-link=${LOCALBASE}/bin/lld-link${_LLVM_VERSION} |
65 |
|
71 |
|
Lines 67-117
SUB_FILES= pkg-message
Link Here
|
67 |
|
73 |
|
68 |
PORTDATA= wine.inf |
74 |
PORTDATA= wine.inf |
69 |
|
75 |
|
70 |
OPTIONS_DEFINE= CUPS DOCS DOSBOX GNUTLS V4L WINEMAKER X11 GECKO MONO |
76 |
OPTIONS_DEFINE= CUPS DOCS DOSBOX GECKO GNUTLS MONO V4L WINEMAKER X11 |
71 |
OPTIONS_DEFAULT=ALSA GNUTLS X11 |
77 |
OPTIONS_DEFAULT= ALSA GNUTLS X11 |
72 |
OPTIONS_RADIO= AUDIO |
78 |
OPTIONS_RADIO= AUDIO |
73 |
OPTIONS_RADIO_AUDIO= ALSA OSS |
79 |
OPTIONS_RADIO_AUDIO= ALSA OSS |
74 |
OPTIONS_SUB= yes |
80 |
OPTIONS_SUB= yes |
75 |
|
81 |
|
76 |
DOSBOX_DESC= Use DOSBox to run MS-DOS programs |
82 |
DOSBOX_DESC= Use DOSBox to run MS-DOS programs |
77 |
WINEMAKER_DESC= Fully support winemaker (requires Perl) |
|
|
78 |
GECKO_DESC= Bundle Gecko MSI package for Wine |
83 |
GECKO_DESC= Bundle Gecko MSI package for Wine |
79 |
MONO_DESC= Bundle Mono MSI package for Wine |
84 |
MONO_DESC= Bundle Mono MSI package for Wine |
|
|
85 |
WINEMAKER_DESC= Fully support winemaker (requires Perl) |
80 |
|
86 |
|
81 |
ALSA_CONFIGURE_WITH= alsa |
|
|
82 |
ALSA_USES= gstreamer |
83 |
ALSA_LIB_DEPENDS= libasound.so:audio/alsa-lib |
87 |
ALSA_LIB_DEPENDS= libasound.so:audio/alsa-lib |
84 |
ALSA_RUN_DEPENDS= alsa-plugins>0:audio/alsa-plugins |
88 |
ALSA_RUN_DEPENDS= alsa-plugins>0:audio/alsa-plugins |
85 |
|
89 |
ALSA_USES= gnome gstreamer |
86 |
CUPS_CONFIGURE_WITH= cups |
90 |
ALSA_USE= GNOME=glib20 |
|
|
91 |
ALSA_CONFIGURE_WITH= alsa |
87 |
CUPS_LIB_DEPENDS= libcups.so:print/cups |
92 |
CUPS_LIB_DEPENDS= libcups.so:print/cups |
88 |
|
93 |
CUPS_CONFIGURE_WITH= cups |
89 |
DOSBOX_RUN_DEPENDS= dosbox:emulators/dosbox |
94 |
DOSBOX_RUN_DEPENDS= dosbox:emulators/dosbox |
90 |
|
|
|
91 |
GECKO_RUN_DEPENDS= wine-gecko-devel>0:emulators/wine-gecko-devel |
95 |
GECKO_RUN_DEPENDS= wine-gecko-devel>0:emulators/wine-gecko-devel |
92 |
|
|
|
93 |
GNUTLS_CONFIGURE_WITH= gnutls |
94 |
GNUTLS_LIB_DEPENDS= libgnutls.so:security/gnutls |
96 |
GNUTLS_LIB_DEPENDS= libgnutls.so:security/gnutls |
95 |
|
97 |
GNUTLS_CONFIGURE_WITH= gnutls |
96 |
MONO_RUN_DEPENDS= wine-mono-devel>0:emulators/wine-mono-devel |
98 |
MONO_RUN_DEPENDS= wine-mono-devel>0:emulators/wine-mono-devel |
97 |
|
99 |
OSS_USES= gnome gstreamer |
|
|
100 |
OSS_USE= GNOME=glib20 |
98 |
OSS_CONFIGURE_WITH= oss |
101 |
OSS_CONFIGURE_WITH= oss |
99 |
OSS_USES= gstreamer |
|
|
100 |
|
101 |
V4L_CONFIGURE_WITH= v4l2 |
102 |
V4L_BUILD_DEPENDS= ${LOCALBASE}/include/linux/videodev2.h:multimedia/v4l_compat |
102 |
V4L_BUILD_DEPENDS= ${LOCALBASE}/include/linux/videodev2.h:multimedia/v4l_compat |
103 |
V4L_LIB_DEPENDS= libv4l2.so:multimedia/libv4l |
103 |
V4L_LIB_DEPENDS= libv4l2.so:multimedia/libv4l |
104 |
|
104 |
V4L_CONFIGURE_WITH= v4l2 |
105 |
WINEMAKER_RUN_DEPENDS= p5-XML-LibXML>0:textproc/p5-XML-LibXML |
105 |
WINEMAKER_RUN_DEPENDS= p5-XML-LibXML>0:textproc/p5-XML-LibXML |
106 |
|
|
|
107 |
X11_CONFIGURE_WITH= x fontconfig freetype opengl xinerama xinput2 xrandr xrender |
108 |
X11_USES= gl xorg |
109 |
X11_USE= GL=glu XORG=x11,xext,xcomposite,xcursor,xi,xinerama,xrandr,xrender |
110 |
X11_LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \ |
106 |
X11_LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \ |
111 |
libfreetype.so:print/freetype2 \ |
107 |
libfreetype.so:print/freetype2 \ |
112 |
libvulkan.so:graphics/vulkan-loader |
108 |
libvulkan.so:graphics/vulkan-loader |
|
|
109 |
X11_USES= gl xorg |
110 |
X11_USE= GL=glu \ |
111 |
XORG=x11,xcomposite,xcursor,xext,xi,xinerama,xrandr,xrender |
112 |
X11_CONFIGURE_WITH= fontconfig freetype opengl x xinerama xinput2 xrandr \ |
113 |
xrender |
113 |
|
114 |
|
114 |
.include <bsd.port.pre.mk> |
115 |
_WINELIBDIR= ${PREFIX}/lib |
|
|
116 |
|
117 |
.include <bsd.port.options.mk> |
115 |
|
118 |
|
116 |
.if ${PORT_OPTIONS:MALSA} || ${PORT_OPTIONS:MOSS} |
119 |
.if ${PORT_OPTIONS:MALSA} || ${PORT_OPTIONS:MOSS} |
117 |
CONFIGURE_ARGS+= --with-gstreamer |
120 |
CONFIGURE_ARGS+= --with-gstreamer |
Lines 137-177
_LLVM_VERSION= ${LLVM_DEFAULT}
Link Here
|
137 |
# 64-bit component [wine64] that runs 32-bit programs on FreeBSD/amd64. |
140 |
# 64-bit component [wine64] that runs 32-bit programs on FreeBSD/amd64. |
138 |
|
141 |
|
139 |
# --libdir is required since Wine defaults to "${PREFIX}/lib64" on amd64. |
142 |
# --libdir is required since Wine defaults to "${PREFIX}/lib64" on amd64. |
140 |
CONFIGURE_ARGS+= --enable-win64 --libdir=${PREFIX}/lib |
143 |
CONFIGURE_ARGS+= --enable-win64 \ |
141 |
PLIST_SUB+= WINE32="@comment " WINE64="" WINEARCH="x86_64" |
144 |
--libdir=${PREFIX}/lib |
|
|
145 |
PLIST_SUB+= WINE32="@comment " \ |
146 |
WINE64="" \ |
147 |
WINEARCH="x86_64" |
142 |
|
148 |
|
143 |
# Wine assumes a WoW64 package is available, which is not the case on |
149 |
# Wine assumes a WoW64 package is available, which is not the case on |
144 |
# FreeBSD yet. |
150 |
# FreeBSD yet. |
145 |
post-patch: |
151 |
post-patch: |
146 |
${REINPLACE_CMD} '/Exec/s|wine|wine64|g' ${WRKSRC}/loader/wine.desktop |
152 |
${REINPLACE_CMD} '/Exec/s|wine|wine64|g' \ |
147 |
|
153 |
${WRKSRC}/loader/wine.desktop |
148 |
.else |
154 |
.else |
149 |
EXTRA_PATCHES+= files/extra-patch-tools-winebuild-res32 |
155 |
EXTRA_PATCHES+= files/extra-patch-tools-winebuild-res32 |
150 |
PLIST_SUB+= WINE32="" WINE64="@comment " WINEARCH="i386" |
156 |
PLIST_SUB+= WINE32="" \ |
|
|
157 |
WINE64="@comment " \ |
158 |
WINEARCH="i386" |
151 |
.endif |
159 |
.endif |
152 |
|
160 |
|
153 |
pre-build: |
161 |
pre-build: |
154 |
cd ${WRKSRC} && ${MAKE_CMD} depend |
162 |
(cd ${WRKSRC} && \ |
|
|
163 |
${MAKE_CMD} depend) |
155 |
|
164 |
|
156 |
post-install: |
165 |
post-install: |
157 |
.if ${ARCH} == i386 |
166 |
.if ${ARCH} == i386 |
158 |
${MV} ${STAGEDIR}${PREFIX}/bin/wineserver ${STAGEDIR}${PREFIX}/bin/wineserver32 |
167 |
${MV} ${STAGEDIR}${PREFIX}/bin/wineserver \ |
159 |
${MV} ${STAGEDIR}${PREFIX}/bin/wine ${STAGEDIR}${PREFIX}/bin/wine.bin |
168 |
${STAGEDIR}${PREFIX}/bin/wineserver32 |
160 |
-${ELFCTL} -e +noaslr ${STAGEDIR}${PREFIX}/bin/wine.bin |
169 |
${MV} ${STAGEDIR}${PREFIX}/bin/wine \ |
161 |
${INSTALL_SCRIPT} ${FILESDIR}/wine.sh ${STAGEDIR}${PREFIX}/bin/wine |
170 |
${STAGEDIR}${PREFIX}/bin/wine.bin |
|
|
171 |
${ELFCTL} -e +noaslr ${STAGEDIR}${PREFIX}/bin/wine.bin |
172 |
${INSTALL_SCRIPT} ${FILESDIR}/wine.sh \ |
173 |
${STAGEDIR}${PREFIX}/bin/wine |
162 |
.else |
174 |
.else |
163 |
${MV} ${STAGEDIR}${PREFIX}/bin/wine64 ${STAGEDIR}${PREFIX}/bin/wine64.bin |
175 |
${MV} ${STAGEDIR}${PREFIX}/bin/wine64 \ |
164 |
-${ELFCTL} -e +noaslr ${STAGEDIR}${PREFIX}/bin/wine64.bin |
176 |
${STAGEDIR}${PREFIX}/bin/wine64.bin |
165 |
${INSTALL_SCRIPT} ${FILESDIR}/wine.sh ${STAGEDIR}${PREFIX}/bin/wine64 |
177 |
${ELFCTL} -e +noaslr ${STAGEDIR}${PREFIX}/bin/wine64.bin |
166 |
${INSTALL_SCRIPT} ${FILESDIR}/wine-wow64.sh ${STAGEDIR}${PREFIX}/bin/wine |
178 |
${INSTALL_SCRIPT} ${FILESDIR}/wine.sh \ |
167 |
${INSTALL_SCRIPT} ${FILESDIR}/pkg32.sh ${STAGEDIR}${DATADIR}/pkg32.sh |
179 |
${STAGEDIR}${PREFIX}/bin/wine64 |
|
|
180 |
${INSTALL_SCRIPT} ${FILESDIR}/wine-wow64.sh \ |
181 |
${STAGEDIR}${PREFIX}/bin/wine |
182 |
${INSTALL_SCRIPT} ${FILESDIR}/pkg32.sh \ |
183 |
${STAGEDIR}${DATADIR}/pkg32.sh |
168 |
.endif |
184 |
.endif |
169 |
|
185 |
${MKDIR} ${STAGEDIR}${DOCSDIR} |
170 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |
|
|
171 |
.for i in README ANNOUNCE AUTHORS |
186 |
.for i in README ANNOUNCE AUTHORS |
172 |
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR} |
187 |
${INSTALL_DATA} ${WRKSRC}/${i} \ |
|
|
188 |
${STAGEDIR}${DOCSDIR} |
173 |
.endfor |
189 |
.endfor |
174 |
${INSTALL_DATA} ${WRKSRC}/programs/winedbg/README ${STAGEDIR}${DOCSDIR}/README.winedbg |
190 |
${INSTALL_DATA} ${WRKSRC}/programs/winedbg/README \ |
175 |
${INSTALL_DATA} ${WRKSRC}/tools/winedump/README ${STAGEDIR}${DOCSDIR}/README.winedump |
191 |
${STAGEDIR}${DOCSDIR}/README.winedbg |
|
|
192 |
${INSTALL_DATA} ${WRKSRC}/tools/winedump/README \ |
193 |
${STAGEDIR}${DOCSDIR}/README.winedump |
176 |
|
194 |
|
177 |
.include <bsd.port.post.mk> |
195 |
.include <bsd.port.mk> |
178 |
- |
|
|