freebsd-ports/sysutils/sockaddr/Makefile
Dmitri Goutnik fc95b3f0cf Go ports: cleanup, finish transition to USES=go started with r505321 (cat. sysutils-x11)
- Remove custom build/install targets left in place after r505321
- Switch to the new GO_TARGET tuple syntax introduced in r512001

Reviewed by:	tobik
Approved by:	araujo (mentor), portmgr (adamw)
Differential Revision:	https://reviews.freebsd.org/D21744
2019-09-29 22:34:31 +00:00

30 lines
586 B
Makefile

# $FreeBSD$
PORTNAME= sockaddr
DISTVERSION= g20180320
CATEGORIES= sysutils
MAINTAINER= seanc@FreeBSD.org
COMMENT= Command line utility for querying IP information
LICENSE= MPL20
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= go
USE_GITHUB= yes
GH_SUBDIR= src/github.com/hashicorp/go-sockaddr
GH_ACCOUNT= hashicorp
GH_PROJECT= go-sockaddr
GH_TAGNAME= 7165ee1
GO_BUILDFLAGS= -ldflags "-X main.version=${DISTVERSIONPREFIX}${PORTVERSION} -w -s"
GO_TARGET= ./cmd/${PORTNAME}
PLIST_FILES= bin/sockaddr
post-patch:
@${LN} -s ${WRKSRC}/cmd/${PORTNAME}/vendor ${WRKSRC}
.include <bsd.port.mk>