diff --git a/packages/graphics/jasper/build b/packages/graphics/jasper/build deleted file mode 100755 index 667ca6025d..0000000000 --- a/packages/graphics/jasper/build +++ /dev/null @@ -1,37 +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" - -cd $PKG_BUILD -./configure --host=$TARGET_NAME \ - --build=$HOST_NAME \ - --prefix=/usr \ - --exec-prefix=/usr \ - --sysconfdir=/etc \ - --datadir=/usr/share \ - --disable-shared \ - --enable-static \ - -make - -$MAKEINSTALL diff --git a/packages/graphics/jasper/meta b/packages/graphics/jasper/package.mk similarity index 85% rename from packages/graphics/jasper/meta rename to packages/graphics/jasper/package.mk index 4654b177cf..feb72a579c 100644 --- a/packages/graphics/jasper/meta +++ b/packages/graphics/jasper/package.mk @@ -23,12 +23,22 @@ PKG_ARCH="any" PKG_LICENSE="OpenSource" PKG_SITE="http://www.ece.uvic.ca/~mdadams/jasper/" PKG_URL="$DISTRO_SRC/$PKG_NAME-$PKG_VERSION.tar.bz2" -PKG_DEPENDS="" -PKG_BUILD_DEPENDS="toolchain libjpeg-turbo" +PKG_DEPENDS_TARGET="" +PKG_BUILD_DEPENDS_TARGET="toolchain libjpeg-turbo" PKG_PRIORITY="optional" PKG_SECTION="graphics" PKG_SHORTDESC="jasper: JPEG-2000 Part-1 standard (i.e., ISO/IEC 15444-1) implementation" PKG_LONGDESC="This distribution contains the public release of the an open-source implementation of the ISO/IEC 15444-1 also known as JPEG-2000 standard for image compression." -PKG_IS_ADDON="no" +PKG_IS_ADDON="no" PKG_AUTORECONF="yes" + +PKG_CONFIGURE_OPTS_TARGET="--disable-shared --enable-static" + +pre_configure_target() { + export CFLAGS="$CFLAGS -fPIC -DPIC" +} + +post_makeinstall_target() { + rm -rf $INSTALL/usr/bin +}