Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Jan 2017 07:58:31 +0000 (UTC)
From:      Thomas Zander <riggs@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r431457 - head/multimedia/mplayer
Message-ID:  <201701140758.v0E7wVh1037880@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: riggs
Date: Sat Jan 14 07:58:31 2017
New Revision: 431457
URL: https://svnweb.freebsd.org/changeset/ports/431457

Log:
  Convert GUI and SKINS to OPTION helpers; fix dependency: GUI implies ASS
  
  PR:		216030
  Reported by:	rjk@wintek.com
  MFH:		2017Q1

Modified:
  head/multimedia/mplayer/Makefile
  head/multimedia/mplayer/Makefile.optvars
  head/multimedia/mplayer/pkg-plist

Modified: head/multimedia/mplayer/Makefile
==============================================================================
--- head/multimedia/mplayer/Makefile	Sat Jan 14 04:05:35 2017	(r431456)
+++ head/multimedia/mplayer/Makefile	Sat Jan 14 07:58:31 2017	(r431457)
@@ -46,6 +46,8 @@ CONFLICTS=	mplayer2-2.*
 CONFFILES=	example.conf input.conf menu.conf dvb-menu.conf
 USES+=		iconv pkgconfig
 
+OPTIONS_SUB=	yes
+
 .include "${.CURDIR}/../../multimedia/mplayer/Makefile.optvars"
 .include <bsd.port.options.mk>
 
@@ -63,20 +65,6 @@ CONFIGURE_ARGS+=	--disable-arts \
 			--disable-musepack \
 			--disable-theora
 
-.if ${PORT_OPTIONS:MGUI} && ${PORT_OPTIONS:MX11}
-PLIST_SUB+=	GMPLAYER=""
-DESKTOP_ENTRIES=	"MPlayer" "High performance media player" "mplayer" "gmplayer" "" false
-.if ${PORT_OPTIONS:MSKINS}
-RUN_DEPENDS+=	mplayer-skins>=0:multimedia/mplayer-skins
-.endif
-
-USE_GNOME+=	gtk20
-CONFIGURE_ARGS+=	--enable-gui
-
-.else
-PLIST_SUB+=	GMPLAYER="@comment "
-.endif #GUI && X11
-
 .if ${PORT_OPTIONS:MX11}
 USE_XORG=	x11 xext xproto xscrnsaver
 .if ${PORT_OPTIONS:MXVIDEO}

Modified: head/multimedia/mplayer/Makefile.optvars
==============================================================================
--- head/multimedia/mplayer/Makefile.optvars	Sat Jan 14 04:05:35 2017	(r431456)
+++ head/multimedia/mplayer/Makefile.optvars	Sat Jan 14 07:58:31 2017	(r431457)
@@ -52,6 +52,11 @@ GNUTLS_CONFIGURE_OFF=	--disable-gnutls
 GSM_LIB_DEPENDS=	libgsm.so:audio/gsm
 GSM_CONFIGURE_OFF=	--disable-libgsm
 
+GUI_CONFIGURE_ENABLE=	gui
+GUI_USE=		GNOME=gtk20
+GUI_DESKTOP_ENTRIES=	"MPlayer" "High performance media player" "mplayer" "gmplayer" "" false
+GUI_IMPLIES=		ASS X11
+
 IPV6_CATEGORIES=	ipv6
 IPV6_CONFIGURE_OFF=	--disable-inet6
 
@@ -104,6 +109,9 @@ SDL_CONFIGURE_OFF=	--disable-sdl
 SNDIO_LIB_DEPENDS=	libsndio.so:audio/sndio
 SNDIO_CONFIGURE_OFF=	--disable-sndio
 
+SKINS_RUN_DEPENDS=	mplayer-skins>=0:multimedia/mplayer-skins
+SKINS_IMPLIES=		GUI
+
 SMB_LIB_DEPENDS=	libsmbclient.so:net/samba-libsmbclient
 SMB_CONFIGURE_OFF=	--disable-smb
 

Modified: head/multimedia/mplayer/pkg-plist
==============================================================================
--- head/multimedia/mplayer/pkg-plist	Sat Jan 14 04:05:35 2017	(r431456)
+++ head/multimedia/mplayer/pkg-plist	Sat Jan 14 07:58:31 2017	(r431457)
@@ -1,8 +1,8 @@
 bin/mplayer
 man/man1/mplayer.1.gz
-%%GMPLAYER%%bin/gmplayer
-%%GMPLAYER%%man/man1/gmplayer.1.gz
-%%GMPLAYER%%share/pixmaps/mplayer.png
+%%GUI%%bin/gmplayer
+%%GUI%%man/man1/gmplayer.1.gz
+%%GUI%%share/pixmaps/mplayer.png
 %%DATADIR%%/examples/etc/example.conf
 %%DATADIR%%/examples/etc/input.conf
 %%DATADIR%%/examples/etc/menu.conf



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201701140758.v0E7wVh1037880>