From 1fe0933a198202a1cdeadd51324f87b954b7ecd6 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Thu, 22 Aug 2013 15:44:54 +0200 Subject: [PATCH] libgcrypt: convert to new package format Signed-off-by: Stephan Raue --- packages/security/libgcrypt/build | 41 ------------------- packages/security/libgcrypt/install | 26 ------------ .../security/libgcrypt/{meta => package.mk} | 11 ++++- 3 files changed, 10 insertions(+), 68 deletions(-) delete mode 100755 packages/security/libgcrypt/build delete mode 100755 packages/security/libgcrypt/install rename packages/security/libgcrypt/{meta => package.mk} (88%) diff --git a/packages/security/libgcrypt/build b/packages/security/libgcrypt/build deleted file mode 100755 index 83c25a709b..0000000000 --- a/packages/security/libgcrypt/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 \ - --localstatedir=/var \ - --disable-static \ - --enable-shared \ - --disable-asm \ - --with-gnu-ld - -make -$MAKEINSTALL - -sed -e "s:\(['= ]\)/usr:\\1$SYSROOT_PREFIX/usr:g" -i src/libgcrypt-config - -cp src/libgcrypt-config $ROOT/$TOOLCHAIN/bin diff --git a/packages/security/libgcrypt/install b/packages/security/libgcrypt/install deleted file mode 100755 index 9a1692eb11..0000000000 --- a/packages/security/libgcrypt/install +++ /dev/null @@ -1,26 +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/lib - cp -P $PKG_BUILD/src/.libs/*.so* $INSTALL/usr/lib diff --git a/packages/security/libgcrypt/meta b/packages/security/libgcrypt/package.mk similarity index 88% rename from packages/security/libgcrypt/meta rename to packages/security/libgcrypt/package.mk index 8fcecb7133..ae2a3d0419 100644 --- a/packages/security/libgcrypt/meta +++ b/packages/security/libgcrypt/package.mk @@ -31,6 +31,15 @@ PKG_PRIORITY="optional" PKG_SECTION="security" PKG_SHORTDESC="libgcrypt: General purpose cryptographic library" PKG_LONGDESC="Libgcrypt is a general purpose cryptographic library based on the code from GnuPG. It provides functions for all cryptographic building blocks: symmetric ciphers, hash algorithms, MACs, public key algorithms, large integer functions, random numbers and a lot of supporting functions." -PKG_IS_ADDON="no" +PKG_IS_ADDON="no" PKG_AUTORECONF="yes" + +PKG_CONFIGURE_OPTS_TARGET="--disable-asm --with-gnu-ld" + +post_makeinstall_target() { + sed -e "s:\(['= ]\)/usr:\\1$SYSROOT_PREFIX/usr:g" -i src/libgcrypt-config + cp src/libgcrypt-config $ROOT/$TOOLCHAIN/bin + + rm -rf $INSTALL/usr/bin +}