2015-08-28 20:19:22 +02:00
|
|
|
# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= appleseed
|
2015-11-21 10:27:04 +01:00
|
|
|
DISTVERSION= 1.3.0-beta
|
2015-08-28 20:19:22 +02:00
|
|
|
CATEGORIES= graphics
|
|
|
|
|
|
|
|
MAINTAINER= danfe@FreeBSD.org
|
|
|
|
COMMENT= Modern, physically-based production renderer
|
|
|
|
|
|
|
|
LICENSE= MIT
|
|
|
|
|
|
|
|
LIB_DEPENDS= libboost_thread.so:${PORTSDIR}/devel/boost-libs \
|
|
|
|
libpng.so:${PORTSDIR}/graphics/png \
|
|
|
|
libIlmImf.so:${PORTSDIR}/graphics/OpenEXR \
|
|
|
|
libxerces-c.so:${PORTSDIR}/textproc/xerces-c3
|
|
|
|
|
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= ${PORTNAME}hq
|
|
|
|
|
|
|
|
ONLY_FOR_ARCHS= i386 amd64
|
2015-11-21 10:27:04 +01:00
|
|
|
ONLY_FOR_ARCHS_REASON= not ported to it yet
|
2015-08-28 20:19:22 +02:00
|
|
|
|
|
|
|
USES= cmake:outsource
|
|
|
|
USE_QT4= moc_build qmake_build rcc_build uic_build opengl
|
|
|
|
|
2015-10-09 19:31:32 +02:00
|
|
|
CMAKE_ARGS= -DUSE_STATIC_BOOST:BOOL=OFF -DUSE_STATIC_OIIO:BOOL=OFF \
|
|
|
|
-DUSE_STATIC_OSL:BOOL=OFF -DWITH_DOXYGEN:BOOL=OFF \
|
|
|
|
-DWITH_HEADERS:BOOL=OFF -DWITH_PYTHON:BOOL=OFF \
|
|
|
|
-DWITH_TESTS:BOOL=OFF
|
2015-08-28 20:19:22 +02:00
|
|
|
|
2015-10-09 19:31:32 +02:00
|
|
|
.for lib in EXR OIIO OSL PNG SEEXPR XERCES ZLIB
|
2015-08-28 20:19:22 +02:00
|
|
|
CMAKE_ARGS+= -DUSE_EXTERNAL_${lib}:BOOL=ON
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
# Not ready for hier(7)-conforming installation yet
|
|
|
|
CMAKE_INSTALL_PREFIX= ${PREFIX}/${PKGBASE}
|
|
|
|
PLIST_SUB= APPHOME=${CMAKE_INSTALL_PREFIX}
|
|
|
|
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
SUB_LIST:= ${PLIST_SUB}
|
|
|
|
|
2015-11-21 10:27:04 +01:00
|
|
|
OPTIONS_DEFINE= OSL DISNEY
|
|
|
|
OPTIONS_DEFAULT= OSL DISNEY
|
2015-10-09 19:31:32 +02:00
|
|
|
OPTIONS_SUB= yes
|
|
|
|
|
|
|
|
OSL_DESC= Open Shading Language support
|
2015-11-21 10:27:04 +01:00
|
|
|
DISNEY_DESC= Disney material support
|
2015-10-09 19:31:32 +02:00
|
|
|
|
|
|
|
OSL_CMAKE_ON= -DWITH_OSL:BOOL=ON
|
|
|
|
OSL_LIB_DEPENDS= liboslexec.so:${PORTSDIR}/graphics/openshadinglanguage
|
|
|
|
|
2015-11-21 10:27:04 +01:00
|
|
|
DISNEY_CMAKE_ON= -DWITH_DISNEY_MATERIAL:BOOL=ON
|
|
|
|
DISNEY_LIB_DEPENDS= libOpenImageIO.so:${PORTSDIR}/graphics/openimageio \
|
|
|
|
libSeExprEditor.so:${PORTSDIR}/graphics/seexpr
|
2015-10-09 19:31:32 +02:00
|
|
|
|
2015-08-28 20:19:22 +02:00
|
|
|
post-patch:
|
|
|
|
@${RMDIR} ${WRKSRC}/sandbox/docs/api
|
|
|
|
|
2015-09-01 17:17:07 +02:00
|
|
|
.include <bsd.port.mk>
|