pkgsrc/x11/xcolor/Makefile
2021-10-01 02:57:20 +00:00

34 lines
1 KiB
Makefile

# $NetBSD: Makefile,v 1.5 2021/10/01 02:57:20 gutteridge Exp $
DISTNAME= xcolor-0.5.1
CATEGORIES= x11
MASTER_SITES= ${MASTER_SITE_GITHUB:=Soft/}
MAINTAINER= pin@NetBSD.org
HOMEPAGE= https://github.com/Soft/xcolor/
COMMENT= Lightweight color picker for X11
LICENSE= mit
TOOL_DEPENDS+= ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat
.include "cargo-depends.mk"
USE_TOOLS+= pkg-config
PYTHON_VERSIONS_INCOMPATIBLE= 27
PYTHON_FOR_BUILD_ONLY= tool
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
RUSTFLAGS+= -C link-arg=${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.libX11}/lib
RUSTFLAGS+= -C link-arg=${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.libxcb}/lib
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/target/release/xcolor ${DESTDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/man/xcolor.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/xcolor.1
.include "../../lang/rust/cargo.mk"
.include "../../lang/python/tool.mk"
.include "../../x11/libX11/buildlink3.mk"
.include "../../x11/libxcb/buildlink3.mk"
.include "../../x11/libXcursor/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"