Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Dec 2019 17:11:42 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r519708 - head/math/py-rpy2
Message-ID:  <201912101711.xBAHBg2k000803@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Tue Dec 10 17:11:41 2019
New Revision: 519708
URL: https://svnweb.freebsd.org/changeset/ports/519708

Log:
  Make devel/openmp an optional dependency
  
  - Bump PORTREVISION for dependency change
  
  It has been merged into base system since FreeBSD 11.3/12.1.

Modified:
  head/math/py-rpy2/Makefile

Modified: head/math/py-rpy2/Makefile
==============================================================================
--- head/math/py-rpy2/Makefile	Tue Dec 10 17:11:36 2019	(r519707)
+++ head/math/py-rpy2/Makefile	Tue Dec 10 17:11:41 2019	(r519708)
@@ -3,6 +3,7 @@
 
 PORTNAME=	rpy2
 DISTVERSION=	3.2.2
+PORTREVISION=	1
 CATEGORIES=	math
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -16,7 +17,6 @@ LICENSE_FILE=	${WRKSRC}/gpl-2.0.txt
 BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}cffi>=1.13.1:devel/py-cffi@${PY_FLAVOR}
 LIB_DEPENDS=	libR.so:math/R \
 		libicui18n.so:devel/icu \
-		libomp.so:devel/openmp \
 		libpcre.so:devel/pcre
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}cffi>=1.13.1:devel/py-cffi@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}Jinja2>0:devel/py-Jinja2@${PY_FLAVOR} \
@@ -37,4 +37,10 @@ PLIST_FILES=	${PYTHON_SITELIBDIR}/__pycache__/_rinterf
 post-install:
 	${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/_rinterface_cffi_api.abi3.so
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${CHOSEN_COMPILER_TYPE} == clang && !exists(/usr/include/omp.h)
+LIB_DEPENDS+=	libomp.so:devel/openmp
+.endif
+
+.include <bsd.port.post.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201912101711.xBAHBg2k000803>