![Maxime Hadjinlian](/assets/img/avatar_default.png)
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>
48 lines
1.5 KiB
Makefile
48 lines
1.5 KiB
Makefile
################################################################################
|
|
#
|
|
# jquery-mobile
|
|
#
|
|
################################################################################
|
|
|
|
JQUERY_MOBILE_VERSION = 1.4.3
|
|
JQUERY_MOBILE_SITE = http://jquerymobile.com/resources/download
|
|
JQUERY_MOBILE_SOURCE = jquery.mobile-$(JQUERY_MOBILE_VERSION).zip
|
|
JQUERY_MOBILE_LICENSE = MIT
|
|
|
|
define JQUERY_MOBILE_EXTRACT_CMDS
|
|
$(UNZIP) -d $(@D) $(JQUERY_MOBILE_DL_DIR)/$(JQUERY_MOBILE_SOURCE)
|
|
endef
|
|
|
|
JQUERY_MOBILE_INSTALLED_FILES = \
|
|
jquery.mobile.structure-$(JQUERY_MOBILE_VERSION).min.css \
|
|
jquery.mobile.theme-$(JQUERY_MOBILE_VERSION).min.css \
|
|
jquery.mobile-$(JQUERY_MOBILE_VERSION).min.css \
|
|
jquery.mobile-$(JQUERY_MOBILE_VERSION).min.map \
|
|
jquery.mobile-$(JQUERY_MOBILE_VERSION).min.js
|
|
|
|
ifeq ($(BR2_PACKAGE_JQUERY_MOBILE_FULL),y)
|
|
JQUERY_MOBILE_INSTALLED_FILES += \
|
|
jquery.mobile.structure-$(JQUERY_MOBILE_VERSION).css \
|
|
jquery.mobile.theme-$(JQUERY_MOBILE_VERSION).css \
|
|
jquery.mobile-$(JQUERY_MOBILE_VERSION).css \
|
|
jquery.mobile-$(JQUERY_MOBILE_VERSION).js
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_JQUERY_MOBILE_DEMOS),y)
|
|
define JQUERY_MOBILE_INSTALL_DEMOS
|
|
mkdir -p $(TARGET_DIR)/var/www/demos
|
|
cp -r $(@D)/demos/* $(TARGET_DIR)/var/www/demos
|
|
endef
|
|
endif
|
|
|
|
define JQUERY_MOBILE_INSTALL_TARGET_CMDS
|
|
for f in $(JQUERY_MOBILE_INSTALLED_FILES) ; do \
|
|
$(INSTALL) -m 0644 -D $(@D)/$$f $(TARGET_DIR)/var/www/$$f || break ; \
|
|
done
|
|
mkdir -p $(TARGET_DIR)/var/www/images
|
|
cp -r $(@D)/images/* $(TARGET_DIR)/var/www/images
|
|
$(JQUERY_MOBILE_INSTALL_DEMOS)
|
|
endef
|
|
|
|
$(eval $(generic-package))
|