From b73249bf82ce0b8bc4f0a0e2e6d410307a1a1275 Mon Sep 17 00:00:00 2001 From: Holger Steinhaus Date: Sun, 8 Nov 2015 16:24:16 +0100 Subject: [PATCH] ImageMagick: added --- graphics/ImageMagick/package.mk | 50 +++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 graphics/ImageMagick/package.mk diff --git a/graphics/ImageMagick/package.mk b/graphics/ImageMagick/package.mk new file mode 100644 index 000000000..e8ecb4217 --- /dev/null +++ b/graphics/ImageMagick/package.mk @@ -0,0 +1,50 @@ +################################################################################ +# 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="ImageMagick" +PKG_VERSION="6.9.2-5" +PKG_REV="1" +PKG_ARCH="any" +PKG_LICENSE="OSS" +PKG_SITE="http://www.imagemagick.org" +PKG_URL="http://www.imagemagick.org/download/$PKG_NAME-$PKG_VERSION.tar.xz" +PKG_DEPENDS_HOST="zlib:host" +PKG_DEPENDS_TARGET="toolchain cairo zlib" +PKG_PRIORITY="optional" +PKG_SECTION="graphics" +PKG_SHORTDESC="ImageMagick - convert between graphics formats" +PKG_LONGDESC="ImageMagick is a software suite to create, edit, compose, or convert bitmap images. It can read and write images in a variety of formats (over 200) including PNG, JPEG, JPEG-2000, GIF, TIFF, DPX, EXR, WebP, Postscript, PDF, and SVG. Use ImageMagick to resize, flip, mirror, rotate, distort, shear and transform images, adjust image colors, apply various special effects, or draw text, lines, polygons, ellipses and Bézier curves." + +PKG_IS_ADDON="no" +PKG_AUTORECONF="no" + +PKG_CONFIGURE_OPTS_TARGET="--without-x --disable-docs" + +pre_configure_host() { + export CFLAGS="$CFLAGS -fPIC -DPIC" + export CPPFLAGS="$CPPFLAGS -I$ROOT/$TOOLCHAIN/include" +} + +pre_configure_target() { + export CFLAGS="$CFLAGS -fPIC -DPIC" + export CPPFLAGS="$CPPFLAGS -I$SYSROOT_PREFIX/usr/include" +} + +post_makeinstall_target() { + rm -rf $INSTALL/usr/bin +}