blob: dfea14dfe9e0806b42feea3ab055ab8cb77216ca (
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
30
31
|
# $NetBSD: Makefile,v 1.7 2022/03/29 10:37:07 pin Exp $
DISTNAME= rterm-0.0.6
CATEGORIES= x11
MASTER_SITES= ${MASTER_SITE_GITHUB:=mechpen/}
GITHUB_TAG= v${PKGVERSION_NOREV}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/mechpen/rterm/
COMMENT= Port of suckless terminal to rust
LICENSE= unlicense
.include "cargo-depends.mk"
USE_TOOLS+= pkg-config
INSTALLATION_DIRS= bin
RUSTFLAGS+= -C link-arg=${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.libX11}/lib
RUSTFLAGS+= -C link-arg=-L${BUILDLINK_PREFIX.libX11}/lib
RUSTFLAGS+= -C link-arg=${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.libXft}/lib
RUSTFLAGS+= -C link-arg=-L${BUILDLINK_PREFIX.libXft}/lib
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/target/release/rterm \
${DESTDIR}${PREFIX}/bin
.include "../../lang/rust/cargo.mk"
.include "../../x11/libX11/buildlink3.mk"
.include "../../x11/libXft/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|