Makefile 1015 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. # $OpenBSD: Makefile,v 1.17 2017/05/27 19:57:07 ajacoutot Exp $
  2. # XXX no i386 equivalent to mem_openbsd_amd64.go
  3. ONLY_FOR_ARCHS= amd64
  4. COMMENT= service discovery and configuration tool
  5. GH_TAGNAME= v0.8.1
  6. GH_ACCOUNT= hashicorp
  7. GH_PROJECT= consul
  8. REVISION= 3
  9. CATEGORIES= sysutils net
  10. HOMEPAGE= https://www.consul.io/
  11. MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
  12. # MPLv2.0
  13. PERMIT_PACKAGE_CDROM= Yes
  14. WANTLIB += c pthread
  15. MODULES= lang/go
  16. # go/src/github.com/hashicorp/consul/scripts/build.sh
  17. # go/src/github.com/hashicorp/consul/version/version.go
  18. MODGO_LDFLAGS += -X github.com/hashicorp/consul/version.GitDescribe=${GH_TAGNAME}
  19. MODGO_LDFLAGS += -X github.com/hashicorp/consul/version.Version=${GH_TAGNAME:S/v//}
  20. MODGO_LDFLAGS += -X github.com/hashicorp/consul/version.VersionPrerelease="" # empty
  21. post-install:
  22. ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/consul
  23. ${SUBST_CMD} -c -m 0640 ${FILESDIR}/config.json.in \
  24. ${PREFIX}/share/examples/consul/config.json
  25. .include <bsd.port.mk>