You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
1.7 KiB

  1. #
  2. # Copyright (C) 2018 Jeffery To
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=golang-golang-x-net
  9. PKG_RELEASE:=1
  10. PKG_SOURCE_PROTO:=git
  11. PKG_SOURCE_URL:=https://github.com/golang/net.git
  12. PKG_SOURCE_VERSION:=afe8f62b1d6bbd81f31868121a50b06d8188e1f9
  13. PKG_SOURCE_DATE:=20180620
  14. PKG_MIRROR_HASH:=9a8bb3bf21ea60121d7e87f1bd1af9effbdcd908f758be99457653172d13eb1e
  15. PKG_LICENSE:=BSD-3-Clause
  16. PKG_LICENSE_FILES:=LICENSE
  17. PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
  18. PKG_BUILD_DEPENDS:=golang/host
  19. PKG_BUILD_PARALLEL:=1
  20. GO_PKG:=golang.org/x/net
  21. # exclude http2/h2i to break circular dependency with golang-golang-x-crypto-dev
  22. # since there are no other binaries, can skip compilation
  23. GO_PKG_SOURCE_ONLY:=1
  24. include $(INCLUDE_DIR)/package.mk
  25. include ../golang-package.mk
  26. define Package/golang-golang-x-net-dev
  27. $(call GoPackage/GoSubMenu)
  28. TITLE:=Go supplementary network libraries
  29. URL:=https://godoc.org/golang.org/x/net
  30. DEPENDS:=$(GO_ARCH_DEPENDS) +golang-golang-x-text-dev
  31. PKGARCH:=all
  32. endef
  33. define Package/golang-golang-x-net-dev/description
  34. Supplementary Go networking libraries.
  35. endef
  36. # http2/testdata/draft-ietf-httpbis-http2.xml is a non-free document
  37. # http2/z_spec_test.go uses http2/testdata/draft-ietf-httpbis-http2.xml
  38. define Package/golang-golang-x-net-dev/install
  39. $(call GoPackage/Package/Install/Src,$(1))
  40. rm -f $(1)$(GO_PKG_PATH)/src/$(GO_PKG)/http2/testdata/draft-ietf-httpbis-http2.xml
  41. rmdir $(1)$(GO_PKG_PATH)/src/$(GO_PKG)/http2/testdata/
  42. rm -f $(1)$(GO_PKG_PATH)/src/$(GO_PKG)/http2/z_spec_test.go
  43. endef
  44. $(eval $(call GoSrcPackage,golang-golang-x-net-dev))
  45. $(eval $(call BuildPackage,golang-golang-x-net-dev))