diff --git a/packages/graphics/glfw/package.mk b/packages/graphics/glfw/package.mk new file mode 100644 index 0000000000..30601ce3d6 --- /dev/null +++ b/packages/graphics/glfw/package.mk @@ -0,0 +1,45 @@ +################################################################################ +# 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="glfw" +PKG_VERSION="2.7.9" +PKG_REV="1" +PKG_ARCH="any" +PKG_LICENSE="BSD" +PKG_SITE="http://glfw.org" +PKG_URL="$SOURCEFORGE_SRC/glfw/$PKG_NAME-$PKG_VERSION.tar.gz" +PKG_DEPENDS_TARGET="toolchain mesa" +PKG_PRIORITY="optional" +PKG_SECTION="graphics" +PKG_SHORTDESC="glfw:" +PKG_LONGDESC="glfw:" + +PKG_IS_ADDON="no" +PKG_AUTORECONF="no" + +if [ ! "$OPENGL" = "no" ]; then + PKG_DEPENDS_TARGET="$PKG_DEPENDS_TARGET $OPENGL glu" +fi + +make_target() { + make x11 PREFIX=$SYSROOT_PREFIX/usr +} + +makeinstall_target() { + make x11-install PREFIX=$SYSROOT_PREFIX/usr +}