From owner-svn-ports-all@FreeBSD.ORG Sun Nov 9 20:32:05 2014 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2E4C61BA; Sun, 9 Nov 2014 20:32:05 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1A18769D96; Sun, 9 Nov 2014 20:32:05 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id sA9KW4lT091437; Sun, 9 Nov 2014 20:32:04 GMT (envelope-from marius@FreeBSD.org) Received: (from marius@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id sA9KW44E091436; Sun, 9 Nov 2014 20:32:04 GMT (envelope-from marius@FreeBSD.org) Message-Id: <201411092032.sA9KW44E091436@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: marius set sender to marius@FreeBSD.org using -f From: Marius Strobl Date: Sun, 9 Nov 2014 20:32:04 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r372374 - head/sysutils/cdrdao 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.18-1 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: Sun, 09 Nov 2014 20:32:05 -0000 Author: marius Date: Sun Nov 9 20:32:04 2014 New Revision: 372374 URL: https://svnweb.freebsd.org/changeset/ports/372374 QAT: https://qat.redports.org/buildarchive/r372374/ Log: - Fix half-assed, broken attempt of r361978 to convert sysutils/cdrdao to OPTIONS and of r358245 to staging. - Add LICENSE. Modified: head/sysutils/cdrdao/Makefile Modified: head/sysutils/cdrdao/Makefile ============================================================================== --- head/sysutils/cdrdao/Makefile Sun Nov 9 20:31:48 2014 (r372373) +++ head/sysutils/cdrdao/Makefile Sun Nov 9 20:32:04 2014 (r372374) @@ -12,6 +12,8 @@ DISTNAME= cdrdao-${PORTVERSION} MAINTAINER= marius@FreeBSD.org COMMENT?= Record CD-R[W]s in disk-at-once mode +LICENSE= GPLv2 + USES= alias gmake tar:bzip2 GNU_CONFIGURE= yes @@ -19,10 +21,15 @@ MP3OGG_LIB_DEPENDS= libao.so:${PORTSDIR} libmad.so:${PORTSDIR}/audio/libmad \ libvorbis.so:${PORTSDIR}/audio/libvorbis -OPTIONS_DEFINE= DOCS TOC2MP3 MP3OGG -OPTIONS_DEFAULT=MP3OGG -TOC2MP3_DESC= Build with toc2mp3 -MP3OGG_DESC= MP3 and Ogg Vorbis support +.if ${PORTNAME} == "cdrdao" +OPTIONS_DEFINE= DOCS TOC2MP3 MP3OGG + +OPTIONS_DEFAULT= MP3OGG +MP3OGG_DESC= Build with MP3/Ogg support (for sysutils/gcdmaster) +TOC2MP3_DESC= Build with toc2mp3 (requires audio/lame) + +.include +.endif .if ${PORTNAME} == "gcdmaster" USES+= pkgconfig @@ -35,7 +42,7 @@ RUN_DEPENDS+= ${LOCALBASE}/bin/cdrdao:$ CONFIGURE_ARGS+= --with-lame=no .else CONFIGURE_ARGS+= --with-xdao=no -.if defined(WITH_TOC2MP3) +.if ${PORT_OPTIONS:MTOC2MP3} LIB_DEPENDS+= libmp3lame.so:${PORTSDIR}/audio/lame CONFIGURE_ARGS+= --with-lame-include=${LOCALBASE}/include \ --with-lame-lib=${LOCALBASE}/lib @@ -44,7 +51,7 @@ PLIST_SUB+= TOC2MP3="" CONFIGURE_ARGS+= --with-lame=no PLIST_SUB+= TOC2MP3="@comment " .endif -.if !defined(WITHOUT_MP3OGG) +.if ${PORT_OPTIONS:MMP3OGG} USES+= pkgconfig LIB_DEPENDS+= ${MP3OGG_LIB_DEPENDS} CONFIGURE_ENV+= AO_CFLAGS=-I${LOCALBASE}/include \ @@ -65,23 +72,6 @@ SCSILIBTARGET= ${ARCH:S/powerpc64/power .include -pre-everything:: -.if ${PORTNAME} != "gcdmaster" && \ - (!defined(WITH_TOC2MP3) || !defined(WITHOUT_MP3OGG)) - @${ECHO_MSG} "" - @${ECHO_MSG} "You may use the following build option(s):" - @${ECHO_MSG} "" -.if !defined(WITH_TOC2MP3) - @${ECHO_MSG} "WITH_TOC2MP3=yes builds with toc2mp3 (requires audio/lame)" -.endif -.if !defined(WITHOUT_MP3OGG) - @${ECHO_MSG} "WITHOUT_MP3OGG=yes builds without support for decoding MP3 and Ogg Vorbis" - @${ECHO_MSG} " files (not required unless using sysutils/gcdmaster;" - @${ECHO_MSG} " disabling saves a couple of dependencies)" -.endif - @${ECHO_MSG} "" -.endif - post-extract: @(cd ${WRKSRC}/scsilib/RULES && ${CP} os-freebsd.id os-dragonfly.id) .if ${SCSILIBTARGET} != "i386-freebsd-cc" @@ -144,11 +134,14 @@ do-install: @${INSTALL_DATA} ${WRKSRC}/xdao/gcdmaster.xml \ ${STAGEDIR}${LOCALBASE}/share/mime/packages @${MKDIR} ${STAGEDIR}${DATADIR} - @${INSTALL_DATA} ${WRKSRC}/xdao/glade/Preferences.glade ${STAGEDIR}${DATADIR} - @${INSTALL_DATA} ${WRKSRC}/xdao/glade/ProjectChooser.glade ${STAGEDIR}${DATADIR} + @${INSTALL_DATA} ${WRKSRC}/xdao/glade/Preferences.glade \ + ${STAGEDIR}${DATADIR} + @${INSTALL_DATA} ${WRKSRC}/xdao/glade/ProjectChooser.glade \ + ${STAGEDIR}${DATADIR} .else @${INSTALL_PROGRAM} ${WRKSRC}/dao/cdrdao ${STAGEDIR}${PREFIX}/bin - @${INSTALL_MAN} ${WRKSRC}/dao/cdrdao.man ${STAGEDIR}${PREFIX}/man/man1/cdrdao.1 + @${INSTALL_MAN} ${WRKSRC}/dao/cdrdao.man \ + ${STAGEDIR}${PREFIX}/man/man1/cdrdao.1 @${INSTALL_PROGRAM} ${WRKSRC}/utils/cue2toc ${STAGEDIR}${PREFIX}/bin @${INSTALL_MAN} ${WRKSRC}/utils/cue2toc.1 ${STAGEDIR}${PREFIX}/man/man1 @${INSTALL_PROGRAM} ${WRKSRC}/utils/toc2cddb ${STAGEDIR}${PREFIX}/bin @@ -156,9 +149,10 @@ do-install: @${INSTALL_PROGRAM} ${WRKSRC}/utils/toc2cue ${STAGEDIR}${PREFIX}/bin @${INSTALL_MAN} ${WRKSRC}/utils/toc2cue.1 ${STAGEDIR}${PREFIX}/man/man1 @${MKDIR} ${STAGEDIR}${DATADIR} - @${INSTALL_DATA} ${WRKSRC}/dao/cdrdao.drivers ${STAGEDIR}${DATADIR}/drivers -.if defined(WITH_TOC2MP3) - @${INSTALL_PROGRAM} ${WRKSRC}/utils/toc2mp3 ${STAGEDIR}{PREFIX}/bin + @${INSTALL_DATA} ${WRKSRC}/dao/cdrdao.drivers \ + ${STAGEDIR}${DATADIR}/drivers +.if ${PORT_OPTIONS:MTOC2MP3} + @${INSTALL_PROGRAM} ${WRKSRC}/utils/toc2mp3 ${STAGEDIR}${PREFIX}/bin .endif @${MKDIR} ${STAGEDIR}${DOCSDIR} .for i in CREDITS ChangeLog README README.PlexDAE