aa67e11089
either because they themselves are not ready or because a dependency isn't. This is annotated by PYTHON_VERSIONS_INCOMPATIBLE= 33 # not yet ported as of x.y.z or PYTHON_VERSIONS_INCOMPATIBLE= 33 # py-foo, py-bar respectively, please use the same style for other packages, and check during updates. Use versioned_dependencies.mk where applicable. Use REPLACE_PYTHON instead of handcoded alternatives, where applicable. Reorder Makefile sections into standard order, where applicable. Remove PYTHON_VERSIONS_INCLUDE_3X lines since that will be default with the next commit. Whitespace cleanups and other nits corrected, where necessary.
41 lines
1.1 KiB
Makefile
41 lines
1.1 KiB
Makefile
# $NetBSD: Makefile,v 1.8 2014/01/25 10:30:01 wiz Exp $
|
|
|
|
DISTNAME= gtest-1.6.0
|
|
PKGNAME= ${DISTNAME:S/gtest/googletest/}
|
|
PKGREVISION= 1
|
|
CATEGORIES= devel
|
|
MASTER_SITES= http://googletest.googlecode.com/files/
|
|
EXTRACT_SUFX= .zip
|
|
|
|
MAINTAINER= reed@reedmedia.net
|
|
HOMEPAGE= http://code.google.com/p/googletest/
|
|
COMMENT= Google's C++ testing framework
|
|
LICENSE= modified-bsd
|
|
|
|
INSTALLATION_DIRS= bin
|
|
|
|
GNU_CONFIGURE= yes
|
|
USE_LANGUAGES= c++ c
|
|
USE_LIBTOOL= yes
|
|
|
|
SUBST_CLASSES+= rpathfix
|
|
SUBST_FILES.rpathfix= scripts/gtest-config.in
|
|
SUBST_MESSAGE.rpathfix= Adding rpath to gtest-config
|
|
SUBST_SED.rpathfix= -e 's/-L$${libdir}/${COMPILER_RPATH_FLAG}$${libdir} -L$${libdir}/g'
|
|
SUBST_STAGE.rpathfix= pre-configure
|
|
|
|
REPLACE_PYTHON+= scripts/*py
|
|
|
|
PYTHON_VERSIONS_INCOMPATIBLE= 33 # not yet ported as of 1.6.0
|
|
|
|
.include "../../mk/compiler.mk"
|
|
.if !empty(PKGSRC_COMPILER:Mclang)
|
|
CXXFLAGS+= -std=c++11
|
|
.endif
|
|
|
|
post-install:
|
|
${INSTALL_SCRIPT} ${WRKSRC}/scripts/gtest-config ${DESTDIR}${PREFIX}/bin
|
|
|
|
.include "../../lang/python/extension.mk"
|
|
.include "../../lang/python/application.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|