aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2016-10-28 22:32:54 +0800
committerdanfe <danfe@FreeBSD.org>2016-10-28 22:32:54 +0800
commit95d4d934adee9f840c5287e021e9aeebfefd612c (patch)
tree5fe5556cf3cc08bd35b0cdd7566283c3ba39b6c1
parentec7aac93c6624e461ad006d47d61e151c90b6a66 (diff)
downloadfreebsd-ports-gnome-95d4d934adee9f840c5287e021e9aeebfefd612c.tar.gz
freebsd-ports-gnome-95d4d934adee9f840c5287e021e9aeebfefd612c.tar.zst
freebsd-ports-gnome-95d4d934adee9f840c5287e021e9aeebfefd612c.zip
- Fix byte order detection to allow the build on ARM (armv6)
- Enable tests, add LICENSE_FILE, optionize DOCS while here PR: 213847 Submitted by: amdmi3
-rw-r--r--security/rhash/Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/security/rhash/Makefile b/security/rhash/Makefile
index 569d7b36d4c1..071c90ba041b 100644
--- a/security/rhash/Makefile
+++ b/security/rhash/Makefile
@@ -11,6 +11,7 @@ MAINTAINER= danfe@FreeBSD.org
COMMENT= Utility and library for computing and checking of file hashes
LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/COPYING
USE_LDCONFIG= yes
@@ -18,11 +19,22 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-${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:
+ @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/rhash \
+ ${STAGEDIR}${PREFIX}/lib/librhash.so
+
+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>