From a32c3cbb3468bd17c95a6525be2cfdc7105fdbe6 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Fri, 17 Jan 2014 14:56:10 +0100 Subject: [PATCH] tiff: convert to new package format Signed-off-by: Stephan Raue --- packages/graphics/tiff/build | 41 --------------------- packages/graphics/tiff/{meta => package.mk} | 23 ++++++++++-- 2 files changed, 20 insertions(+), 44 deletions(-) delete mode 100755 packages/graphics/tiff/build rename packages/graphics/tiff/{meta => package.mk} (71%) diff --git a/packages/graphics/tiff/build b/packages/graphics/tiff/build deleted file mode 100755 index 02e27b248b..0000000000 --- a/packages/graphics/tiff/build +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/sh - -################################################################################ -# 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 . -################################################################################ - -. config/options $1 - -CFLAGS="$CFLAGS -fPIC -DPIC" -CXXFLAGS="$CXXFLAGS -fPIC -DPIC" - -cd $PKG_BUILD -./configure --host=$TARGET_NAME \ - --build=$HOST_NAME \ - --prefix=/usr \ - --sysconfdir=/etc \ - --enable-static \ - --disable-shared \ - --disable-mdi \ - --enable-cxx \ - --with-jpeg-lib-dir=$SYSROOT_PREFIX/usr/lib \ - --with-jpeg-include-dir=$SYSROOT_PREFIX/usr/include \ - --without-x - -make - -$MAKEINSTALL diff --git a/packages/graphics/tiff/meta b/packages/graphics/tiff/package.mk similarity index 71% rename from packages/graphics/tiff/meta rename to packages/graphics/tiff/package.mk index 60551d5360..346772db2e 100644 --- a/packages/graphics/tiff/meta +++ b/packages/graphics/tiff/package.mk @@ -24,12 +24,29 @@ PKG_ARCH="any" PKG_LICENSE="OSS" PKG_SITE="http://www.remotesensing.org/libtiff/" PKG_URL="http://download.osgeo.org/libtiff/$PKG_NAME-$PKG_VERSION.tar.gz" -PKG_DEPENDS="zlib" -PKG_BUILD_DEPENDS="toolchain libjpeg-turbo zlib" +PKG_DEPENDS_TARGET="zlib" +PKG_BUILD_DEPENDS_TARGET="toolchain libjpeg-turbo zlib" PKG_PRIORITY="optional" PKG_SECTION="graphics" PKG_SHORTDESC="libtiff: A library for reading and writing TIFF files" PKG_LONGDESC="libtiff is a library for reading and writing data files encoded with the Tag Image File format, Revision 6.0 (or revision 5.0 or revision 4.0). This file format is suit- able for archiving multi-color and monochromatic image data." -PKG_IS_ADDON="no" +PKG_IS_ADDON="no" PKG_AUTORECONF="yes" + +PKG_CONFIGURE_OPTS_TARGET="--enable-static \ + --disable-shared \ + --disable-mdi \ + --enable-cxx \ + --with-jpeg-lib-dir=$SYSROOT_PREFIX/usr/lib \ + --with-jpeg-include-dir=$SYSROOT_PREFIX/usr/include \ + --without-x" + +pre_configure_target() { + export CFLAGS="$CFLAGS -fPIC -DPIC" + export CXXFLAGS="$CXXFLAGS -fPIC -DPIC" +} + +post_makeinstall_target() { + rm -rf $INSTALL/usr/bin +}