Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F147276933
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
4 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/graphics/openshadinglanguage/Makefile b/graphics/openshadinglanguage/Makefile
index b7bcffe0bcdd..d7455f032ad3 100644
--- a/graphics/openshadinglanguage/Makefile
+++ b/graphics/openshadinglanguage/Makefile
@@ -1,86 +1,89 @@
PORTNAME= openshadinglanguage
DISTVERSIONPREFIX= v
DISTVERSION= 1.13.10.0
# PORTREVISION must be set with ?= so as not to stomp over
# py-openimageio's PORTREVISION.
# Also, just to be on the safe side, when resetting,
# best keep PORTREVISION?= 0.
-PORTREVISION?= 3
+PORTREVISION?= 4
CATEGORIES?= graphics devel
+PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
+PATCHFILES= d8c6f9a004c6fe3ae024ee17903c7ca9f9e8f9e7.patch:-p1
+
MAINTAINER= FreeBSD@Shaneware.biz
COMMENT?= Advanced shading language for production GI renderers
WWW= https://github.com/AcademySoftwareFoundation/OpenShadingLanguage
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE.md
BROKEN_riscv64= fails to build: /usr/include/c++/v1/__threading_support:135:3: Unsupported architecture
ONLY_FOR_ARCHS= aarch64 amd64 powerpc64 powerpc64le
ONLY_FOR_ARCHS_REASON= fails static_assert(sizeof(ustringhash) == sizeof(size_t)
LIB_DEPENDS= libboost_thread.so:devel/boost-libs \
libImath.so:math/Imath \
libOpenEXR.so:graphics/openexr \
libOpenImageIO.so:graphics/openimageio \
libpartio.so:graphics/partio \
libpugixml.so:textproc/pugixml
USES= bison cmake compiler:c++17-lang llvm:lib localbase ncurses
USE_GITHUB= yes
GH_ACCOUNT= AcademySoftwareFoundation
GH_PROJECT= OpenShadingLanguage
CMAKE_ARGS+= -DCMAKE_CXX_STANDARD:INTEGER=17 -DCMAKE_INSTALL_DOCDIR:STRING=${DOCSDIR} \
-DLLVM_CONFIG:STRING="${LOCALBASE}/bin/llvm-config${LLVM_VERSION}"
CMAKE_ON= ENABLE_RTTI OSL_BUILD_TESTS USE_LIBCPLUSPLUS USE_LLVM_BITCODE
# DISTVERSION has an extra digit which isn't in the lib name
# for LIBVERS we want the first three digits
PLIST_SUB= SHL2=${PORTVERSION:R:R} SHL3=${PORTVERSION:R}
OPTIONS_DEFINE= OSLTOY
OPTIONS_SUB= yes
OSLTOY_DESC= Interactive shader edit and visualize tool
OSLTOY_USES= qt:6 gl
OSLTOY_USE= GL=gl,opengl QT=base
OSLTOY_CMAKE_BOOL= USE_QT
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e 's,%%DATADIR%%,${DATADIR},' \
-e 's,%%PYCMD%%,${PYTHON_CMD},' \
${WRKSRC}/CMakeLists.txt \
${WRKSRC}/src/shaders/CMakeLists.txt \
${WRKSRC}/src/doc/CMakeLists.txt \
${WRKSRC}/src/liboslexec/CMakeLists.txt
.if ${SLAVE_PORT} == yes
BUILD_DEPENDS+= ${PREFIX}/share/cmake/pybind11/pybind11Config.cmake:devel/pybind11
LIB_DEPENDS+= liboslquery.so:graphics/openshadinglanguage
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}openimageio>0:graphics/py-openimageio@${PY_FLAVOR}
USES+= python
USE_PYTHON= flavors
CMAKE_ARGS+= -DPYTHON_VERSION=${PYTHON_VER}
CMAKE_ON+= USE_PYTHON
PLIST= ${PKGDIR}/pkg-plist-pybind
do-install:
${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}
${INSTALL_LIB} ${BUILD_WRKSRC}/lib/python/site-packages/oslquery.so ${STAGEDIR}${PYTHON_SITELIBDIR}
.else # SLAVE_PORT != yes
# using python:env as this port doesn't need to use python
# a python util script is installed for user consumption
# it is not required for using the port, only to assist developers using the libs
USES+= python:build shebangfix
USE_LDCONFIG= yes
CMAKE_OFF+= USE_PYTHON
BINARY_ALIAS+= python=${PYTHON_CMD}
SHEBANG_FILES+= src/build-scripts/serialize-bc.py
.endif # SLAVE_PORT
.include <bsd.port.mk>
diff --git a/graphics/openshadinglanguage/distinfo b/graphics/openshadinglanguage/distinfo
index 696cad51058a..a6913d4d24a4 100644
--- a/graphics/openshadinglanguage/distinfo
+++ b/graphics/openshadinglanguage/distinfo
@@ -1,3 +1,5 @@
-TIMESTAMP = 1717481007
+TIMESTAMP = 1717345517
SHA256 (AcademySoftwareFoundation-OpenShadingLanguage-v1.13.10.0_GH0.tar.gz) = 302f573d21c700d859fb36497d377656cb51213309d95bebda941bb0993a7f42
SIZE (AcademySoftwareFoundation-OpenShadingLanguage-v1.13.10.0_GH0.tar.gz) = 21776721
+SHA256 (d8c6f9a004c6fe3ae024ee17903c7ca9f9e8f9e7.patch) = 8c1759c856898d4d4d72391591b341125c61e76074316b82e48379107b5dbd9c
+SIZE (d8c6f9a004c6fe3ae024ee17903c7ca9f9e8f9e7.patch) = 768
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Tue, Jun 30, 3:02 PM (1 d, 19 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28986311
Default Alt Text
(4 KB)
Attached To
Mode
R11 FreeBSD ports repository
Attached
Detach File
Event Timeline
Log In to Comment