summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Dawson <spdawson@gmail.com>2012-06-14 10:02:11 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2013-05-06 17:43:23 +0200
commit856727f4d0e5c8db9316c97cd2f4a51a643e373d (patch)
tree843f3a816edd31978ef341c283da10fd4541d113
parent9e5a5451c7785214568f35e679be0a43ec48f4df (diff)
downloadbuildroot-novena-856727f4d0e5c8db9316c97cd2f4a51a643e373d.tar.gz
buildroot-novena-856727f4d0e5c8db9316c97cd2f4a51a643e373d.zip
jquery-ui: new package
[Peter: select jquery, update for generic-package, drop _PATH options] Signed-off-by: Simon Dawson <spdawson@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rw-r--r--package/Config.in1
-rw-r--r--package/jquery-ui/Config.in10
-rw-r--r--package/jquery-ui/jquery-ui.mk35
3 files changed, 46 insertions, 0 deletions
diff --git a/package/Config.in b/package/Config.in
index fe4f56b73..6dc00220c 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -488,6 +488,7 @@ source "package/flot/Config.in"
source "package/jquery/Config.in"
source "package/jquery-keyboard/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"
source "package/json-javascript/Config.in"
diff --git a/package/jquery-ui/Config.in b/package/jquery-ui/Config.in
new file mode 100644
index 000000000..f1653d5ab
--- /dev/null
+++ b/package/jquery-ui/Config.in
@@ -0,0 +1,10 @@
+config BR2_PACKAGE_JQUERY_UI
+ bool "jQuery UI"
+ select BR2_PACKAGE_JQUERY
+ 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/
diff --git a/package/jquery-ui/jquery-ui.mk b/package/jquery-ui/jquery-ui.mk
new file mode 100644
index 000000000..3fd9e4319
--- /dev/null
+++ b/package/jquery-ui/jquery-ui.mk
@@ -0,0 +1,35 @@
+#############################################################
+#
+# 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)/var/www/jquery-ui.js
+ $(INSTALL) -m 0644 -D $(@D)/ui/minified/i18n/jquery-ui-i18n.min.js \
+ $(TARGET_DIR)/var/www/jquery-ui-i18n.js
+ $(INSTALL) -m 0644 -D $(@D)/themes/base/minified/jquery-ui.min.css \
+ $(TARGET_DIR)/var/www/jquery-ui.css
+ $(INSTALL) -d $(TARGET_DIR)/var/www/images
+ cp -a $(@D)/themes/base/minified/images/*.png \
+ $(TARGET_DIR)/var/www/images
+ chmod 0644 $(TARGET_DIR)/var/www/images/*.png
+endef
+
+define JQUERY_UI_UNINSTALL_TARGET_CMDS
+ $(RM) $(addprefix $(TARGET_DIR)/var/www/,\
+ jquery-ui.js jquery-ui-i18n.js jquery-ui.css)
+endef
+
+$(eval $(generic-package))