Exemplo n.º 1
0
def setup():
    # 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

    autotools.autoreconf("-vif")
    options = "--without-capi \
               --with-curses \
               --without-esd \
               --with-opengl \
               --with-pulse \
               --with-x"

    if get.buildTYPE() == "emul32":
        options += (
            "--libdir=/usr/lib32 \
                    --with-wine64=%s/work/%s"
            % (get.pkgDIR(), get.srcDIR())
        )
    elif get.ARCH() == "x86_64":
        options += " --enable-win64"

    autotools.configure(options)
Exemplo n.º 2
0
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", "-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0")
    autotools.autoreconf("-vif")
    options = "--without-capi \
               --with-curses \
               --without-hal \
               --without-gstreamer \
               --with-dbus \
               --with-opengl \
               --with-alsa \
               --with-x"

    if get.buildTYPE() == "emul32":
        options += " --with-wine64=%s/work/wine-%s" % (get.pkgDIR(), get.srcVERSION())
    elif get.ARCH() == "x86_64":
        options += " --enable-win64"

    autotools.configure(options)
Exemplo n.º 3
0
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")
    autotools.autoreconf("-vif")
    options = "--without-capi \
               --with-curses \
               --without-hal \
               --without-gstreamer \
               --with-dbus \
               --with-alsa \
               --with-x"

    if get.buildTYPE() == "emul32":
        options += " --with-wine64=%s/work/wine-%s" % (get.pkgDIR(),
                                                       get.srcVERSION())
    elif get.ARCH() == "x86_64":
        options += " --enable-win64"

    autotools.configure(options)
Exemplo n.º 4
0
def setup():
    # 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

    autotools.autoreconf("-vif")
    options = "--without-capi \
               --with-curses \
               --without-esd \
               --with-opengl \
               --with-pulse \
               --with-x"

    if get.buildTYPE() == "emul32":
        options += "--libdir=/usr/lib32 \
                    --with-wine64=%s/work/%s" % (get.pkgDIR(), get.srcDIR())
    elif get.ARCH() == "x86_64":
        options += " --enable-win64"

    autotools.configure(options)
Exemplo n.º 5
0
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(
        "sed -i -e 's!^loader server: libs/port libs/wine tools.*!& include!' Makefile.in"
    )
    shelltools.system(
        "make -C ./wine-staging-%s/patches DESTDIR=$(pwd) install" %
        get.srcVERSION())
    shelltools.system("sed 's|OpenCL/opencl.h|CL/opencl.h|g' -i configure*")

    autotools.autoreconf("-vif")
    options = "--without-capi \
               --with-curses \
               --without-hal \
               --without-gstreamer \
               --with-dbus \
               --with-opengl \
               --with-opencl \
               --with-alsa \
               --with-x \
               --with-xattr \
               --prefix=/usr"

    if get.buildTYPE() == "emul32":

        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)

    autotools.configure(options)
Exemplo n.º 6
0
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", "-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0")
    #shelltools.system("make -C ./wine-staging-%s/patches DESTDIR=$(pwd) install" %get.srcVERSION())
    #pisitools.flags.add("-fno-omit-frame-pointer")
    #shelltools.system("sed -i 's|OpenCL/opencl.h|CL/opencl.h|g'  configure*")

    shelltools.cd("wine-staging-%s" % get.srcVERSION())
    shelltools.system("./patches/patchinstall.sh DESTDIR=.. --all")
    shelltools.cd("..")

    autotools.autoreconf("-vif")
    options = "--without-capi \
               --without-oss \
               --without-opencl \
               --without-gstreamer \
               --without-hal \
               --with-dbus \
               --with-opengl \
               --with-alsa \
               --with-x \
               "

    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)
Exemplo n.º 7
0
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("sed -i -e 's!^loader server: libs/port libs/wine tools.*!& include!' Makefile.in")    
    shelltools.system("make -C ./wine-staging-%s/patches DESTDIR=$(pwd) install" %get.srcVERSION())    
    shelltools.system("sed 's|OpenCL/opencl.h|CL/opencl.h|g' -i configure*")
    
    autotools.autoreconf("-vif")
    options = "--without-capi \
               --with-curses \
               --without-hal \
               --without-gstreamer \
               --with-dbus \
               --with-opengl \
               --with-opencl \
               --with-alsa \
               --with-x \
               --with-xattr \
               --prefix=/usr"

    if get.buildTYPE() == "emul32":
             
        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)

    autotools.configure(options)
Exemplo n.º 8
0
def install():
    shelltools.system("rm -rf dist/install/etc/hotplug")
    shelltools.system("chmod -R a+rX dist/install")
    shelltools.system("((cd dist; tar -cf - *) | tar --no-same-owner -C %s/ -xf -)" % get.pkgDIR())