2006-02-23 16:26:10 +01:00
|
|
|
# Description: WINE - Implementation of Windows DLL's and core.
|
|
|
|
# URL: http://www.winehq.com/
|
2014-11-10 13:25:50 +01:00
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2006-09-27 19:54:33 +02:00
|
|
|
# Packager: Daniel Walpole, daniel at walpole dot id dot au
|
2016-02-25 09:23:02 +01:00
|
|
|
# Depends on:fontconfig-32 freeglut-32 xorg-libxcomposite-32 xorg-libxcursor-32 xorg-libxinerama-32 xorg-libxrandr-32 xorg-libxxf86dga-32 alsa-lib-32 libpng-32 libjpeg-turbo-32 prelink gnutls-32 gcc48
|
2016-04-03 03:59:26 +02:00
|
|
|
# Optional: gcc48-ccache-bindings
|
2006-02-23 16:26:10 +01:00
|
|
|
|
|
|
|
name=wine
|
2016-04-03 02:25:32 +02:00
|
|
|
version=1.9.7
|
2015-03-21 03:55:50 +01:00
|
|
|
release=1
|
2016-03-08 08:00:01 +01:00
|
|
|
source=(http://dl.winehq.org/wine/source/1.9/$name-$version.tar.bz2
|
2016-02-25 09:23:02 +01:00
|
|
|
http://dl.winehq.org/wine/wine-gecko/2.44/wine_gecko-2.44-x86.msi
|
|
|
|
http://dl.winehq.org/wine/wine-gecko/2.44/wine_gecko-2.44-x86_64.msi
|
2016-03-26 02:33:39 +01:00
|
|
|
http://dl.winehq.org/wine/wine-mono/4.6.0/wine-mono-4.6.0.msi)
|
2006-02-23 16:26:10 +01:00
|
|
|
|
|
|
|
build() {
|
2012-11-22 19:50:35 +01:00
|
|
|
install -d wine32 wine64
|
2011-10-17 13:12:25 +02:00
|
|
|
|
2016-01-12 01:11:11 +01:00
|
|
|
export CPPFLAGS="${CPPFLAGS/-D_FORTIFY_SOURCE=2/} -D_FORTIFY_SOURCE=0"
|
2016-03-08 08:00:01 +01:00
|
|
|
|
|
|
|
# https://bugs.archlinux.org/task/48054
|
|
|
|
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69140
|
2016-02-25 09:23:02 +01:00
|
|
|
export CC='gcc-4.8' CXX='g++-4.8'
|
2016-01-12 01:11:11 +01:00
|
|
|
|
2012-11-22 19:50:35 +01:00
|
|
|
cd wine64
|
|
|
|
|
|
|
|
../$name-$version/configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--libdir=/usr/lib \
|
|
|
|
--enable-win64
|
|
|
|
|
|
|
|
make depend
|
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
|
|
|
|
cd ../wine32
|
|
|
|
CFLAGS="${CFLAGS} -m32"
|
|
|
|
CXXFLAGS="${CXXFLAGS} -m32"
|
|
|
|
LDFLAGS="${LDFLAGS} -m32"
|
|
|
|
export PKG_CONFIG_LIBDIR="/usr/lib32/pkgconfig"
|
|
|
|
|
|
|
|
../$name-$version/configure \
|
2006-10-28 22:24:50 +02:00
|
|
|
--prefix=/usr \
|
2012-11-22 19:50:35 +01:00
|
|
|
--libdir=/usr/lib32 \
|
|
|
|
--x-includes=/usr/include/X11 \
|
|
|
|
--x-libraries=/usr/lib32 \
|
|
|
|
--cache-file=config.cache \
|
|
|
|
--with-wine64=../wine64
|
2011-10-17 13:12:25 +02:00
|
|
|
|
2006-02-23 16:26:10 +01:00
|
|
|
make depend
|
|
|
|
make
|
2012-11-22 19:50:35 +01:00
|
|
|
make DESTDIR=$PKG install
|
2012-10-28 14:24:01 +01:00
|
|
|
|
|
|
|
install -d $PKG/usr/share/wine/gecko
|
|
|
|
install -d $PKG/usr/share/wine/mono
|
|
|
|
|
2012-11-22 19:50:35 +01:00
|
|
|
install -t $PKG/usr/share/wine/gecko/ \
|
2016-02-25 09:23:02 +01:00
|
|
|
$SRC/wine_gecko-2.44-x86.msi \
|
|
|
|
$SRC/wine_gecko-2.44-x86_64.msi
|
2012-11-22 19:50:35 +01:00
|
|
|
|
2016-03-08 08:00:01 +01:00
|
|
|
install $SRC/wine-mono-4.6.0.msi $PKG/usr/share/wine/mono/
|
2012-10-28 14:24:01 +01:00
|
|
|
|
2015-12-20 10:28:24 +01:00
|
|
|
rm -r $PKG/usr/share/man/??.UTF-8
|
2006-02-23 16:26:10 +01:00
|
|
|
}
|