openbsd-ports/audio/cmus/patches/patch-Makefile
landry dab8426e9a Import cmus 2.4.2, from MAINTAINER Donovan Watteau.
cmus is a small ncurses-based music player. It supports various output
methods by output plugins. It has got completely configurable key
bindings and it can be controlled from the outside via cmus-remote(1).

sndio backend from Donovan with feedback from ratchov@
with testing on arm & ok kili@
2011-09-06 07:10:56 +00:00

38 lines
1.2 KiB
Plaintext

$OpenBSD: patch-Makefile,v 1.1.1.1 2011/09/06 07:10:56 landry Exp $
--- Makefile.orig Thu May 26 20:47:33 2011
+++ Makefile Mon Jul 4 16:23:00 2011
@@ -139,6 +139,7 @@ alsa-objs := alsa.lo mixer_alsa.lo
arts-objs := arts.lo
oss-objs := oss.lo mixer_oss.lo
sun-objs := sun.lo mixer_sun.lo
+sndio-objs := sndio.lo
ao-objs := ao.lo
waveout-objs := waveout.lo
roar-objs := roar.lo
@@ -148,6 +149,7 @@ op-$(CONFIG_ALSA) += alsa.so
op-$(CONFIG_ARTS) += arts.so
op-$(CONFIG_OSS) += oss.so
op-$(CONFIG_SUN) += sun.so
+op-$(CONFIG_SNDIO) += sndio.so
op-$(CONFIG_AO) += ao.so
op-$(CONFIG_WAVEOUT) += waveout.so
op-$(CONFIG_ROAR) += roar.so
@@ -157,6 +159,7 @@ $(alsa-objs): CFLAGS += $(ALSA_CFLAGS)
$(arts-objs): CFLAGS += $(ARTS_CFLAGS)
$(oss-objs): CFLAGS += $(OSS_CFLAGS)
$(sun-objs): CFLAGS += $(SUN_CFLAGS)
+$(sndio-objs): CFLAGS += $(SNDIO_CFLAGS)
$(ao-objs): CFLAGS += $(AO_CFLAGS)
$(waveout-objs): CFLAGS += $(WAVEOUT_CFLAGS)
$(roar-objs): CFLAGS += $(ROAR_CFLAGS)
@@ -175,6 +178,9 @@ oss.so: $(oss-objs) $(libcmus-y)
sun.so: $(sun-objs) $(libcmus-y)
$(call cmd,ld_dl,$(SUN_LIBS))
+
+sndio.so: $(sndio-objs) $(libcmus-y)
+ $(call cmd,ld_dl,$(SNDIO_LIBS))
ao.so: $(ao-objs) $(libcmus-y)
$(call cmd,ld_dl,$(AO_LIBS))