janus-gateway: make echo test plugin optional
[buildroot-gz.git] / package / angularjs / angularjs.mk
blob08a4b60845aa6827175199c55ffd286f0d9a2c81
1 ################################################################################
3 # angularjs
5 ################################################################################
7 ANGULARJS_VERSION = 1.4.3
8 ANGULARJS_SOURCE = angular-$(ANGULARJS_VERSION).zip
9 ANGULARJS_SITE = https://code.angularjs.org/$(ANGULARJS_VERSION)
10 ANGULARJS_LICENSE = MIT
11 # There's no separate license file in the archive, so use angular.js instead.
12 ANGULARJS_LICENSE_FILES = angular.js
14 define ANGULARJS_EXTRACT_CMDS
15 unzip $(DL_DIR)/$(ANGULARJS_SOURCE) -d $(@D)
16 mv $(@D)/angular-$(ANGULARJS_VERSION)/* $(@D)
17 rmdir $(@D)/angular-$(ANGULARJS_VERSION)
18 endef
20 # install .min.js as .js
21 define ANGULARJS_INSTALL_TARGET_CMDS
22 $(foreach f,$(notdir $(wildcard $(@D)/*.min.js)),
23 $(INSTALL) -m 0644 -D $(@D)/$(f) \
24 $(TARGET_DIR)/var/www/$(f:.min.js=.js)$(sep))
25 endef
27 $(eval $(generic-package))