Bug 183440 - [PATCH] emulators/wine-devel: optionize x11 support
Summary: [PATCH] emulators/wine-devel: optionize x11 support
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Gerald Pfeifer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-29 13:40 UTC by Dmitry Marakasov
Modified: 2013-11-08 18:50 UTC (History)
1 user (show)

See Also:


Attachments
wine-devel-1.7.5,1.patch (4.37 KB, patch)
2013-10-29 13:40 UTC, Dmitry Marakasov
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Marakasov 2013-10-29 13:40:00 UTC
Make X11 support optional. Disabling it is really useful in server environements for running console-only applications.

Port maintainer (gerald@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99_8 (mode: change, diff: SVN)
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-10-29 13:40:08 UTC
Responsible Changed
From-To: freebsd-ports-bugs->gerald

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 gerald 2013-11-04 00:55:15 UTC
On Tue, 29 Oct 2013, edwin@FreeBSD.org wrote:
> Synopsis: [PATCH] emulators/wine-devel: optionize x11 support

Assuming you have tested this in both the default case and the
one without X11, this is fine with a few changes:

 - Something looks strange with indentation of the new LIB_DEPENDS+=
   lines (for X11).

 - Format the two new CONFIGURE_ARGS+= lines so that they do not exceed
   79 (better 78) columns per line; similiar to the original large
   CONFIGURE_ARGS statement.

 - Replace the two new PLIST_SUB lines by using the new OPTIONS_SUB.

 - Please leave the PORTDATA change out for the time being.

With those change:

  Approved by:	gerald

Thanks,
Gerald
Comment 3 dfilter service freebsd_committer freebsd_triage 2013-11-08 18:23:22 UTC
Author: amdmi3
Date: Fri Nov  8 18:23:15 2013
New Revision: 333255
URL: http://svnweb.freebsd.org/changeset/ports/333255

Log:
  - Make X11 support optional
  
  PR:		183440
  Submitted by:	amdmi3
  Approved by:	gerald

Modified:
  head/emulators/wine-devel/Makefile
  head/emulators/wine-devel/pkg-plist

Modified: head/emulators/wine-devel/Makefile
==============================================================================
--- head/emulators/wine-devel/Makefile	Fri Nov  8 18:22:35 2013	(r333254)
+++ head/emulators/wine-devel/Makefile	Fri Nov  8 18:23:15 2013	(r333255)
@@ -17,12 +17,7 @@ LICENSE_COMB=	dual
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
 BUILD_DEPENDS=	${LOCALBASE}/bin/flex:${PORTSDIR}/textproc/flex
-LIB_DEPENDS=	libfontconfig.so:${PORTSDIR}/x11-fonts/fontconfig \
-		libfreetype.so:${PORTSDIR}/print/freetype2 \
-		libjpeg.so:${PORTSDIR}/graphics/jpeg \
-		liblcms2.so:${PORTSDIR}/graphics/lcms2 \
-		libpng15.so:${PORTSDIR}/graphics/png \
-		libxml2.so:${PORTSDIR}/textproc/libxml2
+LIB_DEPENDS=	libxml2.so:${PORTSDIR}/textproc/libxml2
 
 CONFLICTS_INSTALL=	i386-wine-* wine-1.4* wine-1.6*
 
@@ -32,12 +27,10 @@ USE_GCC=	any
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS+=--verbose --disable-tests \
 		--without-alsa --without-capi --without-dbus \
-		--with-fontconfig --with-glu \
 		--without-gphoto --without-gsm --without-gstreamer \
-		--with-opengl --without-mpg123 --without-opencl \
+		--without-mpg123 --without-opencl \
 		--with-oss --without-sane --without-tiff \
-		--without-v4l --without-xcomposite --without-xinerama \
-		--with-xinput2 --with-xrandr
+		--without-v4l --without-xcomposite --without-xinerama
 CONFIGURE_ENV=	FLEX="${LOCALBASE}/bin/flex"
 WINELIBDIR?=	${PREFIX}/lib
 .if !defined(USE_LDCONFIG32)
@@ -46,13 +39,13 @@ USE_LDCONFIG=	${WINELIBDIR} ${WINELIBDIR
 ONLY_FOR_ARCHS=	i386
 USES=		bison gmake
 USE_BZIP2=	yes
-USE_GL=		glu
-USE_XORG=	xcursor xi xpm xrandr xrender
 
 SUB_FILES=	pkg-message
 PKGMESSAGE=	${WRKDIR}/pkg-message
 
-OPTIONS_DEFINE=	CUPS DOSBOX GNUTLS HAL LDAP LIBXSLT OPENAL WINEMAKER GECKO MONO
+OPTIONS_DEFINE=	CUPS DOSBOX GNUTLS HAL LDAP LIBXSLT OPENAL WINEMAKER GECKO MONO X11
+OPTIONS_DEFAULT=X11
+OPTIONS_SUB=	yes
 
 DOSBOX_DESC=	Use DOSBox to run MS-DOS programs
 LIBXSLT_DESC=	Use libxslt (only used by msxml3.dll)
@@ -60,7 +53,7 @@ WINEMAKER_DESC=	Fully support winemaker 
 GECKO_DESC=	Bundle Gecko MSI package for Wine
 MONO_DESC=	Bundle Mono MSI package for Wine
 
-PORTDATA=	fonts/ l_intl.nls wine.inf
+PORTDATA=	l_intl.nls wine.inf
 
 .include <bsd.port.pre.mk>
 
@@ -106,10 +99,8 @@ CONFIGURE_ARGS+=	--without-xslt
 .if ${PORT_OPTIONS:MOPENAL}
 CONFIGURE_ARGS+=	--with-openal
 USE_OPENAL=		yes
-PLIST_SUB+=		OPENAL=""
 .else
 CONFIGURE_ARGS+=	--without-openal
-PLIST_SUB+=		OPENAL="@comment "
 .endif
 
 .if ${PORT_OPTIONS:MWINEMAKER}
@@ -124,6 +115,23 @@ RUN_DEPENDS+=	${DATADIR}/gecko/wine_geck
 RUN_DEPENDS+=	${DATADIR}/mono/wine-mono-0.0.8.msi:${PORTSDIR}/emulators/wine-mono
 .endif
 
+.if ${PORT_OPTIONS:MX11}
+USE_GL=		glu
+USE_XORG=	xcursor xi xpm xrandr xrender
+LIB_DEPENDS+=	libfontconfig.so:${PORTSDIR}/x11-fonts/fontconfig \
+		libfreetype.so:${PORTSDIR}/print/freetype2 \
+		libjpeg.so:${PORTSDIR}/graphics/jpeg \
+		liblcms2.so:${PORTSDIR}/graphics/lcms2 \
+		libpng15.so:${PORTSDIR}/graphics/png
+CONFIGURE_ARGS+=--with-fontconfig --with-glu --with-opengl \
+		--with-xinput2 --with-xrandr --with-freetype
+PORTDATA+=	fonts/
+.else
+CONFIGURE_ARGS+=--without-x --without-fontconfig --without-glu \
+		--without-opengl --without-xinput2 --without-xrandr \
+		--without-freetype
+.endif
+
 .if ${OSVERSION} < 800000
 IGNORE=		lacks required sound support on FreeBSD before 8.0
 .endif

Modified: head/emulators/wine-devel/pkg-plist
==============================================================================
--- head/emulators/wine-devel/pkg-plist	Fri Nov  8 18:22:35 2013	(r333254)
+++ head/emulators/wine-devel/pkg-plist	Fri Nov  8 18:23:15 2013	(r333255)
@@ -1095,7 +1095,7 @@ lib/wine/fakedlls/gameux.dll
 lib/wine/fakedlls/gdi.exe16
 lib/wine/fakedlls/gdi32.dll
 lib/wine/fakedlls/gdiplus.dll
-lib/wine/fakedlls/glu32.dll
+%%X11%%lib/wine/fakedlls/glu32.dll
 lib/wine/fakedlls/gphoto2.ds
 lib/wine/fakedlls/gpkcsp.dll
 lib/wine/fakedlls/hal.dll
@@ -1257,7 +1257,7 @@ lib/wine/fakedlls/olesvr32.dll
 lib/wine/fakedlls/olethk32.dll
 lib/wine/fakedlls/oleview.exe
 %%OPENAL%%lib/wine/fakedlls/openal32.dll
-lib/wine/fakedlls/opengl32.dll
+%%X11%%lib/wine/fakedlls/opengl32.dll
 lib/wine/fakedlls/pdh.dll
 lib/wine/fakedlls/photometadatahandler.dll
 lib/wine/fakedlls/pidgen.dll
@@ -1407,7 +1407,7 @@ lib/wine/fakedlls/winepath.exe
 lib/wine/fakedlls/wineps.drv
 lib/wine/fakedlls/wineps16.drv16
 lib/wine/fakedlls/winevdm.exe
-lib/wine/fakedlls/winex11.drv
+%%X11%%lib/wine/fakedlls/winex11.drv
 lib/wine/fakedlls/wing.dll16
 lib/wine/fakedlls/wing32.dll
 lib/wine/fakedlls/winhelp.exe16
@@ -1465,7 +1465,7 @@ lib/wine/gameux.dll.so
 lib/wine/gdi.exe16.so
 lib/wine/gdi32.dll.so
 lib/wine/gdiplus.dll.so
-lib/wine/glu32.dll.so
+%%X11%%lib/wine/glu32.dll.so
 lib/wine/gphoto2.ds.so
 lib/wine/gpkcsp.dll.so
 lib/wine/hal.dll.so
@@ -1796,7 +1796,7 @@ lib/wine/olesvr32.dll.so
 lib/wine/olethk32.dll.so
 lib/wine/oleview.exe.so
 %%OPENAL%%lib/wine/openal32.dll.so
-lib/wine/opengl32.dll.so
+%%X11%%lib/wine/opengl32.dll.so
 lib/wine/pdh.dll.so
 lib/wine/photometadatahandler.dll.so
 lib/wine/pidgen.dll.so
@@ -1946,7 +1946,7 @@ lib/wine/winepath.exe.so
 lib/wine/wineps.drv.so
 lib/wine/wineps16.drv16.so
 lib/wine/winevdm.exe.so
-lib/wine/winex11.drv.so
+%%X11%%lib/wine/winex11.drv.so
 lib/wine/wing.dll16.so
 lib/wine/wing32.dll.so
 lib/wine/winhelp.exe16.so
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 4 Dmitry Marakasov 2013-11-08 18:26:33 UTC
* Gerald Pfeifer (gerald@pfeifer.com) wrote:

> > Synopsis: [PATCH] emulators/wine-devel: optionize x11 support
> 
> Assuming you have tested this in both the default case and the
> one without X11, this is fine with a few changes:
> 
>  - Something looks strange with indentation of the new LIB_DEPENDS+=
>    lines (for X11).

That's GNATS. It screws up all tabs, including ones in removed and
untouched lines.

>  - Format the two new CONFIGURE_ARGS+= lines so that they do not exceed
>    79 (better 78) columns per line; similiar to the original large
>    CONFIGURE_ARGS statement.

Done.

>  - Replace the two new PLIST_SUB lines by using the new OPTIONS_SUB.

Done.

>  - Please leave the PORTDATA change out for the time being.

Done. Note that without PORTDATA=* there's extra PORTDATA+= needed.

> With those change:
> 
>   Approved by:	gerald

Committed, thank you.

-- 
Dmitry Marakasov   .   55B5 0596 FF1E 8D84 5F56  9510 D35A 80DD F9D2 F77D
amdmi3@amdmi3.ru  ..:  jabber: amdmi3@jabber.ru    http://www.amdmi3.ru
Comment 5 Dmitry Marakasov freebsd_committer freebsd_triage 2013-11-08 18:26:39 UTC
State Changed
From-To: open->closed

Committed, with minor changes. Thanks!