python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / flannel / flannel.mk
blob18c0af1605f96d3a9610402ea50ed4d4d1c3e330
1 ################################################################################
3 # flannel
5 ################################################################################
7 FLANNEL_VERSION = v0.5.5
8 FLANNEL_SITE = https://github.com/coreos/flannel/archive
9 FLANNEL_SOURCE = $(FLANNEL_VERSION).tar.gz
11 FLANNEL_LICENSE = Apache-2.0
12 FLANNEL_LICENSE_FILES = LICENSE
14 FLANNEL_DEPENDENCIES = host-go
16 FLANNEL_MAKE_ENV = \
17 $(HOST_GO_TARGET_ENV) \
18 GOBIN="$(@D)/bin" \
19 GOPATH="$(@D)/gopath" \
20 CGO_ENABLED=1
22 FLANNEL_GLDFLAGS = \
23 -X github.com/coreos/flannel/version.Version=$(FLANNEL_VERSION) \
25 ifeq ($(BR2_STATIC_LIBS),y)
26 FLANNEL_GLDFLAGS += -extldflags '-static'
27 endif
29 define FLANNEL_CONFIGURE_CMDS
30 # Put sources at prescribed GOPATH location.
31 mkdir -p $(@D)/gopath/src/github.com/coreos
32 ln -s $(@D) $(@D)/gopath/src/github.com/coreos/flannel
33 endef
35 define FLANNEL_BUILD_CMDS
36 cd $(@D) && $(FLANNEL_MAKE_ENV) $(HOST_DIR)/usr/bin/go \
37 build -v -o $(@D)/bin/flanneld -ldflags "$(FLANNEL_GLDFLAGS)" .
38 endef
40 define FLANNEL_INSTALL_TARGET_CMDS
41 # Install flannel to its well known location.
42 $(INSTALL) -D -m 0755 $(@D)/bin/flanneld $(TARGET_DIR)/opt/bin/flanneld
43 $(INSTALL) -D -m 0755 $(@D)/dist/mk-docker-opts.sh $(TARGET_DIR)/opt/bin/mk-docker-opts.sh
44 endef
46 $(eval $(generic-package))