mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-01 18:32:58 +02:00
libtranscript: fix libtool usage
This commit is contained in:
parent
355cebb715
commit
508dbc6189
1 changed files with 17 additions and 17 deletions
|
@ -3,9 +3,9 @@ pkgname=libtranscript
|
||||||
version=0.3.4
|
version=0.3.4
|
||||||
revision=1
|
revision=1
|
||||||
build_style=configure
|
build_style=configure
|
||||||
configure_args="--prefix=/usr LIBTOOL=./libtool"
|
configure_args="--prefix=/usr LIBTOOL=./hack/libtool"
|
||||||
hostmakedepends="pkg-config gettext"
|
hostmakedepends="pkg-config gettext autoconf automake libtool"
|
||||||
makedepends="libtool gettext-devel"
|
makedepends="gettext-devel"
|
||||||
short_desc="Character-set conversion library"
|
short_desc="Character-set conversion library"
|
||||||
maintainer="Andrew Benson <abenson+void@gmail.com>"
|
maintainer="Andrew Benson <abenson+void@gmail.com>"
|
||||||
license="GPL-3.0-or-later"
|
license="GPL-3.0-or-later"
|
||||||
|
@ -14,22 +14,22 @@ distfiles="https://os.ghalkes.nl/dist/libtranscript-${version}.tar.bz2"
|
||||||
checksum=daaa09038f6f3b785b86d152014b3893910f9b9e4e430c015e41b05b34c37ea7
|
checksum=daaa09038f6f3b785b86d152014b3893910f9b9e4e430c015e41b05b34c37ea7
|
||||||
|
|
||||||
pre_configure() {
|
pre_configure() {
|
||||||
cp ${XBPS_CROSS_BASE}/usr/bin/libtool .
|
# project uses libtool without autoconf, which is not really viable
|
||||||
sed -i "
|
# since autoconf is supposed to configure libtool.
|
||||||
/^OBJDUMP=/s|=.*|=$OBJDUMP|
|
mkdir -p hack
|
||||||
/^NM=/s|=.*|=$NM|
|
cat <<-EOF >hack/configure.ac
|
||||||
/^AR=/s|=.*|=$AR|
|
AC_INIT
|
||||||
/^LTCC=/s|=.*|=$CC|
|
LT_INIT
|
||||||
/^CC=/s|=.*|=$CC|
|
AC_CONFIG_MACRO_DIRS([m4])
|
||||||
/^RANLIB=/s|=.*|=$RANLIB|
|
AC_LANG([C])
|
||||||
/^LD=/s|=.*|=$LD|
|
AC_LANG([C++])
|
||||||
/^STRIP=/s|=.*|=true|
|
LT_LANG([C])
|
||||||
/^host_alias=/s|=.*|=$XBPS_TRIPLET|
|
LT_LANG([C++])
|
||||||
/^host=/s|=.*|=$XBPS_TRIPLET|
|
AC_OUTPUT
|
||||||
" libtool
|
EOF
|
||||||
|
(cd hack; autoreconf -fi; libtoolize -i; ./configure --host=$XBPS_CROSS_TRIPLET --build=$XBPS_TRIPLET --with-libtool-sysroot=$XBPS_CROSS_BASE)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
libtranscript-devel_package() {
|
libtranscript-devel_package() {
|
||||||
short_desc+=" - development files"
|
short_desc+=" - development files"
|
||||||
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
||||||
|
|
Loading…
Add table
Reference in a new issue