blob: 761b02624459e516dd03982671caa3e52aa6b2a4 (
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
32
33
34
35
36
|
# $NetBSD: Makefile,v 1.11 2022/11/23 16:20:53 adam Exp $
DISTNAME= ncgopher-0.5.0
PKGREVISION= 1
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_GITHUB:=jansc/}
GITHUB_TAG= v${PKGVERSION_NOREV}
MAINTAINER= pin@NetBSD.org
HOMEPAGE= https://github.com/jansc/ncgopher/
COMMENT= Gopher and gemini client for the modern internet
LICENSE= 2-clause-bsd
.include "cargo-depends.mk"
USE_TOOLS+= pkg-config
USE_NCURSES= yes
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
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
RUSTFLAGS+= -C link-arg=${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.sqlite3}/lib
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/target/release/ncgopher \
${DESTDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/ncgopher.1 \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
.include "../../lang/rust/cargo.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../devel/ncursesw/buildlink3.mk"
.include "../../databases/sqlite3/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|