From 77fa73c6f2a00d31de784e85db72794cc378376e Mon Sep 17 00:00:00 2001 From: Stefan Saraev Date: Thu, 26 Sep 2013 20:40:40 +0300 Subject: [PATCH] parted: convert to new package format. add hostpackage --- packages/sysutils/parted/build | 41 ------------------- packages/sysutils/parted/install | 30 -------------- packages/sysutils/parted/{meta => package.mk} | 18 +++++++- 3 files changed, 17 insertions(+), 72 deletions(-) delete mode 100755 packages/sysutils/parted/build delete mode 100755 packages/sysutils/parted/install rename packages/sysutils/parted/{meta => package.mk} (79%) diff --git a/packages/sysutils/parted/build b/packages/sysutils/parted/build deleted file mode 100755 index c7c975618f..0000000000 --- a/packages/sysutils/parted/build +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/sh - -################################################################################ -# This file is part of OpenELEC - http://www.openelec.tv -# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv) -# -# This Program 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, or (at your option) -# any later version. -# -# This Program 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.tv; see the file COPYING. If not, write to -# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. -# http://www.gnu.org/copyleft/gpl.html -################################################################################ - -. config/options $1 - -cd $PKG_BUILD -./configure --host=$TARGET_NAME \ - --build=$HOST_NAME \ - --prefix=/usr \ - --sysconfdir=/etc \ - --datadir=/usr/share \ - --localstatedir=/var \ - --disable-static \ - --enable-shared \ - --disable-device-mapper \ - --without-readline \ - --disable-rpath \ - --with-gnu-ld \ - -make V=1 - -$MAKEINSTALL diff --git a/packages/sysutils/parted/install b/packages/sysutils/parted/install deleted file mode 100755 index 74cf6e1031..0000000000 --- a/packages/sysutils/parted/install +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/sh - -################################################################################ -# This file is part of OpenELEC - http://www.openelec.tv -# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv) -# -# This Program 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, or (at your option) -# any later version. -# -# This Program 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.tv; see the file COPYING. If not, write to -# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. -# http://www.gnu.org/copyleft/gpl.html -################################################################################ - -. config/options $1 - -mkdir -p $INSTALL/usr/bin - cp $PKG_BUILD/parted/.libs/parted $INSTALL/usr/bin - cp $PKG_BUILD/partprobe/.libs/partprobe $INSTALL/usr/bin - -mkdir -p $INSTALL/usr/lib - cp -P $PKG_BUILD/libparted/.libs/*.so* $INSTALL/usr/lib diff --git a/packages/sysutils/parted/meta b/packages/sysutils/parted/package.mk similarity index 79% rename from packages/sysutils/parted/meta rename to packages/sysutils/parted/package.mk index 1de43abcd5..617945bec8 100644 --- a/packages/sysutils/parted/meta +++ b/packages/sysutils/parted/package.mk @@ -26,7 +26,8 @@ PKG_LICENSE="GPL" PKG_SITE="http://www.gnu.org/software/parted/" PKG_URL="http://ftp.gnu.org/gnu/parted/$PKG_NAME-$PKG_VERSION.tar.xz" PKG_DEPENDS="util-linux" -PKG_BUILD_DEPENDS="toolchain util-linux" +PKG_BUILD_DEPENDS_HOST="toolchain util-linux" +PKG_BUILD_DEPENDS_TARGET="toolchain util-linux parted:host" PKG_PRIORITY="optional" PKG_SECTION="system" PKG_SHORTDESC="parted: GNU partition editor" @@ -34,3 +35,18 @@ PKG_LONGDESC="GNU Parted is a program for creating, destroying, resizing, checki PKG_IS_ADDON="no" PKG_AUTORECONF="no" + +PKG_CONFIGURE_OPTS_TARGET="--disable-static \ + --enable-shared \ + --disable-device-mapper \ + --without-readline \ + --disable-rpath \ + --with-gnu-ld" + +PKG_CONFIGURE_OPTS_HOST="$PKG_CONFIGURE_OPTS_TARGET" + +post_make_target() { + # dont build parallel + MAKEFLAGS=-j1 +} +