freebsd-ports/graphics/appleseed/Makefile

61 lines
1.6 KiB
Makefile
Raw Normal View History

# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
# $FreeBSD$
PORTNAME= appleseed
DISTVERSION= 1.3.0-beta
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
ONLY_FOR_ARCHS_REASON= not ported to it yet
USES= cmake:outsource
USE_QT4= moc_build qmake_build rcc_build uic_build opengl
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
.for lib in EXR OIIO OSL PNG SEEXPR XERCES ZLIB
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}
OPTIONS_DEFINE= OSL DISNEY
OPTIONS_DEFAULT= OSL DISNEY
OPTIONS_SUB= yes
OSL_DESC= Open Shading Language support
DISNEY_DESC= Disney material support
OSL_CMAKE_ON= -DWITH_OSL:BOOL=ON
OSL_LIB_DEPENDS= liboslexec.so:${PORTSDIR}/graphics/openshadinglanguage
DISNEY_CMAKE_ON= -DWITH_DISNEY_MATERIAL:BOOL=ON
DISNEY_LIB_DEPENDS= libOpenImageIO.so:${PORTSDIR}/graphics/openimageio \
libSeExprEditor.so:${PORTSDIR}/graphics/seexpr
post-patch:
@${RMDIR} ${WRKSRC}/sandbox/docs/api
.include <bsd.port.mk>