aboutsummaryrefslogtreecommitdiffstats
path: root/community/wine
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-10-06 22:28:32 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2015-10-06 22:31:05 +0200
commitdccc01ad9700ee520d3a2945d49d905a445273e0 (patch)
treed5263f8021ae2a83fa87249663c580cffec8e227 /community/wine
parentca9f3129c9a36dd3fc74dc564ea59d0482febe22 (diff)
downloadaports-dccc01ad9700ee520d3a2945d49d905a445273e0.tar.bz2
aports-dccc01ad9700ee520d3a2945d49d905a445273e0.tar.xz
community/wine: move from main
Diffstat (limited to 'community/wine')
-rw-r--r--community/wine/APKBUILD81
-rw-r--r--community/wine/musl-fix.patch21
2 files changed, 102 insertions, 0 deletions
diff --git a/community/wine/APKBUILD b/community/wine/APKBUILD
new file mode 100644
index 0000000000..0fa1f8f297
--- /dev/null
+++ b/community/wine/APKBUILD
@@ -0,0 +1,81 @@
+# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
+# Contributor: Łukasz Jendrysik <scadu@yandex.com>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=wine
+pkgver=1.7.52
+_ver=${pkgver/_/-}
+pkgrel=0
+pkgdesc="A compatibility layer for running Windows programs"
+url="http://www.winehq.com"
+arch="x86 x86_64"
+license="LGPL2+"
+subpackages="$pkgname-dev $pkgname-doc"
+makedepends="fontconfig-dev openldap-dev libxslt-dev libxxf86dga-dev
+ libxcursor-dev libxrandr-dev libxdamage-dev mesa-dev flex bison
+ libpng-dev libjpeg-turbo-dev freetype-dev ncurses-dev openssl-dev
+ libxcomposite-dev libxrender-dev libxinerama-dev zlib-dev
+ cups-dev alsa-lib-dev lcms-dev libxml2-dev
+ gstreamer0.10-dev gst-plugins-base0.10-dev paxmark dbus-dev libxi-dev
+ gnutls-dev tiff-dev v4l-utils-dev udisks2-dev autoconf automake"
+source="http://downloads.sourceforge.net/project/wine/Source/wine-$_ver.tar.bz2
+ musl-fix.patch"
+
+_builddir="$srcdir"/$pkgname-$_ver
+prepare() {
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+ sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in \
+ || return 1
+ sed -i '/^MimeType/d' tools/wine.desktop || return 1
+ aclocal && autoheader && autoreconf || return 1
+}
+
+build() {
+ cd "$_builddir"
+
+ case "$CARCH" in
+ x86_64) _win64=--enable-win64;;
+ esac
+
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --libdir=/usr/lib \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --with-dbus \
+ --with-x \
+ $_win64 \
+ || return 1
+ make
+}
+
+package() {
+ cd "$_builddir"
+ make -j1 \
+ prefix="$pkgdir"/usr \
+ libdir="$pkgdir"/usr/lib \
+ dlldir="$pkgdir"/usr/lib/wine \
+ install || return 1
+ mkdir -p "$pkgdir"/etc/wine
+
+ case "$CARCH" in
+ x86_64) _wine="wine64";;
+ *) _wine="wine";;
+ esac
+
+ paxmark -psmre "$pkgdir"/usr/bin/$_wine-preloader \
+ "$pkgdir"/usr/bin/$_wine
+}
+
+md5sums="70ecd94e17394446ed28ee21282e3e4c wine-1.7.52.tar.bz2
+80c4e60c14a055b070e87338f22c6a0f musl-fix.patch"
+sha256sums="0773b32a0c358323db4c383ceb1e9e28d5d4ed4ea37570af2bcb41fecf0d554b wine-1.7.52.tar.bz2
+28059ac713a3636657267b9238ac9ca28416d7a3d6dbac142ed68dcbf460d88b musl-fix.patch"
+sha512sums="834a77553d1352840c747ab5dc3e582b15da4ea65f16f9d58d0cc8afb460b4a0fded859929331dd32d9f4f66ab14bb890cf239d0a283bf9ffd92b48f9d1687de wine-1.7.52.tar.bz2
+6cbbaa561db4ea2048e1c5db3b66dddea554d8e2aa120e8615403a4891f1bd08fcd8c273ccb3fc6a824dac2fb53165237a1f4111d86cfee1de4a18fa7262ea39 musl-fix.patch"
diff --git a/community/wine/musl-fix.patch b/community/wine/musl-fix.patch
new file mode 100644
index 0000000000..0176c7921f
--- /dev/null
+++ b/community/wine/musl-fix.patch
@@ -0,0 +1,21 @@
+--- wine-1.7.8.orig/server/file.h
++++ wine-1.7.8/server/file.h
+@@ -21,6 +21,7 @@
+ #ifndef __WINE_SERVER_FILE_H
+ #define __WINE_SERVER_FILE_H
+
++#include <fcntl.h>
+ #include "object.h"
+
+ struct fd;
+--- ./dlls/ws2_32/socket.c.orig
++++ ./dlls/ws2_32/socket.c
+@@ -100,7 +100,7 @@
+
+ #ifdef HAVE_NETIPX_IPX_H
+ # include <netipx/ipx.h>
+-#elif defined(HAVE_LINUX_IPX_H)
++#elif defined(HAVE_LINUX_IPX_H) && defined(__GLIBC__)
+ # ifdef HAVE_ASM_TYPES_H
+ # include <asm/types.h>
+ # endif