blob: 6937869180dedf4b10d4c14ed99ff7878d04807f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
--- ccextractor/src/CMakeLists.txt.orig 2017-07-25 12:22:29.294144514 -0600
+++ ccextractor/src/CMakeLists.txt 2017-07-25 12:23:33.979149436 -0600
@@ -25,14 +25,13 @@
include_directories ("${PROJECT_SOURCE_DIR}/protobuf-c/")
include_directories ("${PROJECT_SOURCE_DIR}/zvbi")
aux_source_directory ("${PROJECT_SOURCE_DIR}/zvbi" SOURCEFILE)
-aux_source_directory ("${PROJECT_SOURCE_DIR}/zlib" SOURCEFILE)
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)
-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} -std=gnu99 -D_FILE_OFFSET_BITS=64")
add_subdirectory (lib_ccx)
aux_source_directory (${PROJECT_SOURCE_DIR} SOURCEFILE)
@@ -43,24 +42,8 @@
set (EXTRA_LIBS ${EXTRA_LIBS} iconv)
endif (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
-
-find_package (PkgConfig)
-if(PKG_CONFIG_FOUND)
- pkg_check_modules(PNG libpng )
- if(PNG_FOUND)
- set (EXTRA_LIBS ${EXTRA_LIBS} png)
- else (PNG_FOUND)
- include_directories ("${PROJECT_SOURCE_DIR}/libpng/")
- include_directories ("${PROJEXT_SOURCE_DIR}/zlib/")
- aux_source_directory ("${PROJECT_SOURCE_DIR}/libpng/" SOURCEFILE)
- aux_source_directory ("${PROJECT_SOURCE_DIR}/zlib/" SOURCEFILE)
- endif(PNG_FOUND)
-else(PKG_CONFIG_FOUND)
- include_directories ("${PROJECT_SOURCE_DIR}/libpng/")
- include_directories ("${PROJEXT_SOURCE_DIR}/zlib/")
- aux_source_directory ("${PROJECT_SOURCE_DIR}/libpng/" SOURCEFILE)
- aux_source_directory ("${PROJECT_SOURCE_DIR}/zlib/" SOURCEFILE)
-endif (PKG_CONFIG_FOUND)
+set (EXTRA_LIBS ${EXTRA_LIBS} png)
+set (EXTRA_LIBS ${EXTRA_LIBS} z)
########################################################
# Build using FFmpeg libraries
--- ccextractor/src/lib_ccx/CMakeLists.txt.orig 2017-07-25 12:32:32.803190443 -0600
+++ ccextractor/src/lib_ccx/CMakeLists.txt 2017-07-25 12:25:40.819159089 -0600
@@ -1,6 +1,6 @@
cmake_policy (SET CMP0037 NEW)
-set (CMAKE_C_FLAGS "-O0 -Wall -g -std=gnu99")
+set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99")
if (WITH_FFMPEG)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DENABLE_FFMPEG")
@@ -37,20 +37,3 @@
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DGPAC_CONFIG_DARWIN")
endif (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
-
-
-file (GLOB HeaderFiles *.h)
-file (WRITE ccx.pc "prefix=${CMAKE_INSTALL_PREFIX}\n"
- "includedir=\${prefix}/include\n"
- "libdir=\${prefix}/lib\n\n"
- "Name: ccx\n"
- "Description: Closed Caption Extraction library\n"
- "Version: 0.75\n"
- "Cflags: -I\${includedir}/\n"
- "Libs: -L\${libdir} -lccx -lpng\n"
- "Libs.private: -lpng\n"
- )
-
-install (TARGETS ccx DESTINATION lib)
-install (FILES ${HeaderFiles} DESTINATION include)
-install (FILES ccx.pc DESTINATION lib/pkgconfig)
|