From c22d8db2e028ea6913b38a261acc2d1f238d7e40 Mon Sep 17 00:00:00 2001 From: terrencetang Date: Sat, 12 Aug 2023 18:02:34 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=B7=BB=E5=8A=A0pulseaudio=E7=9A=84?= =?UTF-8?q?=E4=BE=9D=E8=B5=96=E5=BA=93libtool?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: terrencetang --- thirdparty/libtool/HPKBUILD | 75 ++++++++++++++++++++++++++++++++++++ thirdparty/libtool/SHA512SUM | 1 + 2 files changed, 76 insertions(+) create mode 100644 thirdparty/libtool/HPKBUILD create mode 100644 thirdparty/libtool/SHA512SUM diff --git a/thirdparty/libtool/HPKBUILD b/thirdparty/libtool/HPKBUILD new file mode 100644 index 00000000..d56df758 --- /dev/null +++ b/thirdparty/libtool/HPKBUILD @@ -0,0 +1,75 @@ +# Contributor: xuzhao +# Maintainer: xuzhao +pkgname=libtool +pkgver=2.4.6 +pkgrel=0 +pkgdesc="GNU Libtool is a generic library support script that hides the complexity of using shared libraries behind a consistent, portable interface." +url="https://www.gnu.org" +archs=("armeabi-v7a" "arm64-v8a") +license=("GPLv2") +depends=() +makedepends=() + +source="https://ftpmirror.gnu.org/$pkgname/$pkgname-${pkgver}.tar.gz" +autounpack=true +downloadpackage=true +buildtools="configure" + +builddir=$pkgname-${pkgver} +packagename=$builddir.tar.gz + +source envset.sh +host= + +prepare() { + mkdir -p $builddir/$ARCH-build + + if [ $ARCH == "armeabi-v7a" ] + then + setarm32ENV + host=arm-linux + elif [ $ARCH == "arm64-v8a" ] + then + setarm64ENV + host=aarch64-linux + else + echo "${ARCH} not support" + return -1 + fi +} + +build() { + cd $builddir/$ARCH-build + ../configure "$@" --host=$host > `pwd`/build.log 2>&1 + make V=1 -j4 >> `pwd`/build.log 2>&1 + ret=$? + cd $OLDPWD + return $ret +} + +package() { + cd $builddir/$ARCH-build + make install > `pwd`/build.log 2>&1 + unset host + cd $OLDPWD + if [ $ARCH == "armeabi-v7a" ] + then + unsetarm32ENV + elif [ $ARCH == "arm64-v8a" ] + then + unsetarm64ENV + else + echo "${ARCH} not support" + return -1 + fi +} + +check() { + echo "The test must be on an OpenHarmony device!" + # TODO +} + +cleanbuild(){ + rm -rf ${PWD}/$builddir #${PWD}/$packagename +} + diff --git a/thirdparty/libtool/SHA512SUM b/thirdparty/libtool/SHA512SUM new file mode 100644 index 00000000..80089945 --- /dev/null +++ b/thirdparty/libtool/SHA512SUM @@ -0,0 +1 @@ +3233d81cb2739a54b840a0a82064eebbfaa4fb442fb993a35d6bd41d8395c51f038c90ae048b9252f172d0a5bbfb4b36e2b13d4477001f9ff7d4124237819a18 libtool-2.4.6.tar.gz -- Gitee From acc964dce0ba927729b6a08dff58e18a2f6d8342 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8A=B1=E4=B8=8D=E6=88=90?= Date: Mon, 14 Aug 2023 03:09:47 +0000 Subject: [PATCH 2/2] update thirdparty/libtool/HPKBUILD. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 花不成 --- thirdparty/libtool/HPKBUILD | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/thirdparty/libtool/HPKBUILD b/thirdparty/libtool/HPKBUILD index d56df758..0c308dfc 100644 --- a/thirdparty/libtool/HPKBUILD +++ b/thirdparty/libtool/HPKBUILD @@ -34,7 +34,7 @@ prepare() { host=aarch64-linux else echo "${ARCH} not support" - return -1 + return -1 fi } @@ -50,8 +50,8 @@ build() { package() { cd $builddir/$ARCH-build make install > `pwd`/build.log 2>&1 - unset host cd $OLDPWD + unset host if [ $ARCH == "armeabi-v7a" ] then unsetarm32ENV @@ -60,7 +60,7 @@ package() { unsetarm64ENV else echo "${ARCH} not support" - return -1 + return -1 fi } -- Gitee