#
-# Copyright (C) 2007-2010 OpenWrt.org
+# Copyright (C) 2007-2018 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
PKG_LICENSE:=LGPLv2.1
PKG_LICENSE_FILES:=COPYING
-PKG_FIXUP:=autoreconf
PKG_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
+include $(INCLUDE_DIR)/cmake.mk
define Package/libsndfile
SECTION:=libs
containing sampled audio data.
endef
-CONFIGURE_ARGS+= \
- --disable-alsa \
- --disable-external-libs \
- --disable-sqlite
-
-CONFIGURE_VARS += \
- ac_cv_sys_file_offset_bits=64 \
- ac_cv_sys_large_files=yes \
- ac_cv_sys_largefile_CFLAGS=-D_LARGFILE_SOURCE \
- ac_cv_sys_largefile_LDFLAGS= \
- ac_cv_sys_largefile_LIBS= \
- ac_cv_sys_largefile_source=yes
+CMAKE_OPTIONS += \
+ -DBUILD_SHARED_LIBS:BOOL=ON \
+ -DENABLE_EXTERNAL_LIBS:BOOL=FALSE \
+ -DBUILD_REGTEST:BOOL=FALSE
TARGET_CFLAGS += $(FPIC)