blob: fb964df4e8a6063b6c70be86afa12ed79325e37c (
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.1 2022/02/10 13:55:43 pin Exp $
DISTNAME= 0.8.3
PKGNAME= asuka-${DISTNAME}
CATEGORIES= net
MASTER_SITES= https://git.sr.ht/~julienxx/asuka/archive/
MAINTAINER= pin@NetBSD.org
HOMEPAGE= https://git.sr.ht/~julienxx/asuka/
COMMENT= Gemini Project client written in rust with ncurses
LICENSE= mit
.include "cargo-depends.mk"
USE_TOOLS+= pkg-config
WRKSRC= ${WRKDIR}/asuka-${DISTNAME}
INSTALLATION_DIRS= bin
MAKE_ENV+= OPENSSL_DIR=${BUILDLINK_PREFIX.openssl:Q}
RUSTFLAGS+= -C link-arg=${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.openssl}/lib
RUSTFLAGS+= -C link-arg=${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.ncursesw}/lib
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/target/release/asuka ${DESTDIR}${PREFIX}/bin
.include "../../lang/rust/cargo.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../devel/ncursesw/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|