From patchwork Tue Sep 25 15:36:40 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dallas Clement X-Patchwork-Id: 186837 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id 54EC32C0081 for ; Wed, 26 Sep 2012 01:36:59 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id D34FC8A28B; Tue, 25 Sep 2012 15:36:56 +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 BrwUyehTSdbE; Tue, 25 Sep 2012 15:36:47 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 4E8738C8EA; Tue, 25 Sep 2012 15:36:44 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id B09F88F74B for ; Tue, 25 Sep 2012 15:36:44 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id CA8B930D28 for ; Tue, 25 Sep 2012 15:36:42 +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 Se3ymH5a7kUg for ; Tue, 25 Sep 2012 15:36:41 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-vb0-f46.google.com (mail-vb0-f46.google.com [209.85.212.46]) by silver.osuosl.org (Postfix) with ESMTPS id 9661F2FF6B for ; Tue, 25 Sep 2012 15:36:41 +0000 (UTC) Received: by vbbff1 with SMTP id ff1so8720173vbb.33 for ; Tue, 25 Sep 2012 08:36:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=FLO7AInC5Xn7mBHUBOIVWn5FmUi3SBuZyEZ+Tm9L8GU=; b=biWNxiYlQpMBOxgwdbS1IA9muMfo9AV4fzmzk+knqKapPtSOJBxrZtET33eu10JB8n 7SNcywEF+EaO3VMtSpvjQfJKlr9fIW7JP5gn2P15ZuCKcYS5HEJzAtKjqTCzwM/XfyGq 2lJfnBxNKOIubxhx+cavIqMWn270RsjuwjEIMNBqWxSefuIkrStrFCcEudLdHtMvXQI5 HeHtlIymPaJyKRPhIst1Z32jPbZux9cjLBqiZH7eCBnU4r8sSz5JxV7KsxzljDWwn7HY rsRn4Q4ixUE6uvBqtbHkhSPokVAGiTD1tK8WYPQQ2BuKNiCrdvFyQDVYdPKxkbmfRuCB LY7A== MIME-Version: 1.0 Received: by 10.220.154.68 with SMTP id n4mr7198824vcw.22.1348587400607; Tue, 25 Sep 2012 08:36:40 -0700 (PDT) Received: by 10.58.4.5 with HTTP; Tue, 25 Sep 2012 08:36:40 -0700 (PDT) Date: Tue, 25 Sep 2012 10:36:40 -0500 Message-ID: From: Dallas Clement To: buildroot@uclibc.org Subject: [Buildroot] [PATCH] Add config for PHP eaccelerator package. Signed-off-by: Dallas Clement 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: , Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net package/Config.in | 1 + package/eaccelerator/Config.in | 7 +++++++ package/eaccelerator/eaccelerator.mk | 23 +++++++++++++++++++++++ 3 files changed, 31 insertions(+), 0 deletions(-) create mode 100644 package/eaccelerator/Config.in create mode 100644 package/eaccelerator/eaccelerator.mk +$(eval $(autotools-package)) diff --git a/package/Config.in b/package/Config.in index 58dd5e8..083cad8 100644 --- a/package/Config.in +++ b/package/Config.in @@ -272,6 +272,7 @@ endmenu endif source "package/microperl/Config.in" source "package/php/Config.in" +source "package/eaccelerator/Config.in" source "package/python/Config.in" if BR2_PACKAGE_PYTHON menu "external python modules" diff --git a/package/eaccelerator/Config.in b/package/eaccelerator/Config.in new file mode 100644 index 0000000..36600e1 --- /dev/null +++ b/package/eaccelerator/Config.in @@ -0,0 +1,7 @@ +config BR2_PACKAGE_EACCELERATOR + bool "eaccelerator" + depends on BR2_PACKAGE_PHP + help + PHP accelerator and optimizer. + + http://eaccelerator.net/ diff --git a/package/eaccelerator/eaccelerator.mk b/package/eaccelerator/eaccelerator.mk new file mode 100644 index 0000000..5ecd355 --- /dev/null +++ b/package/eaccelerator/eaccelerator.mk @@ -0,0 +1,23 @@ +############################################################# +# +# eaccelerator +# +############################################################# +EACCELERATOR_VERSION = 0.9.6.1 +EACCELERATOR_SITE = http://eaccelerator.net/ +EACCELERATOR_SOURCE = eaccelerator-$(EACCELERATOR_VERSION).tar.bz2 +EACCELERATOR_DEPENDENCIES = php +EACCELERATOR_CONF_OPT = --enable-eaccelerator=shared \ + --with-php-config=$(STAGING_DIR)/usr/bin/php-config +EACCELERATOR_MAKE_ENV = INSTALL_ROOT="$(TARGET_DIR)" + +define EACCELERATOR_PRE_CONFIGURE_HOOK + # Must set shared memory config manually for cross-compilation + sed -i "s/mm_shm_mmap_anon=no/mm_shm_mmap_anon=yes\n mm_sem_pthread=yes/" $(@D)/config.m4 + # Need to run this command to create the autoconf configure script + cd $(@D) && phpize +endef + +EACCELERATOR_PRE_CONFIGURE_HOOKS += EACCELERATOR_PRE_CONFIGURE_HOOK +