ports/173795: [PATCH] audio/hydrogen optionsng
Chris Petrik
c.petrik.sosa at gmail.com
Wed Nov 21 22:30:01 UTC 2012
>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 at brutele.be>
-#
+# Created by: Jean-Yves Lefort <jylefort at brutele.be>
# $FreeBSD$
-#
PORTNAME= hydrogen
PORTVERSION= 0.9.5
@@ -13,32 +9,32 @@
MAINTAINER= devel at 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:
More information about the freebsd-ports-bugs
mailing list