* fix open-cv for x86_64

This commit is contained in:
Phil Miller 2010-06-03 19:55:21 +00:00
parent b49f1c2270
commit 6d2daa12f2

View File

@ -18,7 +18,11 @@ md5sums=('1d71584fb4e04214c0085108f95e24c8'
build() {
# fix build
export CXXFLAGS="-march=i686 -mtune=generic -O2 -pipe -D__STDC_CONSTANT_MACROS"
if [ "${arch}" "i686" ]; then
export CXXFLAGS="-march=i686 -mtune=generic -O2 -pipe -D__STDC_CONSTANT_MACROS"
else
export CXXFLAGS="-march=x86_64 -mtune=generic -O2 -pipe -D__STDC_CONSTANT_MACROS"
fi
cd ${srcdir}/OpenCV-${pkgver}
patch -p1 -i ${srcdir}/libpng-1.4.patch || return 1