1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00

- Fix NOPORTDOCS support. [1] (using a different approach than suggested

by Philip).

- Support WITHOUT_CHECKS to skip the self-tests.

- Remove two excess blank lines from Makefile, making portlint happier.

The part marked with [1] was

Reported by: pgollucci
PR:          ports/159609
This commit is contained in:
Matthias Andree 2011-08-08 22:24:23 +00:00
parent 0c10f23da9
commit fe7245d280
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=279285

View File

@ -10,7 +10,6 @@ PORTVERSION= 2.05
CATEGORIES= archivers devel
MASTER_SITES= http://www.oberhumer.com/opensource/lzo/download/ \
LOCAL/mandree
DISTNAME= lzo-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX}
MAINTAINER= mandree@FreeBSD.org
@ -23,10 +22,16 @@ GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-shared --docdir=${DOCSDIR}
USE_LDCONFIG= yes
.if defined(NOPORTDOCS)
INSTALL_TARGET= install-exec install-pkgincludeHEADERS
.endif
post-build:
.if !defined(WITHOUT_CHECKS)
@${ECHO_MSG} "===> Running self-tests for ${PKGNAME} (can take a few minutes)"
@#: override MALLOC_OPTIONS, else tests take excessively long
cd ${WRKSRC} && ${SETENV} MALLOC_OPTIONS=jz ${MAKE} check test SHELL="${SH} -x"
.endif
post-install:
.if !defined(NOPORTDOCS)
@ -37,7 +42,6 @@ post-install:
.endfor
${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR}/
.endif
.if !defined(NOPORTEXAMPLES)
${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/examples/[a-z]*.[ch] ${EXAMPLESDIR}/