From patchwork Thu Dec 12 17:18:59 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Cercueil X-Patchwork-Id: 1208677 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=crapouillou.net Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=crapouillou.net header.i=@crapouillou.net header.b="rKwjG+X4"; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47YgWk45TMz9s4Y for ; Fri, 13 Dec 2019 04:19:14 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id E538424F76; Thu, 12 Dec 2019 17:19:12 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1iAocgebUEOz; Thu, 12 Dec 2019 17:19:10 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 9F56524F13; Thu, 12 Dec 2019 17:19:10 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id CB04C1BF277 for ; Thu, 12 Dec 2019 17:19:08 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id C7FC4881A5 for ; Thu, 12 Dec 2019 17:19:08 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lPWy2GtWUGzm for ; Thu, 12 Dec 2019 17:19:08 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from crapouillou.net (outils.crapouillou.net [89.234.176.41]) by whitealder.osuosl.org (Postfix) with ESMTPS id D26F88818F for ; Thu, 12 Dec 2019 17:19:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1576171144; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references; bh=4QtiYAkDOB0oKA6AZXrHDbDiy+VIkxf+zt5JnsQ/jWA=; b=rKwjG+X4ESYAxYzQpSzGEgsztl24EbKbWgzO5t6KtQow/uYazukXRjj8OJ83hvw3JHjlqW tzLWPRRfmOR8fQnaaQC/sCM8pupwjYdaveNpplL9Z2ZAE1HOtfRNORFF8nonOTfPuYzr0p XfNgBihvaqLTkX7N7vRuBxxixpkB1iE= From: Paul Cercueil To: buildroot@busybox.net Date: Thu, 12 Dec 2019 18:18:59 +0100 Message-Id: <20191212171859.783617-1-paul@crapouillou.net> MIME-Version: 1.0 Subject: [Buildroot] [PATCH v2] SDL_mixer: Prefer Tremor over libvorbis X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Paul Cercueil , od@zcrc.me Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" When Tremor is enabled, configure SDL_mixer to use this Vorbis decoding library instead of libvorbis. Since Tremor does fixed-point math, it is safe to assume that if it's enabled then it is faster than libvorbis on the target architecture. Signed-off-by: Paul Cercueil --- Notes: v2: Remove Config.in option; enable Tremor support if Tremor is enabled in the config. package/sdl_mixer/sdl_mixer.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package/sdl_mixer/sdl_mixer.mk b/package/sdl_mixer/sdl_mixer.mk index 81ace86498..d6f7b42deb 100644 --- a/package/sdl_mixer/sdl_mixer.mk +++ b/package/sdl_mixer/sdl_mixer.mk @@ -42,11 +42,16 @@ else SDL_MIXER_CONF_OPTS += --disable-music-mod-modplug endif +ifeq ($(BR2_PACKAGE_TREMOR),y) +SDL_MIXER_CONF_OPTS += --enable-music-ogg-tremor +SDL_MIXER_DEPENDENCIES += tremor +else ifeq ($(BR2_PACKAGE_LIBVORBIS),y) SDL_MIXER_CONF_OPTS += --enable-music-ogg SDL_MIXER_DEPENDENCIES += libvorbis else SDL_MIXER_CONF_OPTS += --disable-music-ogg endif +endif $(eval $(autotools-package))