Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Sep 2007 22:52:12 GMT
From:      "volker@vwsoft.com" <Volker.Werth@FreeBSD.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/116451: [patch] audio/asunder: make options available, set dependencies
Message-ID:  <200709182252.l8IMqC5B014647@www.freebsd.org>
Resent-Message-ID: <200709182300.l8IN06kk092058@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         116451
>Category:       ports
>Synopsis:       [patch] audio/asunder: make options available, set dependencies
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Sep 18 23:00:06 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     volker@vwsoft.com
>Release:        
>Organization:
>Environment:
>Description:
audio/asunder requires lame, vorbis-tools and/or flac for encoding
1) include these ports as dependencies
2) set them as OPTIONS
patch attached
>How-To-Repeat:

>Fix:
--- Makefile.orig       2007-09-18 23:49:28.000000000 +0200
+++ Makefile    2007-09-19 00:46:15.000000000 +0200
@@ -6,6 +6,7 @@
 
 PORTNAME=      asunder
 PORTVERSION=   0.8.1
+PORTREVISION=  1
 CATEGORIES=    audio
 MASTER_SITES=  http://littlesvr.ca/asunder/releases/
 
@@ -15,8 +16,26 @@
 LIB_DEPENDS=   cddb.4:${PORTSDIR}/audio/libcddb
 RUN_DEPENDS=   ${LOCALBASE}/bin/cdparanoia:${PORTSDIR}/audio/cdparanoia
 
+OPTIONS=       LAME    "lame support"  on \
+               OGG     "ogg-vorbis support"    on \
+               FLAC    "FLAC support"  on
+
 GNU_CONFIGURE= yes
 USE_XLIB=      yes
 USE_GNOME=     gtk20
 
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_LAME)
+RUN_DEPENDS+=  lame:${PORTSDIR}/audio/lame
+.endif
+
+.if defined(WITH_OGG)
+RUN_DEPENDS+=  oggenc:${PORTSDIR}/audio/vorbis-tools
+.endif
+
+.if defined(WITH_FLAC)
+RUN_DEPENDS+=  flac:${PORTSDIR}/audio/flac
+.endif
+
 .include <bsd.port.mk>


>Release-Note:
>Audit-Trail:
>Unformatted:



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