python-werkzeug: bump to version 0.11.15
[buildroot-gz.git] / package / sam-ba / sam-ba.mk
blob7fc65c01a9b33fbef70749c4bcbb746c669b65ee
1 ################################################################################
3 # sam-ba
5 ################################################################################
7 SAM_BA_SITE = http://www.atmel.com/dyn/resources/prod_documents
8 SAM_BA_VERSION = 2.16
9 SAM_BA_SOURCE = sam-ba_$(SAM_BA_VERSION)_linux.zip
10 SAM_BA_LICENSE = SAM-BA license (sam-ba executable), \
11 BSD-2c like, BSD-4c (TCL and applets code)
12 SAM_BA_LICENSE_FILES = doc/license.txt tcl_lib/boards.tcl \
13 applets/sam4c/libraries/libchip_sam4c/include/sam4c/sam4c32e-1.h
15 define HOST_SAM_BA_EXTRACT_CMDS
16 $(UNZIP) -d $(BUILD_DIR) $(DL_DIR)/$(SAM_BA_SOURCE)
17 mv $(BUILD_DIR)/sam-ba_cdc_linux/* $(@D)
18 rmdir $(BUILD_DIR)/sam-ba_cdc_linux/
19 endef
21 # Since it's a prebuilt application and it does not conform to the
22 # usual Unix hierarchy, we install it in $(HOST_DIR)/opt/sam-ba and
23 # then create a symbolic link from $(HOST_DIR)/usr/bin to the
24 # application binary, for easier usage.
26 define HOST_SAM_BA_INSTALL_CMDS
27 mkdir -p $(HOST_DIR)/opt/sam-ba/
28 cp -a $(@D)/* $(HOST_DIR)/opt/sam-ba/
29 ln -sf ../../opt/sam-ba/sam-ba $(HOST_DIR)/usr/bin/sam-ba
30 endef
32 $(eval $(host-generic-package))