[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / misc / rhash

File: [cvs.NetBSD.org] / pkgsrc / misc / rhash / Makefile (download)

Revision 1.21, Tue Jul 18 06:13:51 2023 UTC (8 months, 3 weeks ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2023Q3-base, pkgsrc-2023Q3
Changes since 1.20: +5 -3 lines

rhash: updated to 1.4.4

RHash v1.4.4

New option --unverified to print unverified files
New option --missing to print missing files
New printf-format directive '%d' to print file directory
Print the algorithms being calculated on -vv
Renamed --maxdepth option to --max-depth
Support leading and trailing spaces in a file names
Support escaping of special characters in file paths
Change the simple file format to fit the sfv format
LibRHash: Remove obsolete rhash_timer functions (API breaking change)
Bugfix: Fix slash usage with wilcards on Windows

# $NetBSD: Makefile,v 1.21 2023/07/18 06:13:51 adam Exp $

DISTNAME=	rhash-1.4.4
CATEGORIES=	misc
MASTER_SITES=	${MASTER_SITE_GITHUB:=rhash/}
GITHUB_PROJECT=	RHash
GITHUB_TAG=	v${PKGVERSION_NOREV}

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://github.com/rhash/RHash
COMMENT=	Calculate/check CRC32, MD5, SHA1, GOST, TTH, BTIH or other hash sums
LICENSE=	mit

WRKSRC=			${WRKDIR}/${DISTNAME:S/rh/RH/}
HAS_CONFIGURE=		yes
USE_GCC_RUNTIME=	yes
USE_TOOLS+=		gmake
CONFIGURE_ARGS+=	--disable-gettext
CONFIGURE_ARGS+=	--disable-symlinks
CONFIGURE_ARGS+=	--enable-lib-shared
CONFIGURE_ARGS+=	--enable-lib-static
CONFIGURE_ARGS+=	--enable-openssl
CONFIGURE_ARGS+=	--extra-cflags=-I${PREFIX}/include\ ${CFLAGS:Q}
CONFIGURE_ARGS+=	--extra-ldflags=-L${PREFIX}/lib\ ${COMPILER_RPATH_FLAG}${PREFIX}/lib\ ${LDFLAGS:Q}
CONFIGURE_ARGS+=	--mandir=${PREFIX}/${PKGMANDIR}
CONFIGURE_ARGS+=	--prefix=${PREFIX}
CONFIGURE_ARGS+=	--sysconfdir=${PKG_SYSCONFDIR}
INSTALL_TARGET=		install install-pkg-config install-lib-so-link
INSTALLATION_DIRS=	share/examples/rhash
TEST_TARGET=		test

PKGCONFIG_OVERRIDE=		dist/librhash.pc
PKGCONFIG_OVERRIDE_STAGE=	post-configure

CONF_FILES+=	${PREFIX}/share/examples/rhash/rhashrc ${PKG_SYSCONFDIR}/rhashrc

post-install:
	${MV} ${DESTDIR}${PKG_SYSCONFDIR}/rhashrc ${DESTDIR}${PREFIX}/share/examples/rhash/rhashrc

.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"