blob: 10e992b1731f3e4eb3ff5b350e40cf44510c91a8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# $NetBSD: Makefile,v 1.33 2021/07/22 16:16:37 tnn Exp $
DISTNAME= xplr-0.14.4
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_GITHUB:=sayanarijit/}
GITHUB_TAG= v${PKGVERSION_NOREV}
MAINTAINER= pin@NetBSD.org
HOMEPAGE= https://github.com/sayanarijit/xplr/
COMMENT= Hackable, minimal, fast TUI file explorer
LICENSE= mit
.include "cargo-depends.mk"
USE_LANGUAGES+= c
USE_TOOLS+= pkg-config bash:run
INSTALLATION_DIRS= bin share/examples/xplr
RUSTFLAGS+= -C link-arg=${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.LuaJIT2}/lib
RUSTFLAGS+= -C link-arg=-L${BUILDLINK_PREFIX.LuaJIT2}/lib
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/target/release/xplr ${DESTDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/src/init.lua ${DESTDIR}${PREFIX}/share/examples/xplr
.include "../../lang/rust/cargo.mk"
.include "../../lang/LuaJIT2/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|