libpwquality: unbreak cross and simplify.
This commit is contained in:
parent
518882a7a6
commit
c853ce5fb5
@ -4,7 +4,7 @@ version=1.4.2
|
||||
revision=2
|
||||
build_style=gnu-configure
|
||||
configure_args="--disable-static --enable-pam --with-securedir=/usr/lib/security"
|
||||
hostmakedepends="libtool automake gettext-devel"
|
||||
hostmakedepends="libtool automake gettext-devel python3-devel"
|
||||
makedepends="cracklib-devel pam-devel python3-devel"
|
||||
conf_files="/etc/security/pwquality.conf"
|
||||
short_desc="Library for password quality checking and generating random passwords"
|
||||
@ -15,14 +15,11 @@ changelog="https://raw.githubusercontent.com/libpwquality/libpwquality/master/NE
|
||||
distfiles="${homepage}/releases/download/libpwquality-${version}/libpwquality-${version}.tar.bz2"
|
||||
checksum=5263e09ee62269c092f790ac159112aed3e66826a795e3afec85fdeac4281c8e
|
||||
|
||||
if [ "$CROSS_BUILD" ]; then
|
||||
hostmakedepends+=" python3"
|
||||
CFLAGS+=" -I${XBPS_CROSS_BASE}/${py3_inc}"
|
||||
fi
|
||||
CFLAGS="-I${XBPS_CROSS_BASE}/${py3_inc}"
|
||||
|
||||
pre_configure() {
|
||||
autoreconf -fi
|
||||
vsed -i python/Makefile.am -e 's|CFLAGS=.*|LDSHARED="${CC} -pthread -shared" &|g'
|
||||
autoreconf -fi
|
||||
}
|
||||
|
||||
libpwquality-devel_package() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user