mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-08 06:48:28 +00:00
cf46913bfd
- Drop now-conflicting hunk from the patch and move needed targets to the INSTALL_TARGET instead - (Tests are currently broken, but this is not a regression from 1.3.4 which has the same issues: `test_rhash.sh' invokes grep(1) and sed(1) assuming they are GNU versions, which should not be hard to patch, but most importantly, rhash(1) sporadically crashes with ``Illegal instruction (core dumped)'' error which requires more investigation) - TIMESTAMP (rhash-1.3.5-src.tar.gz) = 1502675104 Found out via: repology.org [*]
42 lines
1016 B
Makefile
42 lines
1016 B
Makefile
# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= rhash
|
|
PORTVERSION= 1.3.5
|
|
CATEGORIES= security
|
|
MASTER_SITES= SF
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
|
|
|
|
MAINTAINER= danfe@FreeBSD.org
|
|
COMMENT= Utility and library for computing and checking of file hashes
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
USE_LDCONFIG= yes
|
|
MAKE_ARGS= INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
|
|
INSTALL_SHARED="${INSTALL_PROGRAM}" \
|
|
MANDIR="${PREFIX}/man"
|
|
ALL_TARGET= build-shared
|
|
INSTALL_TARGET= install-shared install-lib-static install-lib-shared
|
|
|
|
WRKSRC= ${WRKDIR}/RHash-${PORTVERSION}
|
|
|
|
PORTDOCS= ChangeLog README
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's,/etc/,${PREFIX}&,' ${WRKSRC}/parse_cmdline.c
|
|
@${REINPLACE_CMD} -e '/BYTE_ORDER/s,__,_,g' \
|
|
${WRKSRC}/librhash/byte_order.h
|
|
|
|
post-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
|
|
|
|
do-test:
|
|
cd ${WRKSRC}/tests && ${SH} test_rhash.sh --full
|
|
|
|
.include <bsd.port.mk>
|