summaryrefslogtreecommitdiffstats
path: root/package/jquery-ui-themes/jquery-ui-themes.mk
diff options
context:
space:
mode:
Diffstat (limited to 'package/jquery-ui-themes/jquery-ui-themes.mk')
-rw-r--r--package/jquery-ui-themes/jquery-ui-themes.mk32
1 files changed, 32 insertions, 0 deletions
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 000000000..ae50ad41b
--- /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))