aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2006-03-18 22:33:34 +0800
committerpav <pav@FreeBSD.org>2006-03-18 22:33:34 +0800
commit9cc053fa6ada90971c49c6f0d721bae294e96487 (patch)
tree4b2ad4f9234a0deffd0d349d80acde8c4156ac91
parent816ef0fd6edbc91e4b31e732811d75baa977eea0 (diff)
downloadfreebsd-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/Makefile18
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>