1
0
mirror of https://github.com/libretro/Lakka-LibreELEC.git synced 2024-11-25 13:06:17 +00:00
Lakka-LibreELEC/packages/graphics/ftgl/patches/ftgl-01-cmake.patch

36 lines
1.1 KiB
Diff

From c6dea8249d50f1f463db6ca89bc582259c54b86a Mon Sep 17 00:00:00 2001
From: Stefan Saraev <stefan@saraev.ca>
Date: Sat, 4 Jul 2015 12:42:40 +0300
Subject: [PATCH] cmake
---
CMakeLists.txt | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
create mode 100644 CMakeLists.txt
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 0000000..18791c4
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,16 @@
+project(ftgl)
+
+cmake_minimum_required(VERSION 2.6)
+enable_language(CXX)
+
+include(ExternalProject)
+
+externalproject_add(ftgl
+ SOURCE_DIR ${CMAKE_SOURCE_DIR}
+ UPDATE_COMMAND cd unix && autoreconf -vif
+ CONFIGURE_COMMAND cd unix && CXXFLAGS=-fpermissive ./configure --prefix=${OUTPUT_DIR} --with-freetype-prefix=${OUTPUT_DIR} --with-pic
+ BUILD_COMMAND cd unix && make
+ INSTALL_COMMAND ""
+ BUILD_IN_SOURCE 1)
+
+install(CODE "execute_process(COMMAND make install WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/unix)")
--
1.7.10.4