From patchwork Sun Dec 9 23:06:25 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Martin X-Patchwork-Id: 204804 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 897162C01FB for ; Mon, 10 Dec 2012 10:07:16 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 55C78A00CA; Sun, 9 Dec 2012 23:07:15 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cDgtBpHZHhKz; Sun, 9 Dec 2012 23:07:10 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id B98FAA00F3; Sun, 9 Dec 2012 23:06:56 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id E98BC8F74B for ; Sun, 9 Dec 2012 23:06:55 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id E6C2081B96 for ; Sun, 9 Dec 2012 23:06:50 +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 jFn5b6B9axH5 for ; Sun, 9 Dec 2012 23:06:50 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wi0-f177.google.com (mail-wi0-f177.google.com [209.85.212.177]) by whitealder.osuosl.org (Postfix) with ESMTPS id BDCF9829B8 for ; Sun, 9 Dec 2012 23:06:49 +0000 (UTC) Received: by mail-wi0-f177.google.com with SMTP id hm2so677705wib.10 for ; Sun, 09 Dec 2012 15:06:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=I9OEOAWZ+F3n9w44FlCJLqt3SHujkX2JR5R4ak1+N54=; b=BZUJyNXYCp6we5lKSHiAfJI9EyjjeMJU4ecQiDNdEYVoFLS38qHb0Oo0x8Hdz6RGVO 7GVawgHLJ9wETkwWWjlE3cip88bKwy1gDvX1n49qFWfzjH4jFtobPwDZEBazp08dYXZf a9FLwby4Bz065XRDEFMBCuk2FF8qcnzrqizobBnK4jGWcx3jZ8j1Dl4gEJiwYkbJj0dJ mIo8jWIphH/Drh3DgOqun21q49PT1ahrg6otoD6DVwbZV2oXkYRMxOIRxMtWOlNYLi45 T20hmFVurCPBzTBkGMCTmjIiga1MaelBXpX8NsUGlJYiuSq7JfKhlMptNG3zCOhGhWuy eZAQ== Received: by 10.181.11.234 with SMTP id el10mr7882526wid.7.1355094409189; Sun, 09 Dec 2012 15:06:49 -0800 (PST) Received: from localhost.localdomain (ivr94-4-82-229-165-48.fbx.proxad.net. [82.229.165.48]) by mx.google.com with ESMTPS id y3sm7881379wix.6.2012.12.09.15.06.47 (version=SSLv3 cipher=OTHER); Sun, 09 Dec 2012 15:06:48 -0800 (PST) From: Samuel Martin To: buildroot@busybox.net Date: Mon, 10 Dec 2012 00:06:25 +0100 Message-Id: <1355094387-22886-5-git-send-email-s.martin49@gmail.com> X-Mailer: git-send-email 1.8.0.1 In-Reply-To: <1355094387-22886-1-git-send-email-s.martin49@gmail.com> References: <1355094387-22886-1-git-send-email-s.martin49@gmail.com> Cc: armadeus-forum@lists.sourceforge.net Subject: [Buildroot] [PATCH] flite: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net Cc: Eric Jarrige Signed-off-by: Samuel Martin Tested-by: Eric Jarrige --- package/multimedia/Config.in | 1 + package/multimedia/flite/Config.in | 11 ++++++++ package/multimedia/flite/flite.mk | 57 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 69 insertions(+) create mode 100644 package/multimedia/flite/Config.in create mode 100644 package/multimedia/flite/flite.mk diff --git a/package/multimedia/Config.in b/package/multimedia/Config.in index 273d9bc..3ca0531 100644 --- a/package/multimedia/Config.in +++ b/package/multimedia/Config.in @@ -4,6 +4,7 @@ source "package/multimedia/aumix/Config.in" source "package/multimedia/bellagio/Config.in" source "package/multimedia/faad2/Config.in" source "package/multimedia/flac/Config.in" +source "package/multimedia/flite/Config.in" source "package/multimedia/ffmpeg/Config.in" source "package/multimedia/gstreamer/Config.in" source "package/multimedia/gst-ffmpeg/Config.in" diff --git a/package/multimedia/flite/Config.in b/package/multimedia/flite/Config.in new file mode 100644 index 0000000..bef989c --- /dev/null +++ b/package/multimedia/flite/Config.in @@ -0,0 +1,11 @@ +config BR2_PACKAGE_FLITE + bool "flite" + help + Flite: a small, fast run time synthesis engine. + Flite (festival-lite) is a small, fast run-time synthesis engine + developed at CMU and primarily designed for small embedded machines + and/or large servers. Flite is designed as an alternative synthesis + engine to Festival for voices built using the FestVox suite of voice + building tools. + + http://www.speech.cs.cmu.edu/flite diff --git a/package/multimedia/flite/flite.mk b/package/multimedia/flite/flite.mk new file mode 100644 index 0000000..c72988f --- /dev/null +++ b/package/multimedia/flite/flite.mk @@ -0,0 +1,57 @@ +############################################################# +# +# flite +# +############################################################# +FLITE_VERSION = 1.4 +FLITE_SOURCE = flite-$(FLITE_VERSION)-release.tar.bz2 +FLITE_SITE = http://www.speech.cs.cmu.edu/flite/packed/flite-$(FLITE_VERSION) +FLITE_LICENSE = BSD-4c +FLITE_LICENSE_FILES = COPYING + +FLITE_INSTALL_STAGING = YES + +# Sadly, Flite does not support parallel build, +# especially when build its shared libraries. +FLITE_MAKE = $(MAKE1) + +FLITE_CONF_OPT = \ + $(if $(BR2_PREFER_STATIC_LIB),,--enable-shared) + +FLITE_INSTALL_STAGING_OPT = \ + INSTALLBINDIR=$(STAGING_DIR)/usr/bin \ + INSTALLLIBDIR=$(STAGING_DIR)/usr/lib \ + INSTALLINCDIR=$(STAGING_DIR)/usr/include/flite \ + install + +FLITE_INSTALL_TARGET_OPT = \ + INSTALLBINDIR=$(TARGET_DIR)/usr/bin \ + INSTALLLIBDIR=$(TARGET_DIR)/usr/lib \ + INSTALLINCDIR=$(TARGET_DIR)/usr/include/flite \ + install + +# Flite totally screw up their tarball generation, so that: +# +# $ tar tf flite-1.4-release.tar.bz2 +# ... +# flite-1.4-release//install-sh +# flite-1.4-release//mkinstalldirs +# flite-1.4-release//Exports.def +# flite-1.4-release//flite.sln +# flite-1.4-release//fliteDll.vcproj +# flite-1.4-release/config/Makefile +# flite-1.4-release/config/common_make_rules +# flite-1.4-release/config/project.mak +# flite-1.4-release/config/config.in +# flite-1.4-release/config/system.mak.in +# +# So, the strip-component trick does not work at all. +# Let's redefine the extract command. +define FLITE_EXTRACT_CMDS + $(RM) -rf $(FLITE_DIR) + $(INFLATE$(suffix $(FLITE_SOURCE))) $(DL_DIR)/$(FLITE_SOURCE) | \ + $(TAR) -C $(BUILD_DIR) $(TAR_OPTIONS) - + mv $(BUILD_DIR)/$(subst .tar.bz2,,$(FLITE_SOURCE)) $(FLITE_DIR) +endef + +$(eval $(autotools-package))