From owner-svn-ports-head@FreeBSD.ORG Mon Sep 10 10:49:31 2012 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 20F08106566B; Mon, 10 Sep 2012 10:49:31 +0000 (UTC) (envelope-from ehaupt@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 026008FC08; Mon, 10 Sep 2012 10:49:31 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q8AAnUXm040441; Mon, 10 Sep 2012 10:49:30 GMT (envelope-from ehaupt@svn.freebsd.org) Received: (from ehaupt@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q8AAnUWi040439; Mon, 10 Sep 2012 10:49:30 GMT (envelope-from ehaupt@svn.freebsd.org) Message-Id: <201209101049.q8AAnUWi040439@svn.freebsd.org> From: Emanuel Haupt Date: Mon, 10 Sep 2012 10:49:30 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r304026 - head/audio/ocp X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Sep 2012 10:49:31 -0000 Author: ehaupt Date: Mon Sep 10 10:49:30 2012 New Revision: 304026 URL: http://svn.freebsd.org/changeset/ports/304026 Log: - Use OPTIONSng - Remove deprecated header information Modified: head/audio/ocp/Makefile (contents, props changed) Modified: head/audio/ocp/Makefile ============================================================================== --- head/audio/ocp/Makefile Mon Sep 10 10:18:30 2012 (r304025) +++ head/audio/ocp/Makefile Mon Sep 10 10:49:30 2012 (r304026) @@ -1,9 +1,4 @@ -# New ports collection makefile for: ocp -# Date created: 22 April 2005 -# Whom: Emanuel Haupt -# # $FreeBSD$ -# PORTNAME= ocp PORTVERSION= 0.1.20 @@ -18,10 +13,10 @@ COMMENT= The legendary Open Cubic Player LICENSE= GPLv2 -LIB_DEPENDS= id3tag.0:${PORTSDIR}/audio/libid3tag \ - mad.2:${PORTSDIR}/audio/libmad \ - vorbis.4:${PORTSDIR}/audio/libvorbis \ - sidplay.1:${PORTSDIR}/audio/libsidplay +LIB_DEPENDS= id3tag:${PORTSDIR}/audio/libid3tag \ + mad:${PORTSDIR}/audio/libmad \ + vorbis:${PORTSDIR}/audio/libvorbis \ + sidplay:${PORTSDIR}/audio/libsidplay ONLY_FOR_ARCHS= i386 amd64 @@ -56,30 +51,31 @@ PFILES= configure cpiface/cpianal.c cpi stuff/poutput-dga.c stuff/poutput-keyboard.c \ stuff/poutput-vcsa.c stuff/poutput-x11.c -OPTIONS= ADPLUG "Build with adplug support" on \ - FLAC "Build with FLAC support" on \ - MIDI "Build with timidity support" on \ - X11 "Build with X11 support" on \ - SDL "Build with SDL support" on +OPTIONS_DEFINE= ADPLUG FLAC MIDI X11 SDL -.include +ADPLUG_DESC= adplug support +MIDI_DESC= timidity support -.if exists(${TIMIDITY_CFG}) || !defined(WITHOUT_MIDI) +OPTIONS_DEFAULT=ADPLUG FLAC MIDI X11 SDL + +.include + +.if exists(${TIMIDITY_CFG}) || ${PORT_OPTIONS:MMIDI} RUN_DEPENDS+= ${TIMIDITY_CFG}:${PORTSDIR}/audio/eawpats .endif -.if defined(WITHOUT_X11) -CONFIGURE_ARGS+= --without-x11 -PLIST_SUB+= XORG="@comment " -.else +.if ${PORT_OPTIONS:MX11} USE_XORG= xxf86dga xxf86vm xpm USE_GNOME= desktopfileutils CONFIGURE_ARGS+= --with-x11=yes PLIST_SUB+= XORG="" +.else +CONFIGURE_ARGS+= --without-x11 +PLIST_SUB+= XORG="@comment " .endif -.if defined(WITH_ADPLUG) -LIB_DEPENDS+= adplug-2.2:${PORTSDIR}/audio/libadplug +.if ${PORT_OPTIONS:MADPLUG} +LIB_DEPENDS+= adplug:${PORTSDIR}/audio/libadplug CONFIGURE_ARGS+= --with-adplug PLIST_SUB+= ADPLUG="" .else @@ -87,7 +83,7 @@ PLIST_SUB+= ADPLUG="@comment " CONFIGURE_ARGS+= --without-adplug .endif -.if defined(WITH_SDL) +.if ${PORT_OPTIONS:MSDL} USE_SDL= sound USE_GNOME+= desktopfileutils CONFIGURE_ARGS+= --with-sdl=yes @@ -97,14 +93,14 @@ CONFIGURE_ARGS+= --with-sdl=no PLIST_SUB+= SDL="@comment " .endif -.if defined(WITH_SDL) || defined(WITH_X11) +.if ${PORT_OPTIONS:MSDL} || ${PORT_OPTIONS:MX11} PLIST_SUB+= DESKTOP="" .else PLIST_SUB+= DESKTOP="@comment " .endif -.if defined(WITH_FLAC) -LIB_DEPENDS+= FLAC.10:${PORTSDIR}/audio/flac +.if ${PORT_OPTIONS:MFLAC} +LIB_DEPENDS+= FLAC:${PORTSDIR}/audio/flac CONFIGURE_ARGS+= --with-flac PLIST_SUB+= FLAC="" .else @@ -124,4 +120,4 @@ post-patch: ${WRKSRC}/filesel/adb.c \ ${WRKSRC}/filesel/pfilesel.c -.include +.include