summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2009-05-02 17:24:15 +0000
committerwiz <wiz@pkgsrc.org>2009-05-02 17:24:15 +0000
commitb1034c7b41e22e9a2c1e4a9010cdd6ddad8c3611 (patch)
treecae15bbc39b046e065e324f9503a0fe30a6d2ec2
parenta0d0c9b7955c7ae9594830ae35961cca7d81a20f (diff)
downloadpkgsrc-b1034c7b41e22e9a2c1e4a9010cdd6ddad8c3611.tar.gz
Add octave option, based on PR 41307 by Rumko.
-rw-r--r--audio/libsndfile/options.mk11
1 files changed, 10 insertions, 1 deletions
diff --git a/audio/libsndfile/options.mk b/audio/libsndfile/options.mk
index d735349df20..ec026aab799 100644
--- a/audio/libsndfile/options.mk
+++ b/audio/libsndfile/options.mk
@@ -1,6 +1,7 @@
-# $NetBSD: options.mk,v 1.5 2008/07/24 22:39:30 obache Exp $
+# $NetBSD: options.mk,v 1.6 2009/05/02 17:24:15 wiz Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.libsndfile
+PKG_SUPPORTED_OPTIONS= octave
PKG_OPTIONS_OPTIONAL_GROUPS= output
PKG_OPTIONS_GROUP.output= oss sun
@@ -23,6 +24,14 @@ PKG_SUGGESTED_OPTIONS= ${SNDFILE_OUTPUT.${OPSYS}}
.include "../../mk/bsd.options.mk"
+.if !empty(PKG_OPTIONS:Moctave)
+USE_LANGUAGES= fortran
+USE_TOOLS+= gmake
+.include "../../math/octave/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --disable-octave
+.endif
+
.if !empty(PKG_OPTIONS:Moss)
.include "../../mk/oss.buildlink3.mk"
OSS_DEFS= -DDEV_DSP=\"${DEVOSSAUDIO:Q}\" -DUSE_OSS=1