7c5af403e5
* Split cargo depends into cargo-depends.mk file. Changelog: Add with_parse_extra_bindings to builder. (#645) Support NonZero and fix incorrect simplification of Option into ptr. (#647) Deal with name conflicts correctly in declaration type resolution. (#651) Support pointers to ZSTs. (#656)
21 lines
494 B
Makefile
21 lines
494 B
Makefile
# $NetBSD: Makefile,v 1.25 2021/02/06 05:21:49 ryoon Exp $
|
|
|
|
DISTNAME= cbindgen-0.17.0
|
|
CATEGORIES= devel
|
|
EXTRACT_SUFX= .crate
|
|
|
|
MAINTAINER= ryoon@NetBSD.org
|
|
HOMEPAGE= https://github.com/eqrion/cbindgen/
|
|
COMMENT= Generating C bindings from Rust code
|
|
LICENSE= mpl-2.0
|
|
|
|
.include "cargo-depends.mk"
|
|
|
|
INSTALLATION_DIRS= bin
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/target/release/cbindgen ${DESTDIR}${PREFIX}/bin
|
|
|
|
RUST_RUNTIME= yes
|
|
.include "../../lang/rust/cargo.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|