1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

- Add py-openimageio 1.0.3

Python bindings for OpenImageIO.

WWW: http://www.openimageio.org

PR:		ports/167412
Submitted by:	Shane Ambler <FreeBSD@Shaneware.biz>
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2012-05-01 16:45:36 +00:00
parent 2b977a15c3
commit 3264b2f906
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=295794
5 changed files with 114 additions and 0 deletions

View File

@ -811,6 +811,7 @@
SUBDIR += py-opencv
SUBDIR += py-openexr
SUBDIR += py-opengl
SUBDIR += py-openimageio
SUBDIR += py-paint
SUBDIR += py-png
SUBDIR += py-poppler

View File

@ -0,0 +1,59 @@
# New ports collection makefile for: py-openimageio
# Date created: 28 April 2012
# Whom: Shane Ambler
#
# $FreeBSD$
#
PORTNAME= openimageio
PORTVERSION= 1.0.3
CATEGORIES= graphics multimedia python
MASTER_SITES= https://github.com/OpenImageIO/oiio/tarball/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= Release-${PORTVERSION}
EXTRACT_SUFX= # empty
DIST_SUBDIR= ${PORTNAME}
MAINTAINER= FreeBSD@Shaneware.biz
COMMENT= OpenImageIO python bindings
LICENSE= BSD
LIB_DEPENDS= OpenImageIO.1:${PORTSDIR}/graphics/openimageio \
boost_python:${PORTSDIR}/devel/boost-python-libs
FETCH_ARGS= -pRr
USE_CMAKE= yes
CMAKE_VERBOSE= yes
CMAKE_OUTSOURCE= yes
CMAKE_ARGS= -DBUILDSTATIC:BOOL=OFF \
-DLINKSTATIC:BOOL=OFF \
-DUSE_OPENGL:BOOL=OFF \
-DUSE_PYTHON:BOOL=ON \
-DUSE_QT:BOOL=OFF \
-DUSE_TBB:BOOL=ON
LDFLAGS+= -ltbb
MAKE_JOBS_SAFE= yes
USE_LDCONFIG= yes
USE_PYTHON= 2.6+
WRKSRC= ${WRKDIR}/OpenImageIO-oiio-2388ebf/src
PLIST_FILES= %%PYTHON_SITELIBDIR%%/OpenImageIO.so
.include <bsd.port.pre.mk>
.if ${ARCH} == "i386" || ${OSVERSION} < 803000
USE_GCC= 4.6+
.endif
.if ${OSVERSION} < 800000
IGNORE= requires FreeBSD 8.0 or higher
.endif
post-patch:
@${REINPLACE_CMD} 's|lib/python|lib/${PYTHON_VERSION}|' ${WRKSRC}/CMakeLists.txt
do-install:
${INSTALL_LIB} ${BUILD_WRKSRC}/python/OpenImageIO.so ${PYTHON_SITELIBDIR}/
.include <bsd.port.post.mk>

View File

@ -0,0 +1,2 @@
SHA256 (openimageio/Release-1.0.3) = 44408cf458554c3969a3a4335019373bdf27f40388cfff0b051ccf9ea464a459
SIZE (openimageio/Release-1.0.3) = 4158972

View File

@ -0,0 +1,49 @@
--- CMakeLists.txt.orig 2012-04-29 13:51:22.000000000 +0930
+++ CMakeLists.txt 2012-04-29 13:51:42.000000000 +0930
@@ -179,46 +179,6 @@
endif (MSVC)
-# Tell CMake to process the sub-directories
-add_subdirectory (libOpenImageIO)
-
-add_subdirectory (iconvert)
-add_subdirectory (idiff)
-add_subdirectory (igrep)
-add_subdirectory (iinfo)
-add_subdirectory (iprocess)
-add_subdirectory (maketx)
-add_subdirectory (oiiotool)
-add_subdirectory (testtex)
-add_subdirectory (iv)
-# Add IO plugin directories
-if (NOT EMBEDPLUGINS)
- add_subdirectory (bmp.imageio)
- add_subdirectory (cineon.imageio)
- add_subdirectory (dds.imageio)
- add_subdirectory (dpx.imageio)
- add_subdirectory (field3d.imageio)
- add_subdirectory (fits.imageio)
- add_subdirectory (hdr.imageio)
- add_subdirectory (ico.imageio)
- add_subdirectory (iff.imageio)
- add_subdirectory (jpeg.imageio)
- add_subdirectory (jpeg2000.imageio)
- add_subdirectory (openexr.imageio)
- add_subdirectory (png.imageio)
- add_subdirectory (pnm.imageio)
- add_subdirectory (psd.imageio)
- add_subdirectory (ptex.imageio)
- add_subdirectory (rla.imageio)
- add_subdirectory (sgi.imageio)
- add_subdirectory (socket.imageio)
- add_subdirectory (softimage.imageio)
- add_subdirectory (targa.imageio)
- add_subdirectory (tiff.imageio)
- add_subdirectory (webp.imageio)
- add_subdirectory (zfile.imageio)
-endif ()
-
if (USE_PYTHON AND oiio_boost_PYTHON_FOUND)
add_subdirectory (python)
endif ()

View File

@ -0,0 +1,3 @@
Python bindings for OpenImageIO.
WWW: http://www.openimageio.org