Made building docs an option; now tex and friends are not required for buildlink.

This commit is contained in:
adam 2012-05-12 05:33:11 +00:00
parent d84d64ba49
commit bd47ee0d57
3 changed files with 1450 additions and 1434 deletions

View file

@ -1,8 +1,7 @@
# $NetBSD: Makefile,v 1.20 2011/06/28 09:28:24 wiz Exp $
#
# $NetBSD: Makefile,v 1.21 2012/05/12 05:33:11 adam Exp $
DISTNAME= cppunit-1.12.1
PKGREVISION= 1
PKGREVISION= 2
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=cppunit/}
@ -11,14 +10,12 @@ HOMEPAGE= http://cppunit.sourceforge.net/
COMMENT= CppUnit is a C++ unit testing framework
LICENSE= gnu-lgpl-v2.1
BUILD_DEPENDS+= doxygen>=1.6.3:../../devel/doxygen
PKG_DESTDIR_SUPPORT= user-destdir
USE_LIBTOOL= yes
USE_LANGUAGES= c c++
USE_TOOLS+= gmake
GNU_CONFIGURE= yes
USE_LANGUAGES= c c++
USE_LIBTOOL= yes
USE_TOOLS+= gmake
GNU_CONFIGURE= yes
PKGCONFIG_OVERRIDE= cppunit.pc.in
@ -28,4 +25,6 @@ SUBST_FILES.rpath= cppunit-config.in
SUBST_STAGE.rpath= pre-configure
SUBST_MESSAGE.rpath= Adding rpath to cppunit-config.
.include "options.mk"
.include "../../mk/bsd.pkg.mk"

File diff suppressed because it is too large Load diff

17
devel/cppunit/options.mk Normal file
View file

@ -0,0 +1,17 @@
# $NetBSD: options.mk,v 1.1 2012/05/12 05:33:11 adam Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.cppunit
PKG_SUPPORTED_OPTIONS= doc
PKG_SUGGESTED_OPTIONS= # empty
.include "../../mk/bsd.options.mk"
PLIST_VARS+= doc
.if !empty(PKG_OPTIONS:Mdoc)
BUILD_DEPENDS+= doxygen>=1.6.3:../../devel/doxygen
CONFIGURE_ARGS+= --enable-doxygen
PLIST.doc= yes
.else
CONFIGURE_ARGS+= --disable-doxygen
.endif