[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / devel / git-lfs

File: [cvs.NetBSD.org] / pkgsrc / devel / git-lfs / Makefile (download)

Revision 1.9, Tue Apr 16 18:41:17 2019 UTC (4 months ago) by bsiegert
Branch: MAIN
Changes since 1.8: +2 -2 lines

Revbump all Go packages after go112 update

# $NetBSD: Makefile,v 1.9 2019/04/16 18:41:17 bsiegert Exp $

DISTNAME=	git-lfs-2.6.1
PKGREVISION=	4
CATEGORIES=	devel
MASTER_SITES=	${MASTER_SITE_GITHUB:=git-lfs/}
GITHUB_TAG=	v${PKGVERSION_NOREV}

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://git-lfs.github.com/
COMMENT=	Git extension for versioning large files
LICENSE=	mit

NO_CONFIGURE=	yes
USE_LANGUAGES=	c
GO_SRCPATH=	github.com/git-lfs/git-lfs
GO_DIST_BASE=	${PKGNAME_NOREV}

INSTALLATION_DIRS=	bin

pre-build:
	cp ${WRKSRC}/lfshttp/certs_openbsd.go ${WRKSRC}/lfshttp/certs_netbsd.go
# generate content for "git-lfs --help"
	ln -sf ${GO} ${BUILDLINK_DIR}/bin/go
	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} GOPATH=${WRKDIR} ${GO} generate github.com/git-lfs/git-lfs/commands
# https://github.com/git-lfs/git-lfs/pull/3377
	rm -rf ${WRKSRC}/t/git-lfs-test-server-api

do-install:
	${INSTALL_PROGRAM} ${WRKDIR}/bin/git-lfs ${DESTDIR}${PREFIX}/bin/git-lfs

.include "../../lang/go/go-package.mk"
.include "../../mk/bsd.pkg.mk"