summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Dawson <spdawson@gmail.com>2012-06-14 10:02:12 (GMT)
committer Peter Korsgaard <jacmet@sunsite.dk>2013-05-06 21:46:10 (GMT)
commit77572e6f9fa116562f050b3d1c255ba0010e8ff0 (patch)
treec2b795ac932f979260c560a290215ff10e14d5ef
parent0421f606f0f3479ea87a302ccc601627067282ba (diff)
downloadbuildroot-77572e6f9fa116562f050b3d1c255ba0010e8ff0.tar.gz
buildroot-77572e6f9fa116562f050b3d1c255ba0010e8ff0.tar.bz2
jquery-ui-themes: new package
[Peter: drop CSS path option, depend on jquery-ui, misc cleanups] 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-themes/Config.in14
-rw-r--r--package/jquery-ui-themes/jquery-ui-themes.mk32
3 files changed, 47 insertions, 0 deletions
diff --git a/package/Config.in b/package/Config.in
index 6dc0022..6b38242 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -489,6 +489,7 @@ 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-ui-themes/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-themes/Config.in b/package/jquery-ui-themes/Config.in
new file mode 100644
index 0000000..dfde9c1
--- /dev/null
+++ b/package/jquery-ui-themes/Config.in
@@ -0,0 +1,14 @@
+config BR2_PACKAGE_JQUERY_UI_THEMES
+ bool "jQuery UI themes"
+ depends on BR2_PACKAGE_JQUERY_UI
+ help
+ Themes for jQuery UI.
+
+ http://jqueryui.com/
+
+config BR2_PACKAGE_JQUERY_UI_THEMES_THEME
+ string "theme to install"
+ default "base"
+ depends on BR2_PACKAGE_JQUERY_UI_THEMES
+ help
+ Specify the name of the jQuery UI theme to install.
diff --git a/package/jquery-ui-themes/jquery-ui-themes.mk b/package/jquery-ui-themes/jquery-ui-themes.mk
new file mode 100644
index 0000000..ae50ad4
--- /dev/null
+++ b/package/jquery-ui-themes/jquery-ui-themes.mk
@@ -0,0 +1,32 @@
+#############################################################
+#
+# jquery-ui-themes
+#
+#############################################################
+
+JQUERY_UI_THEMES_VERSION = 1.8.21
+JQUERY_UI_THEMES_SITE = http://jquery-ui.googlecode.com/files
+JQUERY_UI_THEMES_SOURCE = jquery-ui-themes-$(JQUERY_UI_THEMES_VERSION).zip
+JQUERY_UI_THEMES_DEPENDENCIES = jquery-ui
+
+define JQUERY_UI_THEMES_EXTRACT_CMDS
+ unzip -d $(@D) $(DL_DIR)/$(JQUERY_UI_THEMES_SOURCE)
+ mv $(@D)/jquery-ui-themes-$(JQUERY_UI_THEMES_VERSION)/* $(@D)
+ $(RM) -r $(@D)/jquery-ui-themes-$(JQUERY_UI_THEMES_VERSION)
+endef
+
+define JQUERY_UI_THEMES_INSTALL_TARGET_CMDS
+ $(INSTALL) -m 0644 -D \
+ $(@D)/themes/$(BR2_PACKAGE_JQUERY_UI_THEMES_THEME)/jquery-ui.css \
+ $(TARGET_DIR)/var/www/jquery-ui.css
+ $(INSTALL) -d $(TARGET_DIR)/var/www/images
+ cp -a $(@D)/themes/$(BR2_PACKAGE_JQUERY_UI_THEMES_THEME)/images/*.png \
+ $(TARGET_DIR)/var/www/images
+ chmod 0644 $(TARGET_DIR)/var/www/images/*.png
+endef
+
+define JQUERY_UI_THEMES_UNINSTALL_TARGET_CMDS
+ $(RM) $(TARGET_DIR)/var/www/jquery-ui.css
+endef
+
+$(eval $(generic-package))