1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-09 06:51:44 +00:00
freebsd-ports/devel/atf/Makefile
Julio Merino cab6c4c66c Enable the TEST option by default in atf-based ports.
Get ports that use the atf libraries to install their tests by default.
This is to showcase the potential of getting the tests installed on a
live system and will also simplify the process of running them periodically
out of /usr/local/tests/.

Packages confirmed to build with this option enabled.

Approved by:	bapt (ports)
2014-05-26 02:57:18 +00:00

41 lines
801 B
Makefile

# $FreeBSD$
PORTNAME= atf
PORTVERSION= 0.20
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= https://github.com/jmmv/${PORTNAME}/releases/download/${PORTNAME}-${PORTVERSION}/ \
LOCAL/jmmv
MAINTAINER= jmmv@FreeBSD.org
COMMENT= C, C++ and shell libraries to write ATF-compliant test programs
LICENSE= BSD3CLAUSE
GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
USE_LDCONFIG= yes
USES= libtool
OPTIONS_DEFINE= DOCS TEST
OPTIONS_DEFAULT=TEST
.include <bsd.port.options.mk>
MAKE_FLAGS+= atf_pkgconfigdir=${PREFIX}/libdata/pkgconfig
.if empty(PORT_OPTIONS:MDOCS)
MAKE_FLAGS+= doc_DATA=
.endif
.if empty(PORT_OPTIONS:MTEST)
PLIST_SUB+= TEST="@comment "
.else
PLIST_SUB+= TEST=
.endif
post-install:
.if empty(PORT_OPTIONS:MTEST)
@${RM} -rf ${STAGEDIR}${PREFIX}/tests
.endif
.include <bsd.port.mk>