From patchwork Thu Oct 2 19:58:30 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastien Bourdelin X-Patchwork-Id: 396101 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id 7A4F5140187 for ; Fri, 3 Oct 2014 05:59:59 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id B278CA2355; Thu, 2 Oct 2014 19:59:58 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id havS-MabjIWQ; Thu, 2 Oct 2014 19:59:58 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 1D5A5A2365; Thu, 2 Oct 2014 19:59:58 +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 555421BF974 for ; Thu, 2 Oct 2014 19:59:57 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 4FC1A91086 for ; Thu, 2 Oct 2014 19:59:57 +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 FcGHD++X9RnC for ; Thu, 2 Oct 2014 19:59:55 +0000 (UTC) X-Greylist: delayed 00:07:00 by SQLgrey-1.7.6 Received: from mail.savoirfairelinux.com (mail.savoirfairelinux.com [209.172.62.77]) by whitealder.osuosl.org (Postfix) with ESMTP id 0C8528F94B for ; Thu, 2 Oct 2014 19:59:55 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.savoirfairelinux.com (Postfix) with ESMTP id DF21BC9600A for ; Thu, 2 Oct 2014 15:52:54 -0400 (EDT) X-Virus-Scanned: amavisd-new at mail.savoirfairelinux.com Received: from mail.savoirfairelinux.com ([127.0.0.1]) by localhost (mail.savoirfairelinux.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xA9aGVekbTkQ; Thu, 2 Oct 2014 15:52:53 -0400 (EDT) Received: from localhost (mtl.savoirfairelinux.net [208.88.110.46]) by mail.savoirfairelinux.com (Postfix) with ESMTPSA id 73B1DC96006; Thu, 2 Oct 2014 15:52:53 -0400 (EDT) From: Sebastien Bourdelin To: buildroot@busybox.net Date: Thu, 2 Oct 2014 15:58:30 -0400 Message-Id: <1412279910-12645-1-git-send-email-sebastien.bourdelin@savoirfairelinux.com> X-Mailer: git-send-email 1.8.3.4 Cc: jerome.oufella@savoirfairelinux.com Subject: [Buildroot] [PATCH 1/1] cppunit: Added package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 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" CppUnit is the C++ port of the famous JUnit framework for unit testing. Test output is in XML or text format for automatic testing and GUI based for supervised tests. http://www.freedesktop.org/wiki/Software/cppunit/ Signed-off-by: Sebastien Bourdelin --- package/Config.in | 1 + package/cppunit/Config.in | 12 ++++++++++++ package/cppunit/cppunit.mk | 27 +++++++++++++++++++++++++++ 3 files changed, 40 insertions(+) create mode 100644 package/cppunit/Config.in create mode 100644 package/cppunit/cppunit.mk diff --git a/package/Config.in b/package/Config.in index 2ad72bc..5cde341 100644 --- a/package/Config.in +++ b/package/Config.in @@ -831,6 +831,7 @@ menu "Other" source "package/clapack/Config.in" source "package/classpath/Config.in" source "package/cppcms/Config.in" + source "package/cppunit/Config.in" source "package/eigen/Config.in" source "package/elfutils/Config.in" source "package/fftw/Config.in" diff --git a/package/cppunit/Config.in b/package/cppunit/Config.in new file mode 100644 index 0000000..91700b8 --- /dev/null +++ b/package/cppunit/Config.in @@ -0,0 +1,12 @@ +config BR2_PACKAGE_CPPUNIT + bool "cppunit" + depends on BR2_INSTALL_LIBSTDCPP + help + CppUnit is the C++ port of the famous JUnit framework for unit testing. + Test output is in XML or text format for automatic testing and GUI + based for supervised tests. + + http://www.freedesktop.org/wiki/Software/cppunit/ + +comment "cppunit needs a toolchain w/ C++" + depends on !BR2_INSTALL_LIBSTDCPP diff --git a/package/cppunit/cppunit.mk b/package/cppunit/cppunit.mk new file mode 100644 index 0000000..47d27be --- /dev/null +++ b/package/cppunit/cppunit.mk @@ -0,0 +1,27 @@ +################################################################################ +# +# cppunit +# +################################################################################ + +CPPUNIT_VERSION = cppunit-1.13.2 +CPPUNIT_SITE = git://anongit.freedesktop.org/git/libreoffice/cppunit/ +CPPUNIT_INSTALL_STAGING = YES +CPPUNIT_LICENSE = GPLv2 +CPPUNIT_LICENSE_FILES = COPYING + +define CPPUNIT_RUN_AUTOGEN + cd $(@D) && PATH=$(BR_PATH) ./autogen.sh +endef +CPPUNIT_PRE_CONFIGURE_HOOKS += CPPUNIT_RUN_AUTOGEN + +define CPPUNIT_CONFIGURE_CMDS + (cd $(@D); \ + ./configure \ + --host=$(GNU_TARGET_NAME) \ + --prefix=/usr \ + $(TARGET_CONFIGURE_OPTS) \ + ) +endef + +$(eval $(autotools-package))