kumquat-buildroot/package/jquery-ui-themes/jquery-ui-themes.mk
Peter Korsgaard ea1ece13e2 jquery-ui-themes: bump version
The base theme is no longer available in the themes download (it is the
standard theme installed by jquery-ui), so default to ui-lightness instead.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2013-05-06 23:52:41 +02:00

35 lines
1.1 KiB
Makefile

#############################################################
#
# jquery-ui-themes
#
#############################################################
JQUERY_UI_THEMES_VERSION = 1.10.3
JQUERY_UI_THEMES_SITE = http://jqueryui.com/resources/download
JQUERY_UI_THEMES_SOURCE = jquery-ui-themes-$(JQUERY_UI_THEMES_VERSION).zip
JQUERY_UI_THEMES_LICENSE = MIT
JQUERY_UI_THEMES_LICENSE_FILES = MIT-LICENSE.txt
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))