diff --git a/hardware/emulator/wine/actions.py b/hardware/emulator/wine/actions.py new file mode 100644 index 0000000000..9ed4ab22fc --- /dev/null +++ b/hardware/emulator/wine/actions.py @@ -0,0 +1,78 @@ +# -*- coding: utf-8 -*- +# +# Licensed under the GNU General Public License, version 3. +# See the file http://www.gnu.org/licenses/gpl.txt + +from pisi.actionsapi import autotools +from pisi.actionsapi import pisitools +from pisi.actionsapi import shelltools +from pisi.actionsapi import get + +def setup(): + shelltools.system("install=wine.keyring") + # For 32bit machines: + # * It get compiled with the normal options below. The emul32 are ignored + # on 32bit machines. Nothing is added to options variable. + # + # For 64bit machines: + # * First we compile for 64bit with the option --enable-win64. These build + # files are stored in the normal "work" dir + # * In the second run (for emul32 buildType), the 32bit part is compiled + # with the spesific libdir and the --with-wine64 options that is pointing + # to the 64bit files that was compiled in the first step (files in the work) + # + # More info can be obtained here: http://wiki.winehq.org/Wine64 + # shelltools.export("CPPFLAGS", "-D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=0") + + #shelltools.system("make -C ./wine-staging-%s/patches DESTDIR=$(pwd) install" %get.srcVERSION()) + pisitools.flags.add("-fno-omit-frame-pointer") + autotools.autoreconf("-vif") + options = "--without-capi \ + --with-curses \ + --without-hal \ + --without-gstreamer \ + --with-dbus \ + --with-opengl \ + --with-alsa \ + --with-x \ + --with-xattr \ + --prefix=/usr" + + if get.buildTYPE() == "emul32": + shelltools.export("PKG_CONFIG_PATH", "/usr/lib32/pkgconfig") + options += " --with-wine64=%s/work/wine-%s/build-wine \ + --libdir=/usr/lib32 \ + " % (get.pkgDIR(), get.srcVERSION()) + + shelltools.system("mkdir build-wine") + shelltools.cd("build-wine") + shelltools.system(". ../configure %s" %options) + + elif get.ARCH() == "x86_64": + options += " --enable-win64 \ + --libdir=/usr/lib \ + " + shelltools.system("mkdir build-wine") + shelltools.cd("build-wine") + shelltools.system(". ../configure %s" %options) + + + +def build(): + shelltools.cd("build-wine") + autotools.make() + +def install(): + # We need especially specify libdir and dlldir prefixes. Otherwise the + # 32bit parts overwrite the 64bit files under /usr/lib + + shelltools.cd("build-wine") + + if get.buildTYPE() == "emul32": + autotools.install("UPDATE_DESKTOP_DATABASE=/bin/true libdir=%s/usr/lib32 dlldir=%s/usr/lib32/wine" % (get.installDIR(), get.installDIR())) + else: + autotools.install("UPDATE_DESKTOP_DATABASE=/bin/true libdir=%s/usr/lib dlldir=%s/usr/lib/wine" % (get.installDIR(), get.installDIR())) + + shelltools.cd("..") + + pisitools.dodoc("ANNOUNCE", "AUTHORS", "COPYING.LIB", "LICENSE*", "README", "documentation/README.*") diff --git a/hardware/emulator/wine/pspec.xml b/hardware/emulator/wine/pspec.xml new file mode 100644 index 0000000000..941061b844 --- /dev/null +++ b/hardware/emulator/wine/pspec.xml @@ -0,0 +1,272 @@ + + + + + wine + http://www.winehq.org/ + + PisiLinux Community + admins@pisilinux.org + + i686 + LGPLv2.1 + app:console + WINE Is Not An Emulator, which lets you run Microsoft Windows applications + Wine allows running Windows 3.*, Windows 95/98 and Windows NT programs on a i386 (or compatible) machine running X11. It is still alpha level code; don't expect everything to work. + https://dl.winehq.org/wine/source/1.9/wine-1.9.13.tar.bz2 + + lcms2-devel + libao-devel + libSM-devel + mpg123-devel + openal-devel + libXext-devel + libxslt-32bit + mesa-glu-devel + alsa-lib-devel + gstreamer-devel + openldap-client + libgphoto2-devel + pulseaudio-libs-devel + gst-plugins-base-devel + + + cups-devel + gnutls-devel + libXcursor-devel + libXi-devel + libXrandr-devel + libXxf86vm-devel + sane-backends-devel + unixODBC-devel + + + dbus-devel + fontconfig-devel + gsm-devel + libjpeg-turbo-devel + libXcomposite-devel + libXinerama-devel + libxslt-devel + tiff-devel + giflib-devel + v4l-utils + libpng + libtevent-devel + + + jack-audio-connection-kit-devel + + + fontforge + libpcap-devel + util-linux + ncurses-devel + + + + + wine-1.9.3-gcc-5_3_0-disable-force-alignment.patch + gcc_erorr.patch + + + + + + + + wine + app:gui + + lcms2 + libX11 + libSM + mpg123 + openal + libXext + mesa-glu + alsa-lib + gstreamer + libgphoto2 + libXcomposite + openldap-client + pulseaudio-libs + gst-plugins-base + libjpeg-turbo + libtevent + p11-kit + libxml2 + giflib + ncurses + + cups + gnutls + libXcursor + libXi + libXrandr + libXxf86vm + sane-backends + unixODBC + + + cabextract + libpcap + + + /etc/xdg + /usr/bin + /usr/lib + /usr/share/applications + /usr/share/desktop-directories + /usr/share/wine + /usr/share/locale + /usr/share/doc + /usr/share/man + + + + winetricks + + wisotool + + menu/wine.menu + menu/Wine.directory + + menu/taskmgr.desktop + menu/uninstaller.desktop + menu/winecfg.desktop + menu/winefile.desktop + menu/winetricks.desktop + menu/wine-mime-msi.desktop + menu/wine-oleview.desktop + menu/wine-winemine.desktop + + + + + wine-devel + Wine development environment + + wine + + + /usr/bin/function_grep.pl + /usr/bin/widl + /usr/bin/winebuild + /usr/bin/winecpp + /usr/bin/wineg++ + /usr/bin/winegcc + /usr/bin/winemaker + /usr/bin/wmc + /usr/bin/wrc + /usr/include/wine + /usr/share/aclocal + /usr/share/man/man1/widl.1 + /usr/share/man/man1/winebuild.1 + /usr/share/man/man1/winecpp.1 + /usr/share/man/man1/wineg++.1 + /usr/share/man/man1/winegcc.1 + /usr/share/man/man1/winemaker.1 + /usr/share/man/man1/wmc.1 + /usr/share/man/man1/wrc.1 + + + + + + winetricks + winetricks is a helper script to download and install various redistributable runtime libraries needed to run some programs in Wine. + + /usr/bin/winetricks + /usr/share/applications/winetricks.desktop + + + + + wine-32bit + emul32 + 32-bit shared libraries for wine + emul32 + + zlib-32bit + glib2-32bit + lcms2-32bit + libSM-32bit + p11-kit-32bit + giflib-32bit + libpng-32bit + libv4l-32bit + libX11-32bit + mpg123-32bit + openal-32bit + libXext-32bit + libxml2-32bit + alsa-lib-32bit + mesa-glu-32bit + openldap-32bit + ncurses-32bit + libXrandr-32bit + libXdamage-32bit + libXxf86vm-32bit + fontconfig-32bit + libXcursor-32bit + libXxf86dga-32bit + gstreamer-32bit + libXcomposite-32bit + pulseaudio-libs-32bit + gst-plugins-base-32bit + + + zlib-32bit + lcms2-32bit + libSM-32bit + libX11-32bit + mpg123-32bit + openal-32bit + libXext-32bit + libxml2-32bit + alsa-lib-32bit + mesa-glu-32bit + openldap-32bit + gsm-32bit + cups-32bit + tiff-32bit + libXi-32bit + gnutls-32bit + libpng-32bit + ncurses-32bit + openssl-32bit + p11-kit-32bit + giflib-32bit + alsa-lib-32bit + libXrandr-32bit + gstreamer-32bit + fontconfig-32bit + libXcursor-32bit + libXdamage-32bit + libXxf86vm-32bit + libXxf86dga-32bit + libtool-ltdl-32bit + libXcomposite-32bit + libjpeg-turbo-32bit + pulseaudio-libs-32bit + + + /usr/lib32/libwine.so* + /usr/lib32/wine + + + + + + 2016-07-02 + 1.9.13 + First release + Ergün Salman + poyraz76@pisilinux.org + + +