diff options
author | pav <pav@FreeBSD.org> | 2006-03-18 22:33:34 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2006-03-18 22:33:34 +0800 |
commit | 9cc053fa6ada90971c49c6f0d721bae294e96487 (patch) | |
tree | 4b2ad4f9234a0deffd0d349d80acde8c4156ac91 | |
parent | 816ef0fd6edbc91e4b31e732811d75baa977eea0 (diff) | |
download | freebsd-ports-gnome-9cc053fa6ada90971c49c6f0d721bae294e96487.tar.gz freebsd-ports-gnome-9cc053fa6ada90971c49c6f0d721bae294e96487.tar.zst freebsd-ports-gnome-9cc053fa6ada90971c49c6f0d721bae294e96487.zip |
- Make rplay dependency optional
PR: ports/94567
Submitted by: Alex Kozlov <spam@rm-rf.kiev.ua>
-rw-r--r-- | x11-wm/vtwm/Makefile | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/x11-wm/vtwm/Makefile b/x11-wm/vtwm/Makefile index c256afc55f03..213b238131d5 100644 --- a/x11-wm/vtwm/Makefile +++ b/x11-wm/vtwm/Makefile @@ -13,11 +13,23 @@ MASTER_SITES= http://www.vtwm.org/downloads/ MAINTAINER= ports@FreeBSD.org COMMENT= Twm with a virtual desktop and optional Motif-like features -LIB_DEPENDS= rplay.1:${PORTSDIR}/audio/rplay - USE_IMAKE= yes USE_XPM= yes MAN1= vtwm.1 -.include <bsd.port.mk> +OPTIONS= SOUND "Sound support" on + +.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> |