diff --git a/packages/graphics/ftgl/package.mk b/packages/graphics/ftgl/package.mk new file mode 100644 index 0000000000..248ef31682 --- /dev/null +++ b/packages/graphics/ftgl/package.mk @@ -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 . +################################################################################ + +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 \ + .. +} diff --git a/packages/graphics/ftgl/patches/ftgl-01-cmake.patch b/packages/graphics/ftgl/patches/ftgl-01-cmake.patch new file mode 100644 index 0000000000..c9f0f6414f --- /dev/null +++ b/packages/graphics/ftgl/patches/ftgl-01-cmake.patch @@ -0,0 +1,35 @@ +From c6dea8249d50f1f463db6ca89bc582259c54b86a Mon Sep 17 00:00:00 2001 +From: Stefan Saraev +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 + diff --git a/packages/graphics/ftgl/patches/ftgl-01-ftgl-disable-docs.patch b/packages/graphics/ftgl/patches/ftgl-01-ftgl-disable-docs.patch new file mode 100644 index 0000000000..6ff2f2cc4c --- /dev/null +++ b/packages/graphics/ftgl/patches/ftgl-01-ftgl-disable-docs.patch @@ -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 +