1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

graphics/py-openimageio: fix build

- Fix build, missed in openimageio update

PR:		ports/181008
Submitted by:	Shane Ambler <FreeBSD Shaneware.biz> (maintainer)
This commit is contained in:
William Grzybowski 2013-08-21 12:54:47 +00:00
parent d529fd0771
commit 359cb43eb8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=325121
3 changed files with 2 additions and 55 deletions

View File

@ -38,12 +38,13 @@ CMAKE_ARGS?= -DBUILDSTATIC:BOOL=OFF \
USE_LDCONFIG= yes
.if defined(OIIO_PYBIND)
EXTRA_PATCHES= ${FILESDIR}/extra-patch-CMakeLists.txt
PLIST= ${PKGDIR}/pkg-plist-pybind
CMAKE_ARGS+= -DUSE_PYTHON:BOOL=ON
CMAKE_ARGS+= -DOIIO_BUILD_TOOLS:BOOL=OFF
.else
PLIST= ${PKGDIR}/pkg-plist
CMAKE_ARGS+= -DUSE_PYTHON:BOOL=OFF
CMAKE_ARGS+= -DOIIO_BUILD_TOOLS:BOOL=ON
.endif
.if !defined(OIIO_PYBIND)

View File

@ -1,49 +0,0 @@
--- ./CMakeLists.txt.orig 2012-11-11 18:38:49.980294043 +1030
+++ ./CMakeLists.txt 2012-11-11 18:39:47.515297055 +1030
@@ -234,46 +234,6 @@
# their add_test commands will not register.
include (CTest)
-
-# Tell CMake to process the sub-directories
-add_subdirectory (libOpenImageIO)
-
-add_subdirectory (iconvert)
-add_subdirectory (idiff)
-add_subdirectory (igrep)
-add_subdirectory (iinfo)
-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

@ -2,7 +2,6 @@
# $FreeBSD$
PORTNAME= openimageio
PORTREVISION= 1
CATEGORIES= graphics multimedia python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@ -15,14 +14,10 @@ LIB_DEPENDS= OpenImageIO:${PORTSDIR}/graphics/openimageio \
MASTERDIR= ${.CURDIR}/../openimageio
BROKEN= Does not patch
USE_PYTHON= 2.6+
OIIO_PYBIND= yes
EXTRA_PATCHES= ${FILESDIR}/extra-patch-CMakeLists.txt
do-install:
${INSTALL_LIB} ${BUILD_WRKSRC}/python/OpenImageIO.so ${PYTHON_SITELIBDIR}/