libsndfile: switch to cmake
authorPeter Wagner <tripolar@gmx.at>
Sun, 2 Dec 2018 10:42:07 +0000 (11:42 +0100)
committerPeter Wagner <tripolar@gmx.at>
Sun, 2 Dec 2018 10:42:34 +0000 (11:42 +0100)
Signed-off-by: Peter Wagner <tripolar@gmx.at>
libs/libsndfile/Makefile

index c223a8a3558aee2816a165224de49ed37e5863c6..6cef076b57c66bc9446bf87288af49b89ef32c0c 100644 (file)
@@ -1,5 +1,5 @@
 #
-# 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.
@@ -18,10 +18,10 @@ PKG_MIRROR_HASH:=8e7cb3da240888c9c0e17d066e904d720c94dd379d3e5105df69797e2b32101
 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
@@ -36,18 +36,10 @@ define Package/libsndfile/description
  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)