summaryrefslogtreecommitdiffstats
path: root/office/teapot/fix_fltk_build.diff
blob: 3f4e2e3ed483aff49e9fa606be497c616a910011 (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
diff -Naur teapot-2.3.0/CMakeLists.txt teapot-2.3.0.patched/CMakeLists.txt
--- teapot-2.3.0/CMakeLists.txt	2020-11-19 00:18:02.217657446 -0500
+++ teapot-2.3.0.patched/CMakeLists.txt	2020-11-19 00:22:05.201635357 -0500
@@ -40,7 +40,7 @@
 	install(TARGETS teapot DESTINATION bin)
 endif ()
 
-find_package(FLTK NO_MODULE)
+find_package(FLTK)
 if (FLTK_FOUND)
 	include("${FLTK_USE_FILE}")
 
@@ -52,13 +52,13 @@
 		if (ENABLE_STATIC)
 			target_link_libraries(fteapot teapotlib fltk fltk_images ${LIB_PORTABLEXDR})
 		else ()
-			target_link_libraries(fteapot teapotlib fltk_SHARED fltk_images_SHARED ${LIB_PORTABLEXDR})
+			target_link_libraries(fteapot teapotlib fltk fltk_images ${LIB_PORTABLEXDR})
 		endif ()
 	else ()
 		if (ENABLE_STATIC)
 			target_link_libraries(fteapot teapotlib fltk fltk_images ${LIB_PORTABLEXDR})
 		else ()
-			target_link_libraries(fteapot teapotlib fltk_SHARED ${LIB_PORTABLEXDR})
+			target_link_libraries(fteapot teapotlib fltk fltk_images ${LIB_PORTABLEXDR})
 		endif ()
 	endif ()
 	install(TARGETS fteapot DESTINATION bin)
diff -Naur teapot-2.3.0/fteapot.fl teapot-2.3.0.patched/fteapot.fl
--- teapot-2.3.0/fteapot.fl	2020-11-19 00:15:47.506669691 -0500
+++ teapot-2.3.0.patched/fteapot.fl	2020-11-19 00:16:05.569668049 -0500
@@ -11,6 +11,9 @@
 decl {\#include <fcntl.h>} {private global
 }
 
+decl {\#include <unistd.h>} {private global
+}
+
 decl {\#define shadow _shadow} {private global
 }