From 1355b73b5fe33d48f9fba340e437d7cddfeb6fa6 Mon Sep 17 00:00:00 2001 From: rakuco Date: Sun, 11 Aug 2013 17:05:53 +0000 Subject: Unbreak the build. Import a few patches originally from Gentoo: o http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/media-gfx/kpovmodeler/files/kpovmodeler-1.1.3-freetype-include.patch?hideattic=0&revision=1.1&view=markup o http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/media-gfx/kpovmodeler/files/kpovmodeler-1.1.3-underlinking.patch?hideattic=0&revision=1.2&view=markup That fix the FreeType errors there were occurring, and also a linking problem that was happening at a later stage. Obtained from: Gentoo --- graphics/kpovmodeler/files/patch-CMakeLists.txt | 25 +++++++++++++++++++++++++ graphics/kpovmodeler/pkg-descr | 2 +- 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 graphics/kpovmodeler/files/patch-CMakeLists.txt (limited to 'graphics') diff --git a/graphics/kpovmodeler/files/patch-CMakeLists.txt b/graphics/kpovmodeler/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..93df3a111a02 --- /dev/null +++ b/graphics/kpovmodeler/files/patch-CMakeLists.txt @@ -0,0 +1,25 @@ +The first hunk fixes the build by including the right FreeType directory. + +The second one explicitly links against libkdeui, as there were linking +problems because of kdeui functions being used without the library being +explicitly referenced. +--- CMakeLists.txt.orig 2009-08-31 18:17:15.000000000 +0300 ++++ CMakeLists.txt 2013-08-11 19:53:43.000000000 +0300 +@@ -11,7 +11,7 @@ + + configure_file(config-kpovmodeler.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-kpovmodeler.h ) + +-include_directories(${FREETYPE_INCLUDE_DIR}) ++include_directories(${FREETYPE_INCLUDE_DIRS}) + add_definitions (-DQT3_SUPPORT -DQT3_SUPPORT_WARNINGS) + + ########### next target ############### +@@ -306,7 +306,7 @@ + + kde4_add_executable(kpovmodeler ${kpovmodeler_SRCS}) + +-target_link_libraries(kpovmodeler ${KDE4_KDECORE_LIBS} lkpovmodeler ) ++target_link_libraries(kpovmodeler ${KDE4_KDECORE_LIBS} ${KDE4_KDEUI_LIBS} lkpovmodeler ) + + install(TARGETS kpovmodeler ${INSTALL_TARGETS_DEFAULT_ARGS} ) + diff --git a/graphics/kpovmodeler/pkg-descr b/graphics/kpovmodeler/pkg-descr index be3cc6d6fd02..8a43f0e2f66c 100644 --- a/graphics/kpovmodeler/pkg-descr +++ b/graphics/kpovmodeler/pkg-descr @@ -1,4 +1,4 @@ KPovModeler is a modeling and composition program for creating POV-Ray(TM) scenes in KDE. -WWW: http://www.kpovmodeler.org/ +WWW: http://www.kpovmodeler.org/ -- cgit