Commit 4e20e8fe authored by Peter Korsgaard's avatar Peter Korsgaard
Browse files

package: add Javascript menu and jQuery package



A lot of open source Javascript libraries can be interesting to use on
embedded systems, so add a specific Javascript menu and the probably most
well known library of them all, jQuery.

Signed-off-by: default avatarPeter Korsgaard <jacmet@sunsite.dk>
parent 2d7d697f
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -322,6 +322,10 @@ source "package/java/concierge/Config.in"
endmenu
endif

menu "Javascript"
source "package/jquery/Config.in"
endmenu

menu "Networking"
source "package/libcgi/Config.in"
source "package/libcgicc/Config.in"
+8 −0
Original line number Diff line number Diff line
config BR2_PACKAGE_JQUERY
	bool "jQuery"
	help
	  jQuery is a fast and concise JavaScript Library that
	  simplifies HTML document traversing, event handling,
	  animating, and Ajax interactions for rapid web development.

	  http://jquery.com
+17 −0
Original line number Diff line number Diff line
JQUERY_VERSION = 1.7.1
JQUERY_SITE = http://code.jquery.com
JQUERY_SOURCE = jquery-$(JQUERY_VERSION).min.js

define JQUERY_EXTRACT_CMDS
	cp $(DL_DIR)/$(JQUERY_SOURCE) $(@D)
endef

define JQUERY_INSTALL_TARGET_CMDS
	$(INSTALL) -D $(@D)/$(JQUERY_SOURCE) $(TARGET_DIR)/var/www/jquery.js
endef

define JQUERY_UNINSTALL_TARGET_CMDS
	rm -f $(TARGET_DIR)/var/www/jquery.js
endef

$(eval $(call GENTARGETS))