From 054a78aed9aeec681897f7fc99e6d2fa6f038e7a Mon Sep 17 00:00:00 2001 From: Lukas Rusak Date: Wed, 1 Feb 2017 13:39:10 -0800 Subject: [PATCH] bchunk: add package --- .../game-tools/bchunk/package.mk | 35 +++++++++++++++++++ .../patches/bchunk-0001-fix-makefile.patch | 16 +++++++++ 2 files changed, 51 insertions(+) create mode 100644 packages/addons/addon-depends/game-tools/bchunk/package.mk create mode 100644 packages/addons/addon-depends/game-tools/bchunk/patches/bchunk-0001-fix-makefile.patch diff --git a/packages/addons/addon-depends/game-tools/bchunk/package.mk b/packages/addons/addon-depends/game-tools/bchunk/package.mk new file mode 100644 index 0000000000..aad0205dd4 --- /dev/null +++ b/packages/addons/addon-depends/game-tools/bchunk/package.mk @@ -0,0 +1,35 @@ +################################################################################ +# This file is part of LibreELEC - http://www.libreelec.tv +# Copyright (C) 2016 Team LibreELEC +# +# LibreELEC 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. +# +# LibreELEC 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 LibreELEC. If not, see . +################################################################################ + +PKG_NAME="bchunk" +PKG_VERSION="1.2.0" +PKG_ARCH="any" +PKG_LICENSE="GPL" +PKG_SITE="http://he.fi/bchunk/" +PKG_URL="http://he.fi/bchunk/$PKG_NAME-$PKG_VERSION.tar.gz" +PKG_DEPENDS_TARGET="toolchain" +PKG_SECTION="system" +PKG_SHORTDESC="binchunker converts a CD image in a .bin / .cue format (sometimes .raw / .cue) to a set of .iso and .cdr tracks" +PKG_LONGDESC="binchunker converts a CD image in a .bin / .cue format (sometimes .raw / .cue) to a set of .iso and .cdr tracks" + +PKG_IS_ADDON="no" +PKG_AUTORECONF="no" + +makeinstall_target() { + : +} diff --git a/packages/addons/addon-depends/game-tools/bchunk/patches/bchunk-0001-fix-makefile.patch b/packages/addons/addon-depends/game-tools/bchunk/patches/bchunk-0001-fix-makefile.patch new file mode 100644 index 0000000000..e092487c09 --- /dev/null +++ b/packages/addons/addon-depends/game-tools/bchunk/patches/bchunk-0001-fix-makefile.patch @@ -0,0 +1,16 @@ +diff -Naur a/Makefile b/Makefile +--- a/Makefile 2001-08-02 05:51:40.000000000 -0700 ++++ b/Makefile 2016-10-23 10:47:21.682136676 -0700 +@@ -1,9 +1,9 @@ + all: bchunk + + # For systems with GCC (Linux, and others with GCC installed): +-CC = gcc +-LD = gcc +-CFLAGS = -Wall -Wstrict-prototypes -O2 ++CC ?= gcc ++LD = $(CC) ++CFLAGS ?= -Wall -Wstrict-prototypes -O2 + + # For systems with a legacy CC: + #CC = cc