diff --git a/multimedia/opentimelineio/Makefile b/multimedia/opentimelineio/Makefile new file mode 100644 index 00000000000..1eb101fda3b --- /dev/null +++ b/multimedia/opentimelineio/Makefile @@ -0,0 +1,33 @@ +COMMENT = editorial timeline API and interchange format + +V = 0.17.0 +DISTNAME = opentimelineio-${V} + +DIST_TUPLE += github AcademySoftwareFoundation OpenTimelineIO v${V} . + +SHARED_LIBS += opentime 0.0 # 0.0 +SHARED_LIBS += opentimelineio 0.0 # 0.0 + +CATEGORIES = multimedia + +HOMEPAGE = https://opentimeline.io/ + +# Apache-2.0 +PERMIT_PACKAGE = Yes + +WANTLIB += ${COMPILER_LIBCXX} Imath-3_1 m + +# C++17 +COMPILER = base-clang ports-gcc + +MODULES = devel/cmake + +BUILD_DEPENDS = textproc/rapidjson +LIB_DEPENDS = math/imath + +CONFIGURE_ARGS = -DOTIO_FIND_IMATH=ON \ + -DOTIO_DEPENDENCIES_INSTALL=OFF + +WRKDIST = ${WRKDIR}/OpenTimelineIO-${V} + +.include diff --git a/multimedia/opentimelineio/distinfo b/multimedia/opentimelineio/distinfo new file mode 100644 index 00000000000..ef35b75ee5e --- /dev/null +++ b/multimedia/opentimelineio/distinfo @@ -0,0 +1,2 @@ +SHA256 (AcademySoftwareFoundation-OpenTimelineIO-v0.17.0.tar.gz) = zfgoHGCRoYpBRylbZg4TthCm1YkZp5YIvwPlNZwcLSQ= +SIZE (AcademySoftwareFoundation-OpenTimelineIO-v0.17.0.tar.gz) = 2340862 diff --git a/multimedia/opentimelineio/patches/patch-src_opentime_CMakeLists_txt b/multimedia/opentimelineio/patches/patch-src_opentime_CMakeLists_txt new file mode 100644 index 00000000000..9cafa82e3eb --- /dev/null +++ b/multimedia/opentimelineio/patches/patch-src_opentime_CMakeLists_txt @@ -0,0 +1,14 @@ +Index: src/opentime/CMakeLists.txt +--- src/opentime/CMakeLists.txt.orig ++++ src/opentime/CMakeLists.txt +@@ -22,7 +22,9 @@ set_target_properties(opentime PROPERTIES + DEBUG_POSTFIX "${OTIO_DEBUG_POSTFIX}" + LIBRARY_OUTPUT_NAME "opentime" + POSITION_INDEPENDENT_CODE TRUE +- WINDOWS_EXPORT_ALL_SYMBOLS true) ++ WINDOWS_EXPORT_ALL_SYMBOLS true ++ VERSION ${OTIO_VERSION_MAJOR}.${OTIO_VERSION_MINOR} ++ SOVERSION ${OTIO_VERSION_MAJOR}) + + if(APPLE) + set_target_properties(opentime PROPERTIES diff --git a/multimedia/opentimelineio/patches/patch-src_opentimelineio_CMakeLists_txt b/multimedia/opentimelineio/patches/patch-src_opentimelineio_CMakeLists_txt new file mode 100644 index 00000000000..4ed0e9cd327 --- /dev/null +++ b/multimedia/opentimelineio/patches/patch-src_opentimelineio_CMakeLists_txt @@ -0,0 +1,14 @@ +Index: src/opentimelineio/CMakeLists.txt +--- src/opentimelineio/CMakeLists.txt.orig ++++ src/opentimelineio/CMakeLists.txt +@@ -91,7 +91,9 @@ set_target_properties(opentimelineio PROPERTIES + DEBUG_POSTFIX "${OTIO_DEBUG_POSTFIX}" + LIBRARY_OUTPUT_NAME "opentimelineio" + POSITION_INDEPENDENT_CODE TRUE +- WINDOWS_EXPORT_ALL_SYMBOLS true) ++ WINDOWS_EXPORT_ALL_SYMBOLS true ++ VERSION ${OTIO_VERSION_MAJOR}.${OTIO_VERSION_MINOR} ++ SOVERSION ${OTIO_VERSION_MAJOR}) + + if(APPLE) + set_target_properties(opentimelineio PROPERTIES diff --git a/multimedia/opentimelineio/pkg/DESCR b/multimedia/opentimelineio/pkg/DESCR new file mode 100644 index 00000000000..4e0d972032b --- /dev/null +++ b/multimedia/opentimelineio/pkg/DESCR @@ -0,0 +1,3 @@ +OpenTimelineIO is an interchange format and API for editorial cut information. +OTIO contains information about the order and length of cuts and references to +external media. It is not however, a container format for media. diff --git a/multimedia/opentimelineio/pkg/PLIST b/multimedia/opentimelineio/pkg/PLIST new file mode 100644 index 00000000000..41c8af7de9d --- /dev/null +++ b/multimedia/opentimelineio/pkg/PLIST @@ -0,0 +1,53 @@ +include/opentime/ +include/opentime/errorStatus.h +include/opentime/rationalTime.h +include/opentime/stringPrintf.h +include/opentime/timeRange.h +include/opentime/timeTransform.h +include/opentime/version.h +include/opentimelineio/ +include/opentimelineio/anyDictionary.h +include/opentimelineio/anyVector.h +include/opentimelineio/clip.h +include/opentimelineio/composable.h +include/opentimelineio/composition.h +include/opentimelineio/deserialization.h +include/opentimelineio/editAlgorithm.h +include/opentimelineio/effect.h +include/opentimelineio/errorStatus.h +include/opentimelineio/externalReference.h +include/opentimelineio/freezeFrame.h +include/opentimelineio/gap.h +include/opentimelineio/generatorReference.h +include/opentimelineio/imageSequenceReference.h +include/opentimelineio/item.h +include/opentimelineio/linearTimeWarp.h +include/opentimelineio/marker.h +include/opentimelineio/mediaReference.h +include/opentimelineio/missingReference.h +include/opentimelineio/safely_typed_any.h +include/opentimelineio/serializableCollection.h +include/opentimelineio/serializableObject.h +include/opentimelineio/serializableObjectWithMetadata.h +include/opentimelineio/serialization.h +include/opentimelineio/stack.h +include/opentimelineio/stackAlgorithm.h +include/opentimelineio/timeEffect.h +include/opentimelineio/timeline.h +include/opentimelineio/track.h +include/opentimelineio/trackAlgorithm.h +include/opentimelineio/transition.h +include/opentimelineio/typeRegistry.h +include/opentimelineio/unknownSchema.h +include/opentimelineio/vectorIndexing.h +include/opentimelineio/version.h +@lib lib/libopentime.so.${LIBopentime_VERSION} +@lib lib/libopentimelineio.so.${LIBopentimelineio_VERSION} +share/opentime/ +share/opentime/OpenTimeConfig.cmake +share/opentime/OpenTimeTargets${MODCMAKE_BUILD_SUFFIX} +share/opentime/OpenTimeTargets.cmake +share/opentimelineio/ +share/opentimelineio/OpenTimelineIOConfig.cmake +share/opentimelineio/OpenTimelineIOTargets${MODCMAKE_BUILD_SUFFIX} +share/opentimelineio/OpenTimelineIOTargets.cmake