From 0ef247cf5da5d04bff1a8ff993622a22b2fdca1f Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Sat, 11 Jul 2020 15:37:21 -0700 Subject: [PATCH] libvorbis: update to 1.3.7 Switched to CMake for the faster compilation and the simpler Makefile. Minor Makefile cleanups. Before: time make package/libvorbis/compile -j 12 Executed in 24.40 secs fish external usr time 21.17 secs 0.00 micros 21.17 secs sys time 3.05 secs 426.00 micros 3.05 secs After: time make package/libvorbis/compile -j 12 Executed in 9.19 secs fish external usr time 11.29 secs 0.00 micros 11.29 secs sys time 1.43 secs 421.00 micros 1.43 secs Signed-off-by: Rosen Penev --- libs/libvorbis/Makefile | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/libs/libvorbis/Makefile b/libs/libvorbis/Makefile index d755506b0..042cf840d 100644 --- a/libs/libvorbis/Makefile +++ b/libs/libvorbis/Makefile @@ -6,22 +6,22 @@ include $(TOPDIR)/rules.mk PKG_NAME:=libvorbis -PKG_VERSION:=1.3.6 +PKG_VERSION:=1.3.7 PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz PKG_SOURCE_URL:=http://downloads.xiph.org/releases/vorbis/ -PKG_HASH:=af00bb5a784e7c9e69f56823de4637c350643deedaf333d0fa86ecdba6fcb415 -PKG_MAINTAINER:=Ted Hess +PKG_HASH:=b33cc4934322bcbf6efcbacf49e3ca01aadbea4114ec9589d1b1e9d20f72954b +PKG_MAINTAINER:=Ted Hess PKG_LICENSE:=BSD-3-Clause PKG_LICENSE_FILES:=COPYING PKG_CPE_ID:=cpe:/a:xiph.org:libvorbis -PKG_FIXUP:=autoreconf -PKG_INSTALL:=1 +PKG_BUILD_PARALLEL:=1 include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/cmake.mk define Package/libvorbis SECTION:=libs @@ -42,24 +42,23 @@ software entity may make full use of the format without license fee, royalty or patent concerns. endef +CMAKE_OPTIONS += \ + -DBUILD_SHARED_LIBS=ON + ifneq ($(findstring arm,$(CONFIG_ARCH)),) TARGET_CFLAGS += -flto TARGET_CXX_FLAGS += -flto TARGET_LDFLAGS += -flto endif -CONFIGURE_ARGS+= \ - --disable-oggtest \ - define Build/InstallDev - $(INSTALL_DIR) $(1)/usr/include/vorbis/ - $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/vorbis/* $(1)/usr/include/vorbis/ - $(INSTALL_DIR) $(1)/usr/lib/ - $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a,la} $(1)/usr/lib/ - $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/ - $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/ - $(INSTALL_DIR) $(1)/usr/share/aclocal/ - $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/aclocal/* $(1)/usr/share/aclocal/ + $(call Build/InstallDev/cmake,$(1)) + $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/vorbisenc.pc + $(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/vorbisenc.pc + $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/vorbisfile.pc + $(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/vorbisfile.pc + $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/vorbis.pc + $(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/vorbis.pc endef define Package/libvorbis/install