john: enable generic build for other archs.

This commit is contained in:
Christian Neukirchen 2014-08-28 15:15:13 +02:00
parent cef570e100
commit e780cc9e3a
1 changed files with 4 additions and 3 deletions

View File

@ -13,14 +13,13 @@ license="GPL-2"
homepage="http://www.openwall.com/john/"
distfiles="$homepage/g/$pkgname-${version}-jumbo-${_jumbover}.tar.bz2"
checksum=4007aec40d2fedb1ce3287c62f23f8a1a8b8029d22cd3cbc60bb1a42f56c1a7f
only_for_archs="i686 x86_64"
nocross=yes
do_configure() {
sed -i 's|CFLAGS = -c -Wall -O2|CFLAGS += -c -Wall -DJOHN_SYSTEMWIDE=1|' src/Makefile
sed -i 's|^LDFLAGS =\(.*\)|LDFLAGS +=\1 -lm|' src/Makefile
sed -i 's|-m486||g' src/Makefile
sed -i 's|-msse2||g' src/Makefile
sed -i '/OMPFLAGS/s|-msse2||g' src/Makefile
sed -i 's|#OMPFLAGS = -fopenmp|OMPFLAGS = -fopenmp|' src/Makefile
sed -i 's|des_|DES_|g' src/KRB4*.c
}
@ -29,6 +28,8 @@ do_build() {
make ${makejobs} -C src linux-x86-64
elif [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
make ${makejobs} -C src linux-x86-mmx
else
make ${makejobs} -C src generic
fi
}
do_install() {