From owner-svn-ports-all@FreeBSD.ORG Sat May 11 11:14:11 2013 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 11075DD; Sat, 11 May 2013 11:14:11 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 03B4A2AE; Sat, 11 May 2013 11:14:11 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r4BBEA0j052110; Sat, 11 May 2013 11:14:10 GMT (envelope-from bapt@svn.freebsd.org) Received: (from bapt@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r4BBEAE0052107; Sat, 11 May 2013 11:14:10 GMT (envelope-from bapt@svn.freebsd.org) Message-Id: <201305111114.r4BBEAE0052107@svn.freebsd.org> From: Baptiste Daroussin Date: Sat, 11 May 2013 11:14:10 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r317863 - in head/multimedia: xawtv xvid X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 May 2013 11:14:11 -0000 Author: bapt Date: Sat May 11 11:14:10 2013 New Revision: 317863 URL: http://svnweb.freebsd.org/changeset/ports/317863 Log: Convert to new options framework Modified: head/multimedia/xawtv/Makefile head/multimedia/xvid/Makefile Modified: head/multimedia/xawtv/Makefile ============================================================================== --- head/multimedia/xawtv/Makefile Sat May 11 10:59:52 2013 (r317862) +++ head/multimedia/xawtv/Makefile Sat May 11 11:14:10 2013 (r317863) @@ -1,9 +1,5 @@ -# New ports collection makefile for: xawtv -# Date created: 03 March 2001 -# Whom: George Reid -# +# Created by: George Reid # $FreeBSD$ -# PORTNAME= xawtv PORTVERSION= 3.95 @@ -21,11 +17,11 @@ RUN_DEPENDS= iconv:${PORTSDIR}/converter LIB_DEPENDS= png15:${PORTSDIR}/graphics/png \ jpeg.11:${PORTSDIR}/graphics/jpeg -OPTIONS= AA "Enable AA support" on \ - DV "Enable reading/writing raw dv files" off \ - QUICKTIME "Enable quicktime support" off \ - ZVBI "Enable libzvbi support" off \ - MMX "Enable mmx support (only for i386)" off +OPTIONS_DEFINE= AA DV QUICKTIME ZVBI +OPTIONS_DEFINE_i386= MMX +OPTIONS_DEFAULT= AA +AA_DESC= Enable AA support +ZVBI_DESC= Enable libzvbi support USE_MOTIF= yes GNU_CONFIGURE= yes @@ -49,16 +45,16 @@ MAN8= v4l-conf.8 .include -.if defined(WITHOUT_AA) -CONFIGURE_ARGS+=--disable-aa -PLIST_SUB+= AA="@comment " -.else +.if ${PORT_OPTIONS:MAA} CONFIGURE_ARGS+=--enable-aa LIB_DEPENDS+= aa.1:${PORTSDIR}/graphics/aalib PLIST_SUB+= AA="" +.else +CONFIGURE_ARGS+=--disable-aa +PLIST_SUB+= AA="@comment " .endif -.if defined(WITH_ZVBI) +.if ${PORT_OPTIONS:MZVBI} LIB_DEPENDS+= zvbi.13:${PORTSDIR}/devel/libzvbi CONFIGURE_ARGS+=--enable-zvbi PLIST_SUB+= ZVBI="" ZVBI5="" @@ -67,7 +63,7 @@ CONFIGURE_ARGS+=--enable-zvbi=no PLIST_SUB+= ZVBI="@comment " ZVBI5="@comment " .endif -.if defined(WITH_DV) +.if ${PORT_OPTIONS:MDV} LIB_DEPENDS+= dv.4:${PORTSDIR}/multimedia/libdv CONFIGURE_ARGS+=--enable-dv PLIST_SUB+= DV= @@ -76,16 +72,12 @@ CONFIGURE_ARGS+=--enable-dv=no PLIST_SUB+= DV="@comment " .endif -.if defined(WITH_MMX) -.if ${ARCH} == i386 +.if ${PORT_OPTIONS:MMMX} CONFIGURE_ARGS+=--enable-mmx CFLAGS+= -DMMX=1 -.else -BROKEN= MMX support only works on i386, and you are running ${ARCH} -.endif .endif -.if defined(WITH_QUICKTIME) +.if ${PORT_OPTIONS:MQUICKTIME} CONFIGURE_ARGS+=--enable-quicktime LIB_DEPENDS+= quicktime.0:${PORTSDIR}/multimedia/libquicktime PLIST_SUB+= QT= Modified: head/multimedia/xvid/Makefile ============================================================================== --- head/multimedia/xvid/Makefile Sat May 11 10:59:52 2013 (r317862) +++ head/multimedia/xvid/Makefile Sat May 11 11:14:10 2013 (r317863) @@ -1,9 +1,5 @@ -# New ports collection makefile for: xvid -# Date created: 04 April 2002 -# Whom: Michael Nottebrock et al -# +# Created by: Michael Nottebrock et al # $FreeBSD$ -# PORTNAME= xvid PORTVERSION= 1.3.2 @@ -29,7 +25,7 @@ PLIST_FILES= include/xvid.h \ WRKSRC= ${WRKDIR}/xvidcore/build/generic -OPTIONS= OPTIMIZED_CFLAGS "Use XviD's default optimizations" off +OPTIONS_DEFINE= OPTIMIZED_CFLAGS .include @@ -40,7 +36,7 @@ CONFIGURE_TARGET= x86_64-portbld-freebsd BUILD_DEPENDS+= nasm:${PORTSDIR}/devel/nasm .endif -.if defined(WITH_OPTIMIZED_CFLAGS) +.if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS} CFLAGS= # let xvid's build system decide about those .endif