diff options
author | antoine <antoine@FreeBSD.org> | 2015-05-27 00:47:02 +0800 |
---|---|---|
committer | antoine <antoine@FreeBSD.org> | 2015-05-27 00:47:02 +0800 |
commit | c876321e566d337f0d65aec1ba5f13416139fb1e (patch) | |
tree | 7229e877adf880a70b7dabb3af7fa6c66661b721 /graphics | |
parent | 2eed36e21821defba5b99dd6a0eab524d1f0a58a (diff) | |
download | freebsd-ports-gnome-c876321e566d337f0d65aec1ba5f13416139fb1e.tar.gz freebsd-ports-gnome-c876321e566d337f0d65aec1ba5f13416139fb1e.tar.zst freebsd-ports-gnome-c876321e566d337f0d65aec1ba5f13416139fb1e.zip |
Switch PYTHON_REL from a 3 digits number to a 4 digits number to handle
python 2.7.10
Differential Revision: https://reviews.freebsd.org/D2639
Reviewed by: sunpoet, mva
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/opencv/Makefile | 2 | ||||
-rw-r--r-- | graphics/py-opencv/Makefile | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/graphics/opencv/Makefile b/graphics/opencv/Makefile index 995dde35395b..68fda6504e77 100644 --- a/graphics/opencv/Makefile +++ b/graphics/opencv/Makefile @@ -262,7 +262,7 @@ post-install: ${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py \ -d ${PYTHONPREFIX_SITELIBDIR} -f ${PYTHONPREFIX_SITELIBDIR:S|${PREFIX}/||}) ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} -. if defined(PYTHON_REL) && ${PYTHON_REL} >= 300 +. if defined(PYTHON_REL) && ${PYTHON_REL} >= 3000 cd ${WRKSRC}/samples/python && \ ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}/python . else diff --git a/graphics/py-opencv/Makefile b/graphics/py-opencv/Makefile index 54695d090c51..47da9502f25c 100644 --- a/graphics/py-opencv/Makefile +++ b/graphics/py-opencv/Makefile @@ -12,7 +12,7 @@ OCV_PYTHON= yes MASTERDIR= ${.CURDIR:H}/opencv PLIST= ${.CURDIR}/pkg-plist -.if defined(PYTHON_REL) && ${PYTHON_REL} >= 320 +.if defined(PYTHON_REL) && ${PYTHON_REL} >= 3200 PLIST_SUB+= PYTHON3="" \ PYTHON2="@comment " \ PYTHON_SUFFIX="${PYTHON_SUFFIX}" |