2019-02-21 22:01:30 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.33 2019/02/21 22:01:30 sthen Exp $
|
2016-10-28 02:15:51 +00:00
|
|
|
|
|
|
|
BROKEN-powerpc = undefined reference to __atomic_fetch_add_8
|
2018-01-01 02:31:19 +00:00
|
|
|
BROKEN-i386 = clang segfault compiling imagebufalgo_pixelmath.cpp
|
2012-05-09 12:42:06 +00:00
|
|
|
|
|
|
|
COMMENT = library for reading and writing images
|
|
|
|
|
2014-08-25 16:18:07 +00:00
|
|
|
GH_ACCOUNT = OpenImageIO
|
|
|
|
GH_PROJECT = oiio
|
2017-12-26 19:19:04 +00:00
|
|
|
V = 1.8.6
|
2014-08-25 16:18:07 +00:00
|
|
|
GH_TAGNAME = Release-$V
|
|
|
|
DISTNAME = openimageio-${V}
|
2019-02-21 22:01:30 +00:00
|
|
|
REVISION = 2
|
2012-05-09 12:42:06 +00:00
|
|
|
|
2017-12-26 19:19:04 +00:00
|
|
|
SHARED_LIBS += OpenImageIO 5.0 # 1.0
|
|
|
|
SHARED_LIBS += OpenImageIO_Util 2.0 # 1.5
|
2012-05-09 12:42:06 +00:00
|
|
|
|
|
|
|
CATEGORIES = graphics devel
|
|
|
|
|
2017-12-26 19:19:04 +00:00
|
|
|
HOMEPAGE = http://www.openimageio.org
|
2012-05-09 12:42:06 +00:00
|
|
|
|
2016-05-07 12:40:56 +00:00
|
|
|
MAINTAINER = Pascal Stumpf <pascal@stumpf.co>
|
2012-05-09 12:42:06 +00:00
|
|
|
|
|
|
|
# BSD
|
|
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
|
2017-12-26 19:19:04 +00:00
|
|
|
WANTLIB += ${COMPILER_LIBCXX} GL GLEW GLU Half Iex IlmImf IlmThread
|
|
|
|
WANTLIB += Imath OpenColorIO Qt5Core Qt5Gui Qt5OpenGL Qt5Widgets
|
|
|
|
WANTLIB += avcodec avformat avutil boost_atomic-mt boost_chrono-mt
|
|
|
|
WANTLIB += boost_date_time-mt boost_filesystem-mt boost_python-mt
|
|
|
|
WANTLIB += boost_system-mt boost_thread-mt bz2 c freetype gif
|
|
|
|
WANTLIB += jpeg m openjpeg png raw_r ${MODPY_WANTLIB} swscale tiff webp
|
|
|
|
WANTLIB += z
|
2012-05-09 12:42:06 +00:00
|
|
|
|
|
|
|
MODULES = devel/cmake \
|
|
|
|
lang/python \
|
2017-12-26 19:19:04 +00:00
|
|
|
x11/qt5 \
|
2016-08-08 14:14:01 +00:00
|
|
|
|
2017-11-16 23:20:37 +00:00
|
|
|
COMPILER = base-clang ports-gcc
|
2015-05-19 15:41:47 +00:00
|
|
|
|
|
|
|
BUILD_DEPENDS = textproc/txt2man
|
|
|
|
|
2012-05-09 12:42:06 +00:00
|
|
|
LIB_DEPENDS = devel/boost \
|
|
|
|
graphics/openjpeg \
|
|
|
|
graphics/tiff \
|
|
|
|
graphics/libwebp \
|
|
|
|
graphics/glew \
|
|
|
|
graphics/ilmbase \
|
2014-03-25 10:37:39 +00:00
|
|
|
graphics/openexr \
|
|
|
|
graphics/giflib \
|
2015-10-04 12:59:15 +00:00
|
|
|
graphics/opencolorio \
|
|
|
|
graphics/ffmpeg \
|
|
|
|
graphics/libraw
|
2012-05-09 12:42:06 +00:00
|
|
|
|
2017-12-26 19:19:04 +00:00
|
|
|
CONFIGURE_ARGS += -DUSE_OPENCV=OFF \
|
|
|
|
-DCMAKE_INSTALL_MANDIR="man/man1"
|
2012-05-09 12:42:06 +00:00
|
|
|
|
2015-05-12 11:58:51 +00:00
|
|
|
CXXFLAGS += -pthread
|
2016-08-15 09:24:45 +00:00
|
|
|
.if ${MACHINE_ARCH} == "i386"
|
|
|
|
CXXFLAGS += -march=i686
|
|
|
|
.endif
|
2013-05-18 22:00:52 +00:00
|
|
|
WRKDIST = ${WRKDIR}/oiio-Release-$V
|
2012-05-09 12:42:06 +00:00
|
|
|
|
2013-05-18 22:00:52 +00:00
|
|
|
post-install:
|
|
|
|
find ${PREFIX} -name '*.orig' -exec rm -f {} \;
|
|
|
|
|
2012-05-09 12:42:06 +00:00
|
|
|
.include <bsd.port.mk>
|