git: 3862fee82cb8 - main - games/opensurge: prepare for freetype2 update
Tobias C. Berner
tcberner at FreeBSD.org
Fri Aug 6 14:10:02 UTC 2021
The branch main has been updated by tcberner:
URL: https://cgit.FreeBSD.org/ports/commit/?id=3862fee82cb80ca11316a2ed63574cfa1f14a940
commit 3862fee82cb80ca11316a2ed63574cfa1f14a940
Author: Tobias C. Berner <tcberner at FreeBSD.org>
AuthorDate: 2021-08-06 13:46:54 +0000
Commit: Tobias C. Berner <tcberner at FreeBSD.org>
CommitDate: 2021-08-06 14:09:31 +0000
games/opensurge: prepare for freetype2 update
Add missing linker command to link against freetype.
PR: 251512
---
games/opensurge/files/patch-CMakeLists.txt | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/games/opensurge/files/patch-CMakeLists.txt b/games/opensurge/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..555f168425ff
--- /dev/null
+++ b/games/opensurge/files/patch-CMakeLists.txt
@@ -0,0 +1,28 @@
+Link against freetype
+
+CMakeFiles/opensurge.dir/src/main.c.o CMakeFiles/opensurge.dir/src/misc/iconlin.c.o -o opensurge -Wl,-rpath,/usr/local/lib: -lm /usr/local/lib/libalure.so /usr/local/lib/libopenal.so -lvorbisfile -lvorbis -logg -lstdc++ -lpthread -ljpgalleg -lloadpng -lpng -lz -lalfont -lalleg && :
+ld: error: /usr/local/lib/libalfont.so: undefined reference to FT_Done_Face
+ld: error: /usr/local/lib/libalfont.so: undefined reference to FT_Done_FreeType
+ld: error: /usr/local/lib/libalfont.so: undefined reference to FT_Done_Glyph
+ld: error: /usr/local/lib/libalfont.so: undefined reference to FT_Get_Char_Index
+ld: error: /usr/local/lib/libalfont.so: undefined reference to FT_Get_Glyph
+ld: error: /usr/local/lib/libalfont.so: undefined reference to FT_Glyph_Copy
+ld: error: /usr/local/lib/libalfont.so: undefined reference to FT_Glyph_To_Bitmap
+ld: error: /usr/local/lib/libalfont.so: undefined reference to FT_Init_FreeType
+ld: error: /usr/local/lib/libalfont.so: undefined reference to FT_Load_Glyph
+ld: error: /usr/local/lib/libalfont.so: undefined reference to FT_New_Face
+ld: error: /usr/local/lib/libalfont.so: undefined reference to FT_New_Memory_Face
+ld: error: /usr/local/lib/libalfont.so: undefined reference to FT_Set_Pixel_Sizes
+cc: error: linker command failed with exit code 1 (use -v to see invocation)
+
+--- CMakeLists.txt.orig 2021-08-06 13:40:36 UTC
++++ CMakeLists.txt
+@@ -366,7 +366,7 @@ IF(UNIX)
+ SET(GAME_SRCS ${GAME_SRCS} src/misc/iconlin.c)
+ ADD_EXECUTABLE(${GAME_UNIXNAME} ${GAME_SRCS})
+ SET_TARGET_PROPERTIES(${GAME_UNIXNAME} PROPERTIES LINK_FLAGS ${ALLEGRO_UNIX_LIBS})
+- TARGET_LINK_LIBRARIES(${GAME_UNIXNAME} m ${AUDIO_LIBS} jpgalleg loadpng png z alfont alleg)
++ TARGET_LINK_LIBRARIES(${GAME_UNIXNAME} m ${AUDIO_LIBS} jpgalleg loadpng png z alfont alleg freetype)
+ SET_TARGET_PROPERTIES(${GAME_UNIXNAME} PROPERTIES COMPILE_FLAGS "-Wall -O2 ${CFLAGS} ${CFLAGS_EXTRA}")
+ ENDIF(UNIX)
+
More information about the dev-commits-ports-all
mailing list