* [Buildroot] [PATCH 1/1 v5] jquery-mobile : new package
@ 2014-04-15 11:11 Sagaert Johan
2014-04-15 21:03 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Sagaert Johan @ 2014-04-15 11:11 UTC (permalink / raw)
To: buildroot
Since version 1.4 jquery-mobile includes the core-jquery.
No need for extra dependencies.
Signed-off-by: Sagaert Johan <sagaert.johan@skynet.be>
---
(to avoid confusion with previous versions of this patch in 2013, i number this v5)
v5: use the original index.html in the demos directory
package/Config.in | 1 +
package/jquery-mobile/Config.in | 23 +++++++++++++++++
package/jquery-mobile/jquery-mobile.mk | 47 ++++++++++++++++++++++++++++++++++
3 files changed, 71 insertions(+)
create mode 100644 package/jquery-mobile/Config.in
create mode 100644 package/jquery-mobile/jquery-mobile.mk
diff --git a/package/Config.in b/package/Config.in
index 8e6e590..0e214e3 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -645,6 +645,7 @@ source "package/explorercanvas/Config.in"
source "package/flot/Config.in"
source "package/jquery/Config.in"
source "package/jquery-keyboard/Config.in"
+source "package/jquery-mobile/Config.in"
source "package/jquery-sparkline/Config.in"
source "package/jquery-ui/Config.in"
source "package/jquery-ui-themes/Config.in"
diff --git a/package/jquery-mobile/Config.in b/package/jquery-mobile/Config.in
new file mode 100644
index 0000000..231c961
--- /dev/null
+++ b/package/jquery-mobile/Config.in
@@ -0,0 +1,23 @@
+config BR2_PACKAGE_JQUERY_MOBILE
+ bool "jquery-mobile"
+ help
+ jQuery-Mobile is a unified, HTML5-based user interface system
+ for all popular mobile device platforms, built on the rock-solid
+ jQuery and jQuery UI foundation.
+ Its lightweight code is built with progressive enhancement,
+ and has a flexible, easily themeable design.
+
+ http://jquerymobile.com
+
+if BR2_PACKAGE_JQUERY_MOBILE
+config BR2_PACKAGE_JQUERY_MOBILE_FULL
+ bool "jquery-mobile development files"
+ help
+ Installs the development versions.
+
+config BR2_PACKAGE_JQUERY_MOBILE_DEMOS
+ bool "jquery-mobile demo files"
+ help
+ Installs the demo files.
+ The main demo page is http://hostname/demos/index.html
+endif
diff --git a/package/jquery-mobile/jquery-mobile.mk b/package/jquery-mobile/jquery-mobile.mk
new file mode 100644
index 0000000..6d17188
--- /dev/null
+++ b/package/jquery-mobile/jquery-mobile.mk
@@ -0,0 +1,47 @@
+################################################################################
+#
+# jquery-mobile
+#
+################################################################################
+
+JQUERY_MOBILE_VERSION = 1.4.2
+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) $(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))
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH 1/1 v5] jquery-mobile : new package
2014-04-15 11:11 [Buildroot] [PATCH 1/1 v5] jquery-mobile : new package Sagaert Johan
@ 2014-04-15 21:03 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2014-04-15 21:03 UTC (permalink / raw)
To: buildroot
Dear Sagaert Johan,
On Tue, 15 Apr 2014 13:11:09 +0200, Sagaert Johan wrote:
> Since version 1.4 jquery-mobile includes the core-jquery.
> No need for extra dependencies.
> Signed-off-by: Sagaert Johan <sagaert.johan@skynet.be>
> ---
> (to avoid confusion with previous versions of this patch in 2013, i number this v5)
> v5: use the original index.html in the demos directory
> package/Config.in | 1 +
> package/jquery-mobile/Config.in | 23 +++++++++++++++++
> package/jquery-mobile/jquery-mobile.mk | 47 ++++++++++++++++++++++++++++++++++
> 3 files changed, 71 insertions(+)
> create mode 100644 package/jquery-mobile/Config.in
> create mode 100644 package/jquery-mobile/jquery-mobile.mk
Thanks, applied. I just had to remove some trailing spaces in your
Config.in file, and rewrap the help text a little bit.
Thanks,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-04-15 21:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-15 11:11 [Buildroot] [PATCH 1/1 v5] jquery-mobile : new package Sagaert Johan
2014-04-15 21:03 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox