emulators/wine-devel: Use option helpers for WAYLAND

PLIST_SUB was already active, so nothing to explicitly do regarding
pkg-plist.

PR:		282825
Suggested by:	vvd
This commit is contained in:
Gerald Pfeifer 2025-01-15 16:02:49 +00:00
parent 682a81f00b
commit 2922123124

View file

@ -113,6 +113,8 @@ V4L_CONFIGURE_WITH= v4l2
V4L_BUILD_DEPENDS= ${LOCALBASE}/include/linux/videodev2.h:multimedia/v4l_compat
V4L_LIB_DEPENDS= libv4l2.so:multimedia/libv4l
WAYLAND_CONFIGURE_WITH= wayland
WINEMAKER_RUN_DEPENDS= p5-XML-LibXML>0:textproc/p5-XML-LibXML
X11_CONFIGURE_WITH= x fontconfig freetype opengl xinerama xinput2 xrandr xrender
@ -132,14 +134,6 @@ CONFIGURE_ARGS+= --without-gstreamer
PLIST_SUB+= GSTREAMER="@comment "
.endif
.if ${PORT_OPTIONS:MWAYLAND}
CONFIGURE_ARGS+= --with-wayland
PLIST_SUB+= WAYLAND=""
.else
CONFIGURE_ARGS+= --without-wayland
PLIST_SUB+= WAYLAND="@comment "
.endif
.if ${ARCH} == amd64
# Wine is composed of three parts:
# - wine (aka this port on FreeBSD/i386) is the 32-bit component