mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
new package: ftgl
This commit is contained in:
parent
b7a0806379
commit
e3a5d6d86d
39
packages/graphics/ftgl/package.mk
Normal file
39
packages/graphics/ftgl/package.mk
Normal file
@ -0,0 +1,39 @@
|
||||
################################################################################
|
||||
# This file is part of OpenELEC - http://www.openelec.tv
|
||||
# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv)
|
||||
#
|
||||
# OpenELEC is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 2 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# OpenELEC is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with OpenELEC. If not, see <http://www.gnu.org/licenses/>.
|
||||
################################################################################
|
||||
|
||||
PKG_NAME="ftgl"
|
||||
PKG_VERSION="2.1.2"
|
||||
PKG_REV="1"
|
||||
PKG_ARCH="any"
|
||||
PKG_LICENSE="GPL"
|
||||
PKG_SITE="http://sourceforge.net/projects/ftgl/"
|
||||
PKG_URL="$DISTRO_SRC/$PKG_NAME-$PKG_VERSION.tar.gz"
|
||||
PKG_DEPENDS_TARGET="toolchain freetype"
|
||||
PKG_PRIORITY="optional"
|
||||
PKG_SECTION="multimedia"
|
||||
PKG_SHORTDESC="ftgl:"
|
||||
PKG_LONGDESC="ftgl:"
|
||||
|
||||
PKG_IS_ADDON="no"
|
||||
PKG_AUTORECONF="no"
|
||||
|
||||
configure_target() {
|
||||
cmake -DCMAKE_TOOLCHAIN_FILE=$CMAKE_CONF \
|
||||
-DOUTPUT_DIR=$SYSROOT_PREFIX/usr \
|
||||
..
|
||||
}
|
35
packages/graphics/ftgl/patches/ftgl-01-cmake.patch
Normal file
35
packages/graphics/ftgl/patches/ftgl-01-cmake.patch
Normal file
@ -0,0 +1,35 @@
|
||||
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-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
|
||||
|
@ -0,0 +1,12 @@
|
||||
--- ftgl.orig/unix/Makefile 2014-08-04 17:21:22.210742862 +0200
|
||||
+++ ftgl/unix/Makefile 2003-01-12 22:27:04.000000000 +0100
|
||||
@@ -1,7 +1,7 @@
|
||||
top_builddir=.
|
||||
-include $(top_builddir)/Make.conf
|
||||
|
||||
-SUBDIRS = src demo docs
|
||||
+SUBDIRS = src demo
|
||||
|
||||
AUTOGEN = Make.conf config.log config.status libtool autom4te.cache ftgl.pc
|
||||
AUTOGEN_MAINT = aclocal.m4 acinclude.m4 config.guess config.sub configure ltmain.sh install-sh
|
||||
|
Loading…
x
Reference in New Issue
Block a user