aboutsummaryrefslogtreecommitdiff
path: root/multimedia/mjpg-streamer/patches/020-remove-auto-lib-selection.patch
blob: a8bc194c52129c2ad7cb7ff25dd9b8e4f0c26598 (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
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -49,8 +49,7 @@ set (MJPG_STREAMER_PLUGIN_INSTALL_PATH "
 # Global dependencies
 #
 
-find_library(JPEG_LIB jpeg)
-
+#find_library(JPEG_LIB jpeg)
 
 #
 # Input plugins
--- a/plugins/input_uvc/CMakeLists.txt
+++ b/plugins/input_uvc/CMakeLists.txt
@@ -9,27 +9,27 @@ if (PLUGIN_INPUT_UVC)
     add_definitions(-DLINUX -D_GNU_SOURCE)
     
     find_library(V4L2_LIB v4l2)
-    find_library(JPEG_LIB jpeg)
+#    find_library(JPEG_LIB jpeg)
     
-    if (V4L2_LIB)
-        add_definitions(-DUSE_LIBV4L2)
-    endif (V4L2_LIB)
+#    if (V4L2_LIB)
+#        add_definitions(-DUSE_LIBV4L2)
+#    endif (V4L2_LIB)
     
-    if (NOT JPEG_LIB)
-        add_definitions(-DNO_LIBJPEG)
-    endif (NOT JPEG_LIB)
+#    if (NOT JPEG_LIB)
+#        add_definitions(-DNO_LIBJPEG)
+#    endif (NOT JPEG_LIB)
 
     MJPG_STREAMER_PLUGIN_COMPILE(input_uvc dynctrl.c
                                            input_uvc.c
                                            jpeg_utils.c
                                            v4l2uvc.c)
 
-    if (V4L2_LIB)
-        target_link_libraries(input_uvc ${V4L2_LIB})
-    endif (V4L2_LIB)
+#    if (V4L2_LIB)
+#        target_link_libraries(input_uvc ${V4L2_LIB})
+#    endif (V4L2_LIB)
 
-    if (JPEG_LIB)
-        target_link_libraries(input_uvc ${JPEG_LIB})
-    endif (JPEG_LIB)
+#    if (JPEG_LIB)
+#        target_link_libraries(input_uvc ${JPEG_LIB})
+#    endif (JPEG_LIB)
 
 endif()