From 0446bd48edefbc28dc7a920b4e7ef85a433a2255 Mon Sep 17 00:00:00 2001 From: Alexpux Date: Sat, 25 Jan 2014 16:11:27 +0400 Subject: [PATCH] wined3d: Fix 64bit builds. --- mingw-w64-wined3d/PKGBUILD | 130 ++++++++++++++++++------------------- 1 file changed, 65 insertions(+), 65 deletions(-) diff --git a/mingw-w64-wined3d/PKGBUILD b/mingw-w64-wined3d/PKGBUILD index 6fc728a60f..815d4da9e7 100644 --- a/mingw-w64-wined3d/PKGBUILD +++ b/mingw-w64-wined3d/PKGBUILD @@ -16,73 +16,73 @@ options=('staticlibs' 'strip') source=(http://prdownloads.sourceforge.net/$_realname/$_realname-$pkgver.tar.bz2) md5sums=('e0e55105e5c7ba5277023bd54ac60d44') -case ${MINGW_CHOST} in - i686*) - _mach=x86 - ;; - x86_64*) - _mach=x86_64 - ;; -esac - build() { - cd ${srcdir}/$_realname-$pkgver - ./configure \ - --prefix=${MINGW_PREFIX} \ - --build=${MINGW_CHOST} \ - --host=${MINGW_CHOST} \ - --target=${MINGW_CHOST} \ - --disable-tests \ - --without-alsa \ - --without-capi \ - --without-coreaudio \ - --without-cups \ - --without-curses \ - --without-dbus \ - --without-fontconfig \ - --without-freetype \ - --without-gettext \ - --without-gphoto \ - --with-glu \ - --without-gnutls \ - --without-gsm \ - --without-gstreamer \ - --without-hal \ - --without-jpeg \ - --without-ldap \ - --without-mpg123 \ - --without-netapi \ - --without-openal \ - --without-opencl \ - --with-opengl \ - --without-osmesa \ - --without-oss \ - --without-png \ - --with-pthread \ - --without-sane \ - --without-tiff \ - --without-v4l \ - --without-xcomposite \ - --without-xcursor \ - --without-xinerama \ - --without-xinput \ - --without-xinput2 \ - --without-xml \ - --without-xrandr \ - --without-xrender \ - --without-xshape \ - --without-xshm \ - --without-xslt \ - --without-xxf86vm \ - --without-zlib \ - --without-x \ - CFLAGS="-O2 -DUSE_WIN32_OPENGL -DWINE_NOWINSOCK" - make LN_S='ln -s' dlls/d3d8 dlls/d3d9 dlls/d3d10 dlls/d3d10core dlls/dxgi dlls/wined3d + case ${MINGW_CHOST} in + i686*) + _extra= + ;; + x86_64*) + _extra="--enable-win64" + ;; + esac + cd ${srcdir}/$_realname-$pkgver + ./configure \ + --prefix=${MINGW_PREFIX} \ + --build=${MINGW_CHOST} \ + --host=${MINGW_CHOST} \ + --target=${MINGW_CHOST} \ + --disable-tests \ + --without-alsa \ + --without-capi \ + --without-coreaudio \ + --without-cups \ + --without-curses \ + --without-dbus \ + --without-fontconfig \ + --without-freetype \ + --without-gettext \ + --without-gphoto \ + --with-glu \ + --without-gnutls \ + --without-gsm \ + --without-gstreamer \ + --without-hal \ + --without-jpeg \ + --without-ldap \ + --without-mpg123 \ + --without-netapi \ + --without-openal \ + --without-opencl \ + --with-opengl \ + --without-osmesa \ + --without-oss \ + --without-png \ + --with-pthread \ + --without-sane \ + --without-tiff \ + --without-v4l \ + --without-xcomposite \ + --without-xcursor \ + --without-xinerama \ + --without-xinput \ + --without-xinput2 \ + --without-xml \ + --without-xrandr \ + --without-xrender \ + --without-xshape \ + --without-xshm \ + --without-xslt \ + --without-xxf86vm \ + --without-zlib \ + --without-x \ + $_extra \ + CFLAGS="-O2 -DUSE_WIN32_OPENGL -DWINE_NOWINSOCK" + make LN_S='ln -s' dlls/d3d8 dlls/d3d9 dlls/d3d10 dlls/d3d10core dlls/dxgi dlls/wined3d } package() { - cd ${srcdir}/$_realname-$pkgver - mkdir -p ${pkgdir}${MINGW_PREFIX}/bin - local _dll_files=( $(find ${srcdir}/$_realname-$pkgver -type f -name "*.dll") ) - cp -f ${_dll_files[@]} ${pkgdir}${MINGW_PREFIX}/bin/ + cd ${srcdir}/$_realname-$pkgver + mkdir -p ${pkgdir}${MINGW_PREFIX}/bin + local _dll_files=( $(find ${srcdir}/$_realname-$pkgver -type f -name "*.dll") ) + cp -f ${_dll_files[@]} ${pkgdir}${MINGW_PREFIX}/bin/ }