summaryrefslogtreecommitdiff
path: root/multimedia/ccextractor/files/patch-src_CMakeLists.txt
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2017-11-24 19:08:18 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2017-11-24 19:08:18 +0000
commit3dd7db1bd27908307f9174c61af110cd1bd3ca1e (patch)
tree132583c49752fcd2f1a042762349d03cc76e1a4c /multimedia/ccextractor/files/patch-src_CMakeLists.txt
parentNew port: devel/blitz: Blitz++ Multi-Dimensional Array Library for C++ (diff)
New port: multimedia/ccextractor: Closed caption extractor for MPEG and H264 files
PR: 223582 Submitted by: oz@nixil.net Approved by: tcberner (mentor) Differential Revision: https://reviews.freebsd.org/D13217
Diffstat (limited to 'multimedia/ccextractor/files/patch-src_CMakeLists.txt')
-rw-r--r--multimedia/ccextractor/files/patch-src_CMakeLists.txt28
1 files changed, 28 insertions, 0 deletions
diff --git a/multimedia/ccextractor/files/patch-src_CMakeLists.txt b/multimedia/ccextractor/files/patch-src_CMakeLists.txt
new file mode 100644
index 000000000000..23f13fe850f2
--- /dev/null
+++ b/multimedia/ccextractor/files/patch-src_CMakeLists.txt
@@ -0,0 +1,28 @@
+--- src/CMakeLists.txt.orig 2017-01-23 20:33:53 UTC
++++ src/CMakeLists.txt
+@@ -29,19 +29,19 @@ aux_source_directory ("${PROJECT_SOURCE_
+ aux_source_directory ("${PROJECT_SOURCE_DIR}/lib_hash" SOURCEFILE)
+
+ # Adding some platform specific library path
+-link_directories (/opt/local/lib)
+-link_directories (/usr/local/lib)
++#link_directories (/opt/local/lib)
++#link_directories (/usr/local/lib)
+
+-set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -Wall -g -std=gnu99 -Wno-write-strings -D_FILE_OFFSET_BITS=64")
++set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -std=gnu99 -Wno-write-strings -D_FILE_OFFSET_BITS=64")
+ add_subdirectory (lib_ccx)
+
+ aux_source_directory (${PROJECT_SOURCE_DIR} SOURCEFILE)
+ set (EXTRA_LIBS ${EXTRA_LIBS} ccx)
+ set (EXTRA_LIBS ${EXTRA_LIBS} m)
+
+-if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
+-set (EXTRA_LIBS ${EXTRA_LIBS} iconv)
+-endif (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
++if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin|FreeBSD")
++#set (EXTRA_LIBS ${EXTRA_LIBS} iconv)
++endif (${CMAKE_SYSTEM_NAME} MATCHES "Darwin|FreeBSD")
+
+
+ find_package (PkgConfig)