freebsd-ports/devel/quickcheck++/Makefile
TAKATSU Tomonari 9036df6b54 - Add a new port: devel/quickcheck++
QuickCheck++ is a tool for testing C++ programs automatically,
  inspired by QuickCheck, a similar library for Haskell programs.

  In QuickCheck++, the application programmer provides a specification
  of parts of its code in the form of properties which this code must
  satisfy. Then, the QuickCheck++ utilities can check that these
  properties holds in a large number of randomly generated test cases.

  Specifications, i.e. properties, are written in C++ by deriving
  from the quickcheck::Property class. This class contains members
  not only to express the specification but also to observe the
  distribution of test data and to write custom test data generators.

  The framework also allows the specification of fixed test data, as
  can be done with more traditional unit testing frameworks.

  WWW:	http://software.legiasoft.com/quickcheck/
2012-01-29 14:24:10 +00:00

58 lines
1.3 KiB
Makefile

# New ports collection makefile for: quickcheck++
# Date created: 2012-01-29
# Whom: TAKATSU Tomonari <tota@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= quickcheck++
PORTVERSION= 0.0.1
CATEGORIES= devel
MASTER_SITES= http://software.legiasoft.com/archives/ \
LOCAL
MASTER_SITE_SUBDIR= tota/${PORTNAME}
DISTNAME= quickcheck_${PORTVERSION}
MAINTAINER= tota@FreeBSD.org
COMMENT= A tool for testing C++ programs automatically, inspired by QuickCheck
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE
USE_BZIP2= yes
NO_BUILD= yes
PORTDOCS= COPYRIGHT README
PORTEXAMPLES= examples.cc
OPTIONS= DOXYGEN "Build documentation with doxygen" off
.include <bsd.port.options.mk>
.if !defined(NOPORTDOCS) && defined(WITH_DOXYGEN)
BUILD_DEPENDS+= doxygen:${PORTSDIR}/devel/doxygen
PORTDOCS+= html
pre-install:
@cd ${WRKSRC} && ${LOCALBASE}/bin/doxygen doxygen.cfg
.endif
do-install:
@${MKDIR} ${PREFIX}/include/quickcheck
@${INSTALL_DATA} ${WRKSRC}/quickcheck/* ${PREFIX}/include/quickcheck
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for f in COPYRIGHT README
@${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.if defined(WITH_DOXYGEN)
@cd ${WRKSRC}/doc && ${COPYTREE_SHARE} html ${DOCSDIR}
.endif
.endif
.if !defined(NOPORTEXAMPLES)
@${MKDIR} ${EXAMPLESDIR}
@${INSTALL_DATA} ${WRKSRC}/${PORTEXAMPLES} ${EXAMPLESDIR}
.endif
.include <bsd.port.mk>