summaryrefslogtreecommitdiff
path: root/audio/ocp/Makefile
diff options
context:
space:
mode:
authorhans <hans@pkgsrc.org>2012-02-15 22:23:15 +0000
committerhans <hans@pkgsrc.org>2012-02-15 22:23:15 +0000
commitbf57727a59d30adb394c9a1778277ae5108d020e (patch)
treed3e26a8b4e2e7c794edf1bf6c7e60ac4d3ff1519 /audio/ocp/Makefile
parentc0f2f31cd81c05dad4e030e9a685bd0a97c9bb57 (diff)
downloadpkgsrc-bf57727a59d30adb394c9a1778277ae5108d020e.tar.gz
Fix build on SunOS.
Diffstat (limited to 'audio/ocp/Makefile')
-rw-r--r--audio/ocp/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/audio/ocp/Makefile b/audio/ocp/Makefile
index d9d5dbc48dd..884b0d4ba7d 100644
--- a/audio/ocp/Makefile
+++ b/audio/ocp/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2012/02/05 21:48:26 sbd Exp $
+# $NetBSD: Makefile,v 1.11 2012/02/15 22:23:15 hans Exp $
DISTNAME= ocp-0.1.21
PKGREVISION= 1
@@ -23,11 +23,20 @@ USE_LANGUAGES= c c++
USE_NCURSES= yes # resize_term
INFO_FILES= yes
+REPLACE_SH= ocp-curses ocp-sdl ocp-vcsa ocp-x11
+
# ymtype.so wants to link -llzh before it's finished building
MAKE_JOBS_SAFE= no
CONFIGURE_ARGS+= --exec-prefix=${PREFIX}
CONFIGURE_ARGS+= --infodir=${PREFIX}/info
+CONFIGURE_ARGS+= --without-x11
+CONFIGURE_ARGS+= --without-sdl
+
+CFLAGS.SunOS+= -mimpure-text
+CFLAGS.SunOS+= -DSOUND_PCM_WRITE_CHANNELS=SNDCTL_DSP_CHANNELS
+CFLAGS.SunOS+= -DSOUND_PCM_WRITE_BITS=SNDCTL_DSP_SETFMT
+CFLAGS.SunOS+= -DSOUND_PCM_WRITE_RATE=SNDCTL_DSP_SPEED
.include "../../audio/libid3tag/buildlink3.mk"
.include "../../audio/libmad/buildlink3.mk"