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
1 changed files with 8 additions and 11 deletions

View File

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