Execute a "make check" at post-build target, add libcheck as a dependency for it

This commit is contained in:
Renato Botelho 2010-01-27 16:56:35 +00:00
parent b774d8516d
commit c1a3055b5f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=248701

View file

@ -13,6 +13,8 @@ MASTER_SITES= SF
MAINTAINER= garga@FreeBSD.org
COMMENT= Command line virus scanner written entirely in C
BUILD_DEPENDS= ${LOCALBASE}/include/check.h:${PORTSDIR}/devel/libcheck
OPTIONS= ARC "Enable arch archives support" On \
ARJ "Enable arj archives support" On \
LHA "Enable lha archives support" On \
@ -47,6 +49,7 @@ CONFIGURE_ARGS= --libdir=${PREFIX}/lib \
--enable-bigstack \
--enable-readdir_r \
--enable-gethostbyname_r \
--enable-check \
--disable-dependency-tracking
CPPFLAGS+= -I${LOCALBASE}/include \
${PTHREAD_CFLAGS}
@ -172,6 +175,9 @@ post-patch:
@${REINPLACE_CMD} -e 's|0x100000000|0x100000000ULL|g' \
${WRKSRC}/libclamunrar/unrar.c
post-build:
@${MAKE} -C ${WRKSRC} check
pre-su-install:
@${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL