Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Oct 2012 07:25:13 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r305241 - head/multimedia/subtitlecomposer
Message-ID:  <201210040725.q947PDDd093923@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Thu Oct  4 07:25:12 2012
New Revision: 305241
URL: http://svn.freebsd.org/changeset/ports/305241

Log:
  Convert to new options framework

Modified:
  head/multimedia/subtitlecomposer/Makefile

Modified: head/multimedia/subtitlecomposer/Makefile
==============================================================================
--- head/multimedia/subtitlecomposer/Makefile	Thu Oct  4 07:23:04 2012	(r305240)
+++ head/multimedia/subtitlecomposer/Makefile	Thu Oct  4 07:25:12 2012	(r305241)
@@ -1,9 +1,5 @@
-# New ports collection makefile for:	subtitlecomposer
-# Date created:		2008-01-08
-# Whom:			Max Brazhnikov <makc@issp.ac.ru>
-#
+# Created by: Max Brazhnikov <makc@issp.ac.ru>
 # $FreeBSD$
-#
 
 PORTNAME=	subtitlecomposer
 PORTVERSION=	0.4.3
@@ -24,26 +20,25 @@ INSTALLS_ICONS=	yes
 
 PORTSCOUT=	limit:^0\.4\.
 
-OPTIONS=	MPLAYER "Enable MPlayer backend (recommended)" on \
-		XINE "Enable Xine backend" off \
-		GSTREAMER "Enable GStreamer backend" off
+OPTIONS_DEFINE=	MPLAYER XINE GSTREAMER
+OPTIONS_DEFAULT=	MPLAYER
 
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
 
-.if defined(WITH_MPLAYER)
+.if ${PORT_OPTIONS:MMPLAYER}
 RUN_DEPENDS+=	mplayer:${PORTSDIR}/multimedia/mplayer
 .endif
 
-.if defined(WITH_XINE)
+.if ${PORT_OPTIONS:MXINE}
 LIB_DEPENDS+=	xine.2:${PORTSDIR}/multimedia/libxine
 .else
 CONFIGURE_ARGS+=--without-xine --without-xcb
 .endif
 
-.if defined(WITH_GSTREAMER)
+.if ${PORT_OPTIONS:MGSTREAMER}
 USE_GSTREAMER+=	yes
 .else
 CONFIGURE_ARGS+=--without-gstreamer
 .endif
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>



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