package/octave: add optional libsndfile support

GNU Octave supports the --with-sndfile configure option since v4.0.0.

For reference, commit 40ea68b4b2 "package/octave: new package"
introduced the package at v7.1.0.

This commits adds this optional support.

Signed-off-by: Julien Olivain <ju.o@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Julien Olivain 2024-07-12 23:48:38 +02:00 committed by Thomas Petazzoni
parent 91cd948800
commit a5ce48fe45

View File

@ -43,6 +43,13 @@ else
OCTAVE_CONF_OPTS += --without-curl
endif
ifeq ($(BR2_PACKAGE_LIBSNDFILE),y)
OCTAVE_CONF_OPTS += --with-sndfile
OCTAVE_DEPENDENCIES += libsndfile
else
OCTAVE_CONF_OPTS += --without-sndfile
endif
ifeq ($(BR2_PACKAGE_OPENSSL),y)
OCTAVE_CONF_OPTS += --with-openssl=yes
OCTAVE_DEPENDENCIES += openssl