diff options
author | Jason E. Hale <jhale@FreeBSD.org> | 2014-09-02 00:36:27 +0000 |
---|---|---|
committer | Jason E. Hale <jhale@FreeBSD.org> | 2014-09-02 00:36:27 +0000 |
commit | 68669fc03d3fa88b970a6f23950ae18192f5366a (patch) | |
tree | f9c95e368a69a5958e29d6c404332b927b979bb0 /graphics/py-opencv | |
parent | 89ca9a777bdc3a3e800b54666e3ef2d2e217a202 (diff) | |
download | ports-68669fc03d3fa88b970a6f23950ae18192f5366a.tar.gz ports-68669fc03d3fa88b970a6f23950ae18192f5366a.zip |
Notes
Diffstat (limited to 'graphics/py-opencv')
-rw-r--r-- | graphics/py-opencv/Makefile | 11 | ||||
-rw-r--r-- | graphics/py-opencv/pkg-plist | 5 |
2 files changed, 15 insertions, 1 deletions
diff --git a/graphics/py-opencv/Makefile b/graphics/py-opencv/Makefile index a8b1562a09b5..0cf27270fe93 100644 --- a/graphics/py-opencv/Makefile +++ b/graphics/py-opencv/Makefile @@ -1,7 +1,7 @@ # Created by: Martin Matuska <mm@FreeBSD.org> # $FreeBSD$ -PORTREVISION= 1 +PORTREVISION= 0 CATEGORIES= graphics python PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -12,4 +12,13 @@ OCV_PYTHON= yes MASTERDIR= ${.CURDIR:H}/opencv PLIST= ${.CURDIR}/pkg-plist +.if defined(PYTHON_REL) && ${PYTHON_REL} >= 320 +PLIST_SUB+= PYTHON3="" \ + PYTHON2="@comment " \ + PYTHON_SUFFIX="${PYTHON_SUFFIX}" +.else +PLIST_SUB+= PYTHON3="@comment " \ + PYTHON2="" +.endif + .include "${MASTERDIR}/Makefile" diff --git a/graphics/py-opencv/pkg-plist b/graphics/py-opencv/pkg-plist index 43896397c33d..e59c20d3c2a0 100644 --- a/graphics/py-opencv/pkg-plist +++ b/graphics/py-opencv/pkg-plist @@ -1,2 +1,7 @@ %%PYTHON_SITELIBDIR%%/cv.py +%%PYTHON2%%%%PYTHON_SITELIBDIR%%/cv.pyc +%%PYTHON2%%%%PYTHON_SITELIBDIR%%/cv.pyo +%%PYTHON3%%%%PYTHON_SITELIBDIR%%/__pycache__/cv.cpython-%%PYTHON_SUFFIX%%.pyc +%%PYTHON3%%%%PYTHON_SITELIBDIR%%/__pycache__/cv.cpython-%%PYTHON_SUFFIX%%.pyo %%PYTHON_SITELIBDIR%%/cv2.so +%%PYTHON3%%@dirrmtry %%PYTHON_SITELIBDIR%%/__pycache__ |