mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
SDL_image: convert to new package format
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
0fae91b76b
commit
a227bb79ac
@ -38,7 +38,7 @@ PKG_AUTORECONF="no"
|
||||
PKG_DEPENDS="$PKG_DEPENDS dbus"
|
||||
|
||||
# needed for hosttools (Texturepacker)
|
||||
PKG_BUILD_DEPENDS_TARGET="$PKG_BUILD_DEPENDS_TARGET lzo:host SDL:host SDL_image-host"
|
||||
PKG_BUILD_DEPENDS_TARGET="$PKG_BUILD_DEPENDS_TARGET lzo:host SDL:host SDL_image:host"
|
||||
|
||||
# some python stuff needed for various addons
|
||||
PKG_DEPENDS="$PKG_DEPENDS Imaging"
|
||||
|
@ -1,59 +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 <http://www.gnu.org/licenses/>.
|
||||
################################################################################
|
||||
|
||||
. config/options $1
|
||||
|
||||
$SCRIPTS/unpack SDL_image
|
||||
|
||||
SDL_IMAGE_DIR=`ls -d $BUILD/SDL_image-[0-9]*`
|
||||
|
||||
setup_toolchain host
|
||||
|
||||
cd $SDL_IMAGE_DIR
|
||||
|
||||
mkdir -p .build-host && cd .build-host
|
||||
../configure --host=$HOST_NAME \
|
||||
--build=$HOST_NAME \
|
||||
--prefix=$ROOT/$TOOLCHAIN \
|
||||
--sysconfdir=$ROOT/$TOOLCHAIN/etc \
|
||||
--localstatedir=/var \
|
||||
--enable-shared \
|
||||
--disable-static \
|
||||
--disable-bmp \
|
||||
--disable-gif \
|
||||
--enable-jpg \
|
||||
--disable-jpg-shared \
|
||||
--disable-lbm \
|
||||
--disable-pcx \
|
||||
--enable-png \
|
||||
--disable-png-shared \
|
||||
--disable-pnm \
|
||||
--disable-tga \
|
||||
--disable-tif \
|
||||
--disable-tif-shared \
|
||||
--disable-webp \
|
||||
--disable-webp-shared \
|
||||
--disable-xcf \
|
||||
--disable-xpm \
|
||||
--disable-xv \
|
||||
--with-sdl-prefix=$ROOT/$TOOLCHAIN \
|
||||
|
||||
make
|
||||
make install
|
@ -1,34 +0,0 @@
|
||||
################################################################################
|
||||
# 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="SDL_image"
|
||||
PKG_VERSION=""
|
||||
PKG_REV="1"
|
||||
PKG_ARCH="any"
|
||||
PKG_LICENSE="GPL"
|
||||
PKG_SITE="http://www.libsdl.org/"
|
||||
PKG_URL=""
|
||||
PKG_DEPENDS=""
|
||||
PKG_BUILD_DEPENDS="toolchain SDL:host libpng:host libjpeg-turbo:host"
|
||||
PKG_PRIORITY="optional"
|
||||
PKG_SECTION="multimedia"
|
||||
PKG_SHORTDESC="libsdl_image: A cross-platform Graphic API"
|
||||
PKG_LONGDESC="SDL_image is an image loading library that is used with the SDL library, and almost as portable. It allows a programmer to use multiple image formats without having to code all the loading and conversion algorithms themselves."
|
||||
PKG_IS_ADDON="no"
|
||||
|
||||
PKG_AUTORECONF="no"
|
@ -1,56 +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 <http://www.gnu.org/licenses/>.
|
||||
################################################################################
|
||||
|
||||
. config/options $1
|
||||
|
||||
cd $PKG_BUILD
|
||||
|
||||
# create some files needed for autoreconf
|
||||
touch NEWS AUTHORS ChangeLog
|
||||
do_autoreconf
|
||||
|
||||
mkdir -p .build-target && cd .build-target
|
||||
../configure --host=$TARGET_NAME \
|
||||
--build=$HOST_NAME \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--enable-shared \
|
||||
--disable-static \
|
||||
--enable-bmp \
|
||||
--enable-gif \
|
||||
--enable-jpg \
|
||||
--disable-jpg-shared \
|
||||
--disable-lbm \
|
||||
--enable-pcx \
|
||||
--enable-png \
|
||||
--disable-png-shared \
|
||||
--enable-pnm \
|
||||
--enable-tga \
|
||||
--enable-tif \
|
||||
--disable-tif-shared \
|
||||
--enable-xcf \
|
||||
--enable-xpm \
|
||||
--enable-xv \
|
||||
--with-sdl-prefix=$SYSROOT_PREFIX/usr \
|
||||
|
||||
make
|
||||
|
||||
$MAKEINSTALL
|
@ -1,25 +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 <http://www.gnu.org/licenses/>.
|
||||
################################################################################
|
||||
|
||||
. config/options $1
|
||||
|
||||
mkdir -p $INSTALL/usr/lib
|
||||
cp -P $PKG_BUILD/.build-target/.libs/*.so* $INSTALL/usr/lib
|
||||
|
@ -1,34 +0,0 @@
|
||||
################################################################################
|
||||
# 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="SDL_image"
|
||||
PKG_VERSION="1.2.12"
|
||||
PKG_REV="1"
|
||||
PKG_ARCH="any"
|
||||
PKG_LICENSE="GPL"
|
||||
PKG_SITE="http://www.libsdl.org/"
|
||||
PKG_URL="http://www.libsdl.org/projects/SDL_image/release/$PKG_NAME-$PKG_VERSION.tar.gz"
|
||||
PKG_DEPENDS="SDL"
|
||||
PKG_BUILD_DEPENDS="toolchain SDL libjpeg-turbo libpng tiff"
|
||||
PKG_PRIORITY="optional"
|
||||
PKG_SECTION="multimedia"
|
||||
PKG_SHORTDESC="libsdl_image: A cross-platform Graphic API"
|
||||
PKG_LONGDESC="SDL_image is an image loading library that is used with the SDL library, and almost as portable. It allows a programmer to use multiple image formats without having to code all the loading and conversion algorithms themselves."
|
||||
PKG_IS_ADDON="no"
|
||||
|
||||
PKG_AUTORECONF="no"
|
72
packages/multimedia/SDL_image/package.mk
Normal file
72
packages/multimedia/SDL_image/package.mk
Normal file
@ -0,0 +1,72 @@
|
||||
################################################################################
|
||||
# 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="SDL_image"
|
||||
PKG_VERSION="1.2.12"
|
||||
PKG_REV="1"
|
||||
PKG_ARCH="any"
|
||||
PKG_LICENSE="GPL"
|
||||
PKG_SITE="http://www.libsdl.org/"
|
||||
PKG_URL="http://www.libsdl.org/projects/SDL_image/release/$PKG_NAME-$PKG_VERSION.tar.gz"
|
||||
PKG_DEPENDS_HOST=""
|
||||
PKG_DEPENDS_TARGET="SDL"
|
||||
PKG_BUILD_DEPENDS_HOST="toolchain SDL:host libpng:host libjpeg-turbo:host"
|
||||
PKG_BUILD_DEPENDS_TARGET="toolchain SDL libjpeg-turbo libpng tiff"
|
||||
PKG_PRIORITY="optional"
|
||||
PKG_SECTION="multimedia"
|
||||
PKG_SHORTDESC="libsdl_image: A cross-platform Graphic API"
|
||||
PKG_LONGDESC="SDL_image is an image loading library that is used with the SDL library, and almost as portable. It allows a programmer to use multiple image formats without having to code all the loading and conversion algorithms themselves."
|
||||
|
||||
PKG_IS_ADDON="no"
|
||||
PKG_AUTORECONF="yes"
|
||||
|
||||
PKG_CONFIGURE_OPTS_HOST="--disable-bmp \
|
||||
--disable-gif \
|
||||
--enable-jpg \
|
||||
--disable-jpg-shared \
|
||||
--disable-lbm \
|
||||
--disable-pcx \
|
||||
--enable-png \
|
||||
--disable-png-shared \
|
||||
--disable-pnm \
|
||||
--disable-tga \
|
||||
--disable-tif \
|
||||
--disable-tif-shared \
|
||||
--disable-webp \
|
||||
--disable-webp-shared \
|
||||
--disable-xcf \
|
||||
--disable-xpm \
|
||||
--disable-xv \
|
||||
--with-sdl-prefix=$ROOT/$TOOLCHAIN"
|
||||
|
||||
PKG_CONFIGURE_OPTS_TARGET="--enable-bmp \
|
||||
--enable-gif \
|
||||
--enable-jpg \
|
||||
--disable-jpg-shared \
|
||||
--disable-lbm \
|
||||
--enable-pcx \
|
||||
--enable-png \
|
||||
--disable-png-shared \
|
||||
--enable-pnm \
|
||||
--enable-tga \
|
||||
--enable-tif \
|
||||
--disable-tif-shared \
|
||||
--enable-xcf \
|
||||
--enable-xpm \
|
||||
--enable-xv \
|
||||
--with-sdl-prefix=$SYSROOT_PREFIX/usr"
|
Loading…
x
Reference in New Issue
Block a user