ports/94567: [patch] x11-wm/vtwm Add sound option

Alex Kozlov spam at rm-rf.kiev.ua
Thu Mar 16 15:11:28 UTC 2006


>Number:         94567
>Category:       ports
>Synopsis:       [patch] x11-wm/vtwm  Add sound option
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar 16 15:10:08 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Alex Kozlov
>Release:        FreeBSD 5.4
>Organization:
private
>Environment:
FreeBSD localhost 5.4-RELEASE-p8 i386
>Description:
Add SOUND option to x11-wm/vtwm
>How-To-Repeat:
Apply the patch.
>Fix:
--- Makefile.orig       Sat Nov 26 00:29:24 2005
+++ Makefile            Wed Mar 15 19:30:09 2006
@@ -7,17 +7,31 @@
 
 PORTNAME=      vtwm
 PORTVERSION=   5.4.7
+PORTREVISION=  1
 CATEGORIES=    x11-wm
 MASTER_SITES=  http://www.vtwm.org/downloads/
 
 MAINTAINER=    ports at FreeBSD.org
 COMMENT=       Twm with a virtual desktop and optional Motif-like features
 
-LIB_DEPENDS=   rplay.1:${PORTSDIR}/audio/rplay
+OPTIONS=       SOUND "Sound support" on
 
+USE_REINPLACE= yes
 USE_IMAKE=     yes
 USE_XPM=       yes
 
 MAN1=          vtwm.1
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+post-patch:
+.if defined(WITHOUT_SOUND)
+       @${REINPLACE_CMD} -i "" -e \
+               's:^XCOMM NO_SOUND_SUPPORT: NO_SOUND_SUPPORT:; \
+               s:^SOUNDLIB:XCOMM SOUNDLIB:; \
+               s:^SOUNDINC:XCOMM SOUNDINC: ' ${WRKSRC}/Imakefile
+.else
+LIB_DEPENDS+=  rplay.1:${PORTSDIR}/audio/rplay
+.endif
+
+.include <bsd.port.post.mk>
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list