From f221a22cb289bdc1a31af5521c1294553e0e2409 Mon Sep 17 00:00:00 2001 From: chewitt Date: Mon, 22 Aug 2016 06:54:43 +0100 Subject: [PATCH] netbsd-curses: backport package to support #640 --- packages/devel/netbsd-curses/package.mk | 36 +++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 packages/devel/netbsd-curses/package.mk diff --git a/packages/devel/netbsd-curses/package.mk b/packages/devel/netbsd-curses/package.mk new file mode 100644 index 0000000000..1654909bb6 --- /dev/null +++ b/packages/devel/netbsd-curses/package.mk @@ -0,0 +1,36 @@ +################################################################################ +# This file is part of LibreELEC - https://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="netbsd-curses" +PKG_VERSION="47b256a" +PKG_ARCH="any" +PKG_SITE="https://github.com/sabotage-linux/netbsd-curses" +PKG_URL="https://github.com/sabotage-linux/netbsd-curses/archive/$PKG_VERSION.tar.gz" +PKG_DEPENDS_TARGET="toolchain" +PKG_PRIORITY="optional" +PKG_SECTION="devel" +PKG_SHORTDESC="netbsd-libcurses portable edition" +PKG_LONGDESC="netbsd-libcurses portable edition" + +make_target() { + make HOSTCC="$HOST_CC" PREFIX=/usr all-static +} + +makeinstall_target() { + make HOSTCC="$HOST_CC" PREFIX=$SYSROOT_PREFIX/usr install-static +}