f607fb51a8
1.9.2 needs rust 1.58, and we don't have that in pkgsrc yet ok pin@
33 lines
1,013 B
Makefile
33 lines
1,013 B
Makefile
# $NetBSD: Makefile,v 1.40 2022/01/24 09:00:41 wiz Exp $
|
|
|
|
# 1.9.2 needs rust 1.58
|
|
DISTNAME= broot-1.9.1
|
|
CATEGORIES= sysutils
|
|
MASTER_SITES= ${MASTER_SITE_GITHUB:=Canop/}
|
|
GITHUB_TAG= v${PKGVERSION_NOREV}
|
|
|
|
MAINTAINER= pin@NetBSD.org
|
|
HOMEPAGE= https://dystroy.org/broot/
|
|
COMMENT= New way to see and navigate directory trees
|
|
LICENSE= mit
|
|
|
|
.include "cargo-depends.mk"
|
|
|
|
USE_TOOLS+= pkg-config
|
|
PYTHON_VERSIONS_INCOMPATIBLE= 27
|
|
PYTHON_FOR_BUILD_ONLY= tool
|
|
BUILD_DEPENDS+= ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat
|
|
|
|
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
|
|
|
|
RUSTFLAGS+= -C link-arg=${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.libxcb}/lib
|
|
RUSTFLAGS+= -C link-arg=-L${BUILDLINK_PREFIX.libxcb}/lib
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/target/release/broot ${DESTDIR}${PREFIX}/bin
|
|
${INSTALL_MAN} ${WRKSRC}/man/page ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/broot.1
|
|
|
|
.include "../../lang/rust/cargo.mk"
|
|
.include "../../lang/python/tool.mk"
|
|
.include "../../x11/libxcb/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|