Date: Wed, 21 Nov 2012 22:28:15 GMT From: Chris Petrik <c.petrik.sosa@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/173795: [PATCH] audio/hydrogen optionsng Message-ID: <201211212228.qALMSFZf078711@red.freebsd.org> Resent-Message-ID: <201211212230.qALMU08Z041003@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 173795 >Category: ports >Synopsis: [PATCH] audio/hydrogen optionsng >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: Wed Nov 21 22:30:00 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Chris Petrik >Release: >Organization: na >Environment: >Description: OptionsNG Changes >How-To-Repeat: >Fix: Patch attached with submission follows: Index: hydrogen/Makefile =================================================================== --- hydrogen/Makefile (revision 305743) +++ hydrogen/Makefile (working copy) @@ -1,9 +1,5 @@ -# New ports collection makefile for: Hydrogen -# Date created: 23 Jun 2004 -# Whom: Jean-Yves Lefort <jylefort@brutele.be> -# +# Created by: Jean-Yves Lefort <jylefort@brutele.be> # $FreeBSD$ -# PORTNAME= hydrogen PORTVERSION= 0.9.5 @@ -13,32 +9,32 @@ MAINTAINER= devel@stasyan.com COMMENT= An advanced drum machine -LIB_DEPENDS+= sndfile:${PORTSDIR}/audio/libsndfile \ - tar.0:${PORTSDIR}/devel/libtar \ - lrdf.2:${PORTSDIR}/textproc/liblrdf - LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING +LIB_DEPENDS+= sndfile:${PORTSDIR}/audio/libsndfile \ + tar:${PORTSDIR}/devel/libtar \ + lrdf:${PORTSDIR}/textproc/liblrdf + BROKEN= does not install MAJORVERSION= 0.9.5 USE_QT4= corelib gui linguist_build moc_build network qt3support rcc_build sql uic_build xml USE_SCONS= yes -OPTIONS= JACK "JACK support" on \ - ALSA "ALSA support" off \ - PORTAUDIO "PortAudio support" off \ - LIBARCHIVE "LibArchive support" off \ - LASH "Lash support" off +OPTIONS_DEFINE= JACK ALSA PORTAUDIO LIBARCHIVE LASH +OPTIONS_DEFAULT= JACK +LIBARCHIVE_DESC= LibArchive support + post-patch: ${REINPLACE_CMD} -e "s|includes = \[\]|includes = \['-I${QT_INCDIR}/QtCore', '-I${QT_INCDIR}/QtXml', '-I${QT_INCDIR}/QtGui', '-I${QT_INCDIR}', '-I${QT_INCDIR}/Qt', '-I${LOCALBASE}/include'\]|g; s|ldflags = \[\]|ldflags = \['-L${QT_LIBDIR}','-L${LOCALBASE}/lib'\,'-lQtCore', '-lQtGui', '-lQtXml', '-lQtNetwork', '${PTHREAD_LIBS}']|g" ${WRKSRC}/Sconstruct .include <bsd.port.options.mk> SCONS_ENV+= oss=1 -.if defined(WITH_JACK) + +.if ${PORT_OPTIONS:MJACK} LIB_DEPENDS+= jack:${PORTSDIR}/audio/jack CPPFLAGS+= ${PTHREAD_CFLAGS} LDFLAGS+= ${PTHREAD_LIBS} @@ -47,30 +43,30 @@ SCONS_ENV+= jack=0 .endif -.if defined(WITH_PORTAUDIO) -LIB_DEPENDS+= portaudio.0:${PORTSDIR}/audio/portaudio +.if ${PORT_OPTIONS:MPORTAUDIO} +LIB_DEPENDS+= portaudio:${PORTSDIR}/audio/portaudio SCONS_ENV+= portaudio=1 .else SCONS_ENV+= portaudio=0 .endif -.if defined(WITH_LIBARCHIVE) +.if ${PORT_OPTIONS:MLIBARCHIVE} LIB_DEPENDS+= archive:${PORTSDIR}/archivers/libarchive SCONS_ENV+= libarchive=1 .else SCONS_ENV+= libarchive=0 .endif -.if defined(WITH_ALSA) -LIB_DEPENDS+= asound.2:${PORTSDIR}/audio/alsa-lib +.if ${PORT_OPTIONS:MALSA} +LIB_DEPENDS+= asound:${PORTSDIR}/audio/alsa-lib RUN_DEPENDS+= ${LOCALBASE}/lib/alsa-lib/libasound_module_pcm_oss.so:${PORTSDIR}/audio/alsa-plugins SCONS_ENV+= alsa=1 .else SCONS_ENV+= alsa=0 .endif -.if defined(WITH_LASH) -LIB_DEPENDS+= lash.2:${PORTSDIR}/audio/lash +.if ${PORT_OPTIONS:MLASH} +LIB_DEPENDS+= lash:${PORTSDIR}/audio/lash SCONS_ENV+= lash=1 .else SCONS_ENV+= lash=0 >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211212228.qALMSFZf078711>