From patchwork Fri Jul 27 09:51:47 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Dawson X-Patchwork-Id: 173611 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id DBD4B2C0040 for ; Fri, 27 Jul 2012 19:52:05 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 189FE32DAF; Fri, 27 Jul 2012 09:52:03 +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 3CLFDHpeh2dv; Fri, 27 Jul 2012 09:51:58 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 321E232ACD; Fri, 27 Jul 2012 09:51:57 +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 ED8738F791 for ; Fri, 27 Jul 2012 09:51:55 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id E61748FDC0 for ; Fri, 27 Jul 2012 09:51:55 +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 yp3ySCTgc5yt for ; Fri, 27 Jul 2012 09:51:54 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ey0-f171.google.com (mail-ey0-f171.google.com [209.85.215.171]) by whitealder.osuosl.org (Postfix) with ESMTPS id A6E3E8F9E1 for ; Fri, 27 Jul 2012 09:51:53 +0000 (UTC) Received: by eaaw1 with SMTP id w1so757493eaa.16 for ; Fri, 27 Jul 2012 02:51:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:x-mailer; bh=1SVMRAkBz+g+2Tpq8CT7mRbQSz2xKx5AbbE7bvKqCwQ=; b=pyR6ctUQxwe++fmgHrFYdHySomWF9dyhmZDFUqezgmGBAsfDHux638/EqTTtULR8qi sz1QoKJw1mRnI0r/LXizS/w69Gqd/c1dOPzMUD3UNDc3u3bRm3EIcyRfY2UzvPdOBloR N4IA/t33V3+bdnHssHhfij5XmZYQoBADtTnY9NROhaJUTBdMu78RDK5BSnR0duzsOnWf 2g3YSQRNhjb9rAFK5hCTjh8AVcIvvMFbSr9ur50CXzKoG/VC5ovZBo8zy8O6aYEINbJr rQvwN8zcIOc/h8LpojaCaNHl8QicX+ZGt7kGs73PM/Ct056yen0p0pohzYlzMekEuLbL c80Q== Received: by 10.14.173.71 with SMTP id u47mr1978212eel.22.1343382711653; Fri, 27 Jul 2012 02:51:51 -0700 (PDT) Received: from percy.train.local ([213.170.149.177]) by mx.google.com with ESMTPS id t6sm4660103eeo.17.2012.07.27.02.51.49 (version=SSLv3 cipher=OTHER); Fri, 27 Jul 2012 02:51:50 -0700 (PDT) From: spdawson@gmail.com To: buildroot@busybox.net Date: Fri, 27 Jul 2012 10:51:47 +0100 Message-Id: <1343382707-2698-1-git-send-email-spdawson@gmail.com> X-Mailer: git-send-email 1.7.9.5 Subject: [Buildroot] [PATCH v2] sconeserver: 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 From: Simon Dawson Signed-off-by: Simon Dawson --- v2: Extensive rework in response to feedback on mailing list. package/Config.in | 1 + package/sconeserver/Config.in | 84 +++++++++++++++++++++++++++ package/sconeserver/sconeserver.mk | 111 ++++++++++++++++++++++++++++++++++++ 3 files changed, 196 insertions(+) create mode 100644 package/sconeserver/Config.in create mode 100644 package/sconeserver/sconeserver.mk diff --git a/package/Config.in b/package/Config.in index f664b8e..a88e639 100644 --- a/package/Config.in +++ b/package/Config.in @@ -591,6 +591,7 @@ source "package/rsh-redone/Config.in" source "package/rsync/Config.in" source "package/rtorrent/Config.in" source "package/samba/Config.in" +source "package/sconeserver/Config.in" source "package/ser2net/Config.in" source "package/socat/Config.in" source "package/socketcand/Config.in" diff --git a/package/sconeserver/Config.in b/package/sconeserver/Config.in new file mode 100644 index 0000000..3fa2e5f --- /dev/null +++ b/package/sconeserver/Config.in @@ -0,0 +1,84 @@ +menuconfig BR2_PACKAGE_SCONESERVER + bool "sconeserver" + depends on BR2_INSTALL_LIBSTDCPP + select BR2_PACKAGE_PCRE + help + Sconeserver is a modular, object-orientated and extremely versatile + network server framework for GNU/Linux and UNIX-like platforms. + + http://www.sconemad.com/sconeserver/ + +if BR2_PACKAGE_SCONESERVER + +comment "Sconeserver modules" + +config BR2_PACKAGE_SCONESERVER_EXAMPLES + bool "examples" + help + Example modules for Sconeserver + +config BR2_PACKAGE_SCONESERVER_HTTP_SCONESITE + bool "http::sconesite" + select BR2_PACKAGE_LIBXML2 + help + http::sconesite module for Sconeserver + +config BR2_PACKAGE_SCONESERVER_HTTP_SCONESITE_IMAGE + bool "http::sconesite::image" + depends on BR2_PACKAGE_SCONESERVER_HTTP_SCONESITE + select BR2_PACKAGE_IMAGEMAGICK + help + http::sconesite::image module for Sconeserver + +config BR2_PACKAGE_SCONESERVER_MYSQL + bool "mysql" + select BR2_PACKAGE_MYSQL_CLIENT + help + MySQL module for Sconeserver + +config BR2_PACKAGE_SCONESERVER_BLUETOOTH + bool "bluetooth" + select BR2_PACKAGE_BLUEZ_UTILS + help + Bluetooth module for Sconeserver + +config BR2_PACKAGE_SCONESERVER_RSS + bool "rss" + select BR2_PACKAGE_LIBXML2 + help + RSS module for Sconeserver + +config BR2_PACKAGE_SCONESERVER_LOCATION + bool "location" + select BR2_PACKAGE_GPSD + help + Location module for Sconeserver + +config BR2_PACKAGE_SCONESERVER_LETTUCE + bool "lettuce" + help + Sconeserver module for Lettuce embedded automation platform + + http://www.sconemad.com/lettuce/ + +config BR2_PACKAGE_SCONESERVER_MATHS + bool "maths" + select BR2_PACKAGE_MPFR + help + Mathematics module for Sconeserver + +config BR2_PACKAGE_SCONESERVER_TESTBUILDER + bool "testbuilder" + help + Testbuilder module for Sconeserver + +config BR2_PACKAGE_SCONESERVER_UI + bool "ui" + select BR2_PACKAGE_XLIB_LIBX11 + help + UI module for Sconeserver + +endif # BR2_PACKAGE_SCONESERVER + +comment "sconeserver requires a toolchain with C++ support enabled" + depends on !BR2_INSTALL_LIBSTDCPP diff --git a/package/sconeserver/sconeserver.mk b/package/sconeserver/sconeserver.mk new file mode 100644 index 0000000..45aadef --- /dev/null +++ b/package/sconeserver/sconeserver.mk @@ -0,0 +1,111 @@ +############################################################# +# +# sconeserver +# +############################################################# +# Release 0.6.0 doesn't build cleanly, so use a recent +# Subversion trunk snapshot. +SCONESERVER_VERSION = 178 +SCONESERVER_SITE = \ + https://sconeserver.svn.sourceforge.net/svnroot/sconeserver/trunk +SCONESERVER_SITE_METHOD = svn + +SCONESERVER_LICENSE = GPLv2+ +SCONESERVER_LICENSE_FILES = COPYING + +SCONESERVER_DEPENDENCIES += pcre +SCONESERVER_CONF_OPT += --with-ip --with-local + +# Sconeserver configure script fails to find the libxml2 headers. +ifeq ($(BR2_PACKAGE_LIBXML2),y) + SCONESERVER_CONF_OPT += CPPFLAGS="-I$(STAGING_DIR)/usr/include/libxml2" +endif + +ifeq ($(BR2_INET_IPV6),y) + SCONESERVER_CONF_OPT += --with-ip6 +else + SCONESERVER_CONF_OPT += --without-ip6 +endif + +ifeq ($(BR2_PACKAGE_OPENSSL),y) + SCONESERVER_DEPENDENCIES += openssl + SCONESERVER_CONF_OPT += --with-ssl +else + SCONESERVER_CONF_OPT += --without-ssl +endif + +ifeq ($(BR2_PACKAGE_SCONESERVER_EXAMPLES),y) + SCONESERVER_CONF_OPT += --with-examples +else + SCONESERVER_CONF_OPT += --without-examples +endif + +ifeq ($(BR2_PACKAGE_SCONESERVER_HTTP_SCONESITE),y) + SCONESERVER_DEPENDENCIES += libxml2 + SCONESERVER_CONF_OPT += --with-sconesite +else + SCONESERVER_CONF_OPT += --without-sconesite +endif + +ifeq ($(BR2_PACKAGE_SCONESERVER_HTTP_SCONESITE_IMAGE),y) + SCONESERVER_DEPENDENCIES += imagemagick + SCONESERVER_CONF_OPT += --with-sconesite-image +else + SCONESERVER_CONF_OPT += --without-sconesite-image +endif + +ifeq ($(BR2_PACKAGE_SCONESERVER_MYSQL),y) + SCONESERVER_DEPENDENCIES += mysql_client + SCONESERVER_CONF_OPT += --with-mysql +else + SCONESERVER_CONF_OPT += --without-mysql +endif + +ifeq ($(BR2_PACKAGE_SCONESERVER_BLUETOOTH),y) + SCONESERVER_DEPENDENCIES += bluez_utils + SCONESERVER_CONF_OPT += --with-bluetooth +else + SCONESERVER_CONF_OPT += --without-bluetooth +endif + +ifeq ($(BR2_PACKAGE_SCONESERVER_RSS),y) + SCONESERVER_DEPENDENCIES += libxml2 + SCONESERVER_CONF_OPT += --with-rss +else + SCONESERVER_CONF_OPT += --without-rss +endif + +ifeq ($(BR2_PACKAGE_SCONESERVER_LOCATION),y) + SCONESERVER_DEPENDENCIES += gpsd + SCONESERVER_CONF_OPT += --with-location +else + SCONESERVER_CONF_OPT += --without-location +endif + +ifeq ($(BR2_PACKAGE_SCONESERVER_LETTUCE),y) + SCONESERVER_CONF_OPT += --with-lettuce +else + SCONESERVER_CONF_OPT += --without-lettuce +endif + +ifeq ($(BR2_PACKAGE_SCONESERVER_MATHS),y) + SCONESERVER_DEPENDENCIES += mpfr + SCONESERVER_CONF_OPT += --with-maths +else + SCONESERVER_CONF_OPT += --without-maths +endif + +ifeq ($(BR2_PACKAGE_SCONESERVER_TESTBUILDER),y) + SCONESERVER_CONF_OPT += --with-testbuilder +else + SCONESERVER_CONF_OPT += --without-testbuilder +endif + +ifeq ($(BR2_PACKAGE_SCONESERVER_UI),y) + SCONESERVER_DEPENDENCIES += xlib_libX11 + SCONESERVER_CONF_OPT += --with-ui +else + SCONESERVER_CONF_OPT += --without-ui +endif + +$(eval $(autotools-package))