514291f39e
Instead of DL_DIR, the package should now use $(PKG)_DL_DIR to ease the transition into a new directory structure for DL_DIR. This commit has been generated with the following scripts: for i in $(find . -iname "*.mk"); do if ! grep -q "\$(DL_DIR)" ${i}; then continue fi pkg_name="$(basename $(dirname ${i}))" [ "${pkg_name}" = "package" ] && continue raw_pkg_name=$(echo ${pkg_name} | tr [a-z] [A-Z] | tr '-' '_') pkg_dl_dir="${raw_pkg_name}_DL_DIR" sed -i "s/\$(DL_DIR)/\$($pkg_dl_dir)/" ${i} done Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
35 lines
1.2 KiB
Makefile
35 lines
1.2 KiB
Makefile
################################################################################
|
|
#
|
|
# jquery-ui
|
|
#
|
|
################################################################################
|
|
|
|
JQUERY_UI_VERSION = 1.10.4
|
|
# Use buildroot mirror since upstream switched the zipfile and directory
|
|
# structure without bumping/renaming.
|
|
# Remember to switch back to jqueryui.com when bumping!
|
|
JQUERY_UI_SITE = http://sources.buildroot.net
|
|
JQUERY_UI_SOURCE = jquery-ui-$(JQUERY_UI_VERSION).zip
|
|
JQUERY_UI_LICENSE = MIT
|
|
JQUERY_UI_LICENSE_FILES = MIT-LICENSE.txt
|
|
|
|
define JQUERY_UI_EXTRACT_CMDS
|
|
$(UNZIP) -d $(@D) $(JQUERY_UI_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
|
|
$(INSTALL) -m 0644 -t $(TARGET_DIR)/var/www/images \
|
|
$(@D)/themes/base/minified/images/*.png
|
|
endef
|
|
|
|
$(eval $(generic-package))
|