From patchwork Thu Jun 14 20:02:11 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Dawson X-Patchwork-Id: 165009 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 7623A1007D1 for ; Fri, 15 Jun 2012 06:03:31 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 42E318D62F; Thu, 14 Jun 2012 20:03:27 +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 qhXjVVdacHY7; Thu, 14 Jun 2012 20:03:26 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 03C4F8D5BE; Thu, 14 Jun 2012 20:03:24 +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 366C48F753 for ; Thu, 14 Jun 2012 20:03:23 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 327598D3DE for ; Thu, 14 Jun 2012 20:03:23 +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 UDSH0+0Xf3lL for ; Thu, 14 Jun 2012 20:03:22 +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 CFA4582963 for ; Thu, 14 Jun 2012 20:03:21 +0000 (UTC) Received: by eaaa12 with SMTP id a12so1139274eaa.16 for ; Thu, 14 Jun 2012 13:03:20 -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=c/1/ADZgKP8N5qI0WGCCD5TUbexavG40tbC0zSD5sBI=; b=xyPi2C7YJ1VdYO6WU88QqrGsYCScTvl+bvCAQnaWg5dne6nNMK+5aO7tXsrObzCqUs 3FqqqWV6eNUixDR372JRCVpuYPdT6GliiMRWZKeV57FdYuvLxyo4m8+Y+TLLvlbAaKNp jNc/QaujrtOkRBgTJg6BYvwhDIb+yXjM6nJhNMGKXQm6/BKBMQl7QWC2NmpRmlhjUG3u hG+qu3WLjF4qhEabCUITBOPYbP5Y+u5rYIPF3dis04ItCLQRHmWN6YUA1qjhuMbyVarN 1BJ3AMFaTbwC6KZYVkJqzP2e7ErtOEMTf5hSbumK2s3F50yGP95u3DQSjaVFSTYVXRtl FjOQ== Received: by 10.14.187.137 with SMTP id y9mr817576eem.62.1339704199768; Thu, 14 Jun 2012 13:03:19 -0700 (PDT) Received: from localhost.localdomain (host-2-100-182-54.as13285.net. [2.100.182.54]) by mx.google.com with ESMTPS id q53sm22925098eef.8.2012.06.14.13.03.17 (version=SSLv3 cipher=OTHER); Thu, 14 Jun 2012 13:03:18 -0700 (PDT) From: spdawson@gmail.com To: buildroot@busybox.net Date: Thu, 14 Jun 2012 21:02:11 +0100 Message-Id: <1339704133-11220-1-git-send-email-spdawson@gmail.com> X-Mailer: git-send-email 1.7.9.5 Subject: [Buildroot] [PATCH 1/2] jquery-ui: 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 --- package/Config.in | 1 + package/jquery-ui/Config.in | 23 +++++++++++++++++++++++ package/jquery-ui/jquery-ui.mk | 36 ++++++++++++++++++++++++++++++++++++ 3 files changed, 60 insertions(+) create mode 100644 package/jquery-ui/Config.in create mode 100644 package/jquery-ui/jquery-ui.mk diff --git a/package/Config.in b/package/Config.in index d047ce8..2f20617 100644 --- a/package/Config.in +++ b/package/Config.in @@ -381,6 +381,7 @@ source "package/explorercanvas/Config.in" source "package/flot/Config.in" source "package/jquery/Config.in" source "package/jquery-sparkline/Config.in" +source "package/jquery-ui/Config.in" source "package/jquery-validation/Config.in" source "package/jsmin/Config.in" endmenu diff --git a/package/jquery-ui/Config.in b/package/jquery-ui/Config.in new file mode 100644 index 0000000..073a40a --- /dev/null +++ b/package/jquery-ui/Config.in @@ -0,0 +1,23 @@ +config BR2_PACKAGE_JQUERY_UI + bool "jQuery UI" + help + jQuery UI provides abstractions for low-level interaction and + animation, advanced effects and high-level, themeable widgets, + built on top of the jQuery JavaScript Library, that you can use + to build highly interactive web applications. + + http://jqueryui.com/ + +config BR2_PACKAGE_JQUERY_UI_JAVASCRIPT_PATH + string "Target install path for JavaScript" + default "/var/www/javascripts" + depends on BR2_PACKAGE_JQUERY_UI + help + Specify a target install path for JavaScript files + +config BR2_PACKAGE_JQUERY_UI_CSS_PATH + string "Target install path for CSS" + default "/var/www/stylesheets" + depends on BR2_PACKAGE_JQUERY_UI + help + Specify a target install path for CSS files diff --git a/package/jquery-ui/jquery-ui.mk b/package/jquery-ui/jquery-ui.mk new file mode 100644 index 0000000..7f05e28 --- /dev/null +++ b/package/jquery-ui/jquery-ui.mk @@ -0,0 +1,36 @@ +############################################################# +# +# jquery-ui +# +############################################################# +JQUERY_UI_VERSION = 1.8.21 +JQUERY_UI_SITE = http://jquery-ui.googlecode.com/files +JQUERY_UI_SOURCE = jquery-ui-$(JQUERY_UI_VERSION).zip + +define JQUERY_UI_EXTRACT_CMDS + unzip -d $(@D) $(DL_DIR)/$(JQUERY_UI_SOURCE) + mv $(@D)/jquery-ui-$(JQUERY_UI_VERSION)/* $(@D) + $(RM) -r $(@D)/jquery-ui-$(JQUERY_UI_VERSION) +endef + +define JQUERY_UI_INSTALL_TARGET_CMDS + $(INSTALL) -m 0644 -D $(@D)/ui/minified/jquery-ui.min.js \ + $(TARGET_DIR)/$(BR2_PACKAGE_JQUERY_UI_JAVASCRIPT_PATH)/jquery-ui.js + $(INSTALL) -m 0644 -D $(@D)/ui/minified/i18n/jquery-ui-i18n.min.js \ + $(TARGET_DIR)/$(BR2_PACKAGE_JQUERY_UI_JAVASCRIPT_PATH)/jquery-ui-i18n.js + $(INSTALL) -m 0644 -D $(@D)/themes/base/minified/jquery-ui.min.css \ + $(TARGET_DIR)/$(BR2_PACKAGE_JQUERY_UI_CSS_PATH)/jquery-ui.css + $(INSTALL) -d $(TARGET_DIR)/$(BR2_PACKAGE_JQUERY_UI_CSS_PATH)/images + cp -a $(@D)/themes/base/minified/images/*.png \ + $(TARGET_DIR)/$(BR2_PACKAGE_JQUERY_UI_CSS_PATH)/images + chmod 0644 $(TARGET_DIR)/$(BR2_PACKAGE_JQUERY_UI_CSS_PATH)/images/*.png +endef + +define JQUERY_UI_UNINSTALL_TARGET_CMDS + $(RM) $(TARGET_DIR)/$(BR2_PACKAGE_JQUERY_UI_JAVASCRIPT_PATH)/jquery-ui.js + $(RM) $(TARGET_DIR)/$(BR2_PACKAGE_JQUERY_UI_JAVASCRIPT_PATH)/jquery-ui-i18n.js + $(RM) $(TARGET_DIR)/$(BR2_PACKAGE_JQUERY_UI_CSS_PATH)/jquery-ui.css + $(RM) -r $(TARGET_DIR)/$(BR2_PACKAGE_JQUERY_UI_CSS_PATH)/images +endef + +$(eval $(call GENTARGETS))