ytnef: update to 1.9

This commit is contained in:
Jürgen Buchmüller 2017-01-06 04:40:49 +01:00
parent 5ec8ec04c6
commit a1d7206b24

View file

@ -1,6 +1,6 @@
# Template file for 'ytnef'
pkgname=ytnef
version=1.8
version=1.9
revision=1
build_style=gnu-configure
hostmakedepends="automake libtool"
@ -9,12 +9,10 @@ maintainer="Juergen Buchmueller <pullmoll@t-online.de>"
license="GPL-2"
homepage="https://github.com/Yeraze/ytnef"
distfiles="https://github.com/Yeraze/ytnef/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
checksum=f486a9a020ba8be1c0aa110d0ed0b5fd257f72943b0dbe16006ea065e89f3dd2
checksum=388bc35afe41adfb84d62ed1222da93b7ed6244f0cef8e563fb2fd33bbc412c7
do_configure() {
cd ${wrksrc}/ytneflib
autoreconf -fi
./configure ${configure_args}
pre_configure() {
./autogen.sh
}
do_build() {
@ -22,15 +20,14 @@ do_build() {
configure_args+=" --host=${XBPS_TARGET_MACHINE}"
export ac_cv_func_malloc_0_nonnull=yes
fi
cd ${wrksrc}/ytneflib
cd ${wrksrc}/lib
make ${makejobs} DESTDIR="${DESTDIR}" install
if [ -d "${DESTDIR}/usr/lib32" ]; then
mv "${DESTDIR}/usr/lib32" "${DESTDIR}/usr/lib"
fi
export CFLAGS+=" -I ${DESTDIR}/usr/include"
export LDFLAGS+=" -L ${DESTDIR}/usr/lib"
cd ${wrksrc}/ytnef
autoreconf -fi
export CFLAGS+=" -I${DESTDIR}/usr/include"
export LDFLAGS+=" -L${DESTDIR}/usr/lib"
cd ${wrksrc}
./configure ${configure_args}
make ${makejobs}
}