pkgsrc/net/ncgopher/Makefile
2021-12-08 16:01:42 +00:00

34 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.7 2021/12/08 16:06:04 adam Exp $
DISTNAME= ncgopher-0.3.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"