From 2c867ff5f7b592f52d9f1a18292b6e5b2f4c1c99 Mon Sep 17 00:00:00 2001 From: Marcin Deranek Date: Sat, 10 Jun 2017 21:36:52 +0200 Subject: Added openshot with extra libraries --- .../files/libopenshot-0.1.6-fix-tests.patch | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 media-libs/libopenshot/files/libopenshot-0.1.6-fix-tests.patch (limited to 'media-libs/libopenshot/files/libopenshot-0.1.6-fix-tests.patch') diff --git a/media-libs/libopenshot/files/libopenshot-0.1.6-fix-tests.patch b/media-libs/libopenshot/files/libopenshot-0.1.6-fix-tests.patch new file mode 100644 index 0000000..8ed3102 --- /dev/null +++ b/media-libs/libopenshot/files/libopenshot-0.1.6-fix-tests.patch @@ -0,0 +1,26 @@ +diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt +index 29fbe45..ff67cb5 100644 +--- a/tests/CMakeLists.txt ++++ b/tests/CMakeLists.txt +@@ -24,16 +24,19 @@ + # along with OpenShot Library. If not, see . + ################################################################################ + ++SET(TEST_MEDIA_PATH "${openshot_SOURCE_DIR}/src/examples/") + + ################ WINDOWS ################## + # Set some compiler options for Windows + # required for libopenshot-audio headers + IF (WIN32) +- STRING(REPLACE "/" "\\\\" TEST_MEDIA_PATH "${openshot_SOURCE_DIR}/src/examples/") +- add_definitions( -DIGNORE_JUCE_HYPOT=1 -DTEST_MEDIA_PATH="${TEST_MEDIA_PATH}" ) ++ STRING(REPLACE "/" "\\\\" TEST_MEDIA_PATH TEST_MEDIA_PATH) ++ add_definitions( -DIGNORE_JUCE_HYPOT=1 ) + SET(CMAKE_CXX_FLAGS " ${CMAKE_CXX_FLAGS} -include cmath -std=c++0x") + ENDIF(WIN32) + ++add_definitions( -DTEST_MEDIA_PATH="${TEST_MEDIA_PATH}" ) ++ + ################### UNITTEST++ ##################### + # Find UnitTest++ libraries (used for unit testing) + FIND_PACKAGE(UnitTest++ REQUIRED) -- cgit v1.2.3