1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-29 10:18:30 +00:00
freebsd-ports/sysutils/fselect/Makefile
2024-09-10 13:00:34 +02:00

47 lines
1.1 KiB
Makefile

PORTNAME= fselect
DISTVERSION= 0.8.6
PORTREVISION= 3
CATEGORIES= sysutils
MAINTAINER= lcook@FreeBSD.org
COMMENT= Find files with SQL-like queries
WWW= https://github.com/jhspetersson/fselect
LICENSE= APACHE20 MIT
LICENSE_COMB= dual
LICENSE_FILE_APACHE20= ${WRKSRC}/LICENSE-APACHE
LICENSE_FILE_MIT= ${WRKSRC}/LICENSE-MIT
LIB_DEPENDS= libzstd.so:archivers/zstd
USES= cargo
USE_GITHUB= yes
GH_ACCOUNT= jhspetersson
PLIST_FILES= bin/${PORTNAME} \
share/man/man1/${PORTNAME}.1.gz
_DOCS= docs/usage.md README.md
PORTDOCS= ${_DOCS:T}
OPTIONS_DEFINE= DOCS USERS
OPTIONS_DEFAULT= USERS
USERS_DESC= Query with 'user' and 'group' fields
USERS_VARS= CARGO_FEATURES+=users
.include <bsd.port.options.mk>
.if ${ARCH} == powerpc
LIB_DEPENDS+= libatomic.so:lang/gcc${GCC_DEFAULT}
LDFLAGS+= -L/usr/local/lib/gcc${GCC_DEFAULT} -latomic
.endif
post-install:
${INSTALL_MAN} ${WRKSRC}/docs/${PORTNAME}.1 ${STAGEDIR}${PREFIX}/share/man/man1
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${_DOCS} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>