Move MinGW to extension
parent
1c6a0de4f6
commit
05100a09a9
|
@ -1,4 +1,13 @@
|
||||||
name: mingw
|
build-extension: true
|
||||||
|
id: de.marko10_000.winebarrels.Platform.ExtensionsV1.MinGW
|
||||||
|
branch: "v1"
|
||||||
|
|
||||||
|
sdk: de.marko10_000.winebarrels.Sdk
|
||||||
|
runtime: de.marko10_000.winebarrels.Platform
|
||||||
|
runtime-version: "v1.0"
|
||||||
|
|
||||||
|
build-options:
|
||||||
|
prefix: /usr/wine_extensions/v1/MinGW
|
||||||
modules:
|
modules:
|
||||||
- name: mingw-binutils-32bit
|
- name: mingw-binutils-32bit
|
||||||
sources:
|
sources:
|
||||||
|
@ -18,16 +27,8 @@ modules:
|
||||||
- --enable-static-pie
|
- --enable-static-pie
|
||||||
- --enable-threads
|
- --enable-threads
|
||||||
builddir: true
|
builddir: true
|
||||||
build-options:
|
cleanup:
|
||||||
make-install-args:
|
- /share
|
||||||
- DESTDIR=/usr/tmp_binutils
|
|
||||||
- install
|
|
||||||
post-install:
|
|
||||||
- rm -rf /usr/tmp_binutils/usr/share
|
|
||||||
- cp -raP --remove-destination /usr/tmp_binutils/usr /
|
|
||||||
- rm -rfv /usr/tmp_binutils
|
|
||||||
cleanup-platform:
|
|
||||||
- "*"
|
|
||||||
- name: mingw-headers-32bit
|
- name: mingw-headers-32bit
|
||||||
sources:
|
sources:
|
||||||
- type: archive
|
- type: archive
|
||||||
|
@ -35,22 +36,19 @@ modules:
|
||||||
sha256: 805e11101e26d7897fce7d49cbb140d7bac15f3e085a91e0001e80b2adaf48f0
|
sha256: 805e11101e26d7897fce7d49cbb140d7bac15f3e085a91e0001e80b2adaf48f0
|
||||||
buildsystem: simple
|
buildsystem: simple
|
||||||
build-commands:
|
build-commands:
|
||||||
|
- ls -la /usr/wine_extensions/v1/MinGW
|
||||||
- mkdir builds
|
- mkdir builds
|
||||||
- cd builds && ../mingw-w64-headers/configure
|
- cd builds && ../mingw-w64-headers/configure
|
||||||
--host=i686-w64-mingw32
|
--host=i686-w64-mingw32
|
||||||
--enable-sdk=all
|
--enable-sdk=all
|
||||||
--enable-secure-api
|
--enable-secure-api
|
||||||
--prefix=/usr/i686-w64-mingw32
|
--prefix=/usr/wine_extensions/v1/MinGW/i686-w64-mingw32
|
||||||
- cd builds && make DESTDIR=/usr/tmp_mingw install
|
- cd builds && make install
|
||||||
- echo "" > /usr/tmp_mingw/usr/i686-w64-mingw32/include/pthread_signal.h
|
- echo "" > /usr/wine_extensions/v1/MinGW/i686-w64-mingw32/include/pthread_signal.h
|
||||||
- echo "" > /usr/tmp_mingw/usr/i686-w64-mingw32/include/pthread_time.h
|
- echo "" > /usr/wine_extensions/v1/MinGW/i686-w64-mingw32/include/pthread_time.h
|
||||||
- echo "" > /usr/tmp_mingw/usr/i686-w64-mingw32/include/pthread_unistd.h
|
- echo "" > /usr/wine_extensions/v1/MinGW/i686-w64-mingw32/include/pthread_unistd.h
|
||||||
post-install:
|
cleanup:
|
||||||
- rm -rf /usr/tmp_mingw/usr/share
|
- /share
|
||||||
- cp -rP --remove-destination /usr/tmp_mingw/usr /
|
|
||||||
- rm -rfv /usr/tmp_mingw
|
|
||||||
cleanup-platform:
|
|
||||||
- "*"
|
|
||||||
- name: mingw-gcc-pass1-32bit
|
- name: mingw-gcc-pass1-32bit
|
||||||
sources:
|
sources:
|
||||||
- type: archive
|
- type: archive
|
||||||
|
@ -70,10 +68,9 @@ modules:
|
||||||
dest: mpc
|
dest: mpc
|
||||||
- type: shell
|
- type: shell
|
||||||
commands:
|
commands:
|
||||||
- ln -s /usr/bin/cpp /lib/cpp
|
|
||||||
- sed -e '/m64=/s/lib64/lib/' -i.orig gcc/config/i386/t-linux64
|
- sed -e '/m64=/s/lib64/lib/' -i.orig gcc/config/i386/t-linux64
|
||||||
config-opts: &gcc32
|
config-opts: &gcc32
|
||||||
- --libexecdir=/usr/lib
|
- --libexecdir=/usr/wine_extensions/v1/MinGW/lib
|
||||||
- --target=i686-w64-mingw32
|
- --target=i686-w64-mingw32
|
||||||
- --disable-dw2-exceptions
|
- --disable-dw2-exceptions
|
||||||
- --disable-multilib
|
- --disable-multilib
|
||||||
|
@ -94,12 +91,9 @@ modules:
|
||||||
make-args:
|
make-args:
|
||||||
- all-gcc
|
- all-gcc
|
||||||
post-install:
|
post-install:
|
||||||
- make DESTDIR=/usr/tmp_gcc install-gcc
|
- make install-gcc
|
||||||
- rm -rf /usr/tmp_gcc/usr/share
|
cleanup:
|
||||||
- cp -raP --remove-destination /usr/tmp_gcc/usr /
|
- /share
|
||||||
- rm -rfv /usr/tmp_gcc /lib/cpp
|
|
||||||
cleanup-platform:
|
|
||||||
- "*"
|
|
||||||
- name: mingw-crt-32bit
|
- name: mingw-crt-32bit
|
||||||
sources:
|
sources:
|
||||||
- type: archive
|
- type: archive
|
||||||
|
@ -112,22 +106,17 @@ modules:
|
||||||
- --enable-shared
|
- --enable-shared
|
||||||
- --enable-static
|
- --enable-static
|
||||||
- --enable-wildcard
|
- --enable-wildcard
|
||||||
- --prefix=/usr/i686-w64-mingw32
|
- --prefix=/usr/wine_extensions/v1/MinGW/i686-w64-mingw32
|
||||||
- CFLAGS=-fno-stack-protector
|
- CFLAGS=-fno-stack-protector
|
||||||
- CPPFLAGS=-fno-stack-protector
|
- CPPFLAGS=-fno-stack-protector
|
||||||
#- LDFLAGS=-fstack-protector-strong
|
#- LDFLAGS=-fstack-protector-strong
|
||||||
#- ARFLAGS=-fstack-protector-strong
|
#- ARFLAGS=-fstack-protector-strong
|
||||||
builddir: true
|
builddir: true
|
||||||
build-options:
|
build-options:
|
||||||
make-install-args:
|
env:
|
||||||
- DESTDIR=/usr/tmp_mingw
|
PATH: "/usr/wine_extensions/v1/MinGW/bin:/usr/bin"
|
||||||
- install
|
cleanup:
|
||||||
post-install:
|
- /share
|
||||||
- rm -rf /usr/tmp_mingw/usr/share
|
|
||||||
- cp -raP --remove-destination /usr/tmp_mingw/usr /
|
|
||||||
- rm -rfv /usr/tmp_mingw
|
|
||||||
cleanup-platform:
|
|
||||||
- "*"
|
|
||||||
- name: mingw-gcc-32bit
|
- name: mingw-gcc-32bit
|
||||||
sources:
|
sources:
|
||||||
- type: archive
|
- type: archive
|
||||||
|
@ -147,21 +136,13 @@ modules:
|
||||||
dest: mpc
|
dest: mpc
|
||||||
- type: shell
|
- type: shell
|
||||||
commands:
|
commands:
|
||||||
- rm -rf /usr/tmp_gcc
|
|
||||||
- ln -s /usr/bin/cpp /lib/cpp
|
|
||||||
- sed -e '/m64=/s/lib64/lib/' -i.orig gcc/config/i386/t-linux64
|
- sed -e '/m64=/s/lib64/lib/' -i.orig gcc/config/i386/t-linux64
|
||||||
config-opts: *gcc32
|
config-opts: *gcc32
|
||||||
builddir: true
|
builddir: true
|
||||||
build-options:
|
|
||||||
make-install-args:
|
|
||||||
- DESTDIR=/usr/tmp_gcc
|
|
||||||
- install
|
|
||||||
post-install:
|
post-install:
|
||||||
- rm -rf /usr/tmp_gcc/usr/share
|
- rm -rfv /lib/cpp
|
||||||
- cp -rf /usr/tmp_gcc/usr /
|
cleanup:
|
||||||
- rm -rfv /usr/tmp_gcc /lib/cpp
|
- /share
|
||||||
cleanup-platform:
|
|
||||||
- "*"
|
|
||||||
- name: mingw-binutils-64bit
|
- name: mingw-binutils-64bit
|
||||||
sources:
|
sources:
|
||||||
- type: archive
|
- type: archive
|
||||||
|
@ -180,16 +161,8 @@ modules:
|
||||||
- --enable-static-pie
|
- --enable-static-pie
|
||||||
- --enable-threads
|
- --enable-threads
|
||||||
builddir: true
|
builddir: true
|
||||||
build-options:
|
cleanup:
|
||||||
make-install-args:
|
- /share
|
||||||
- DESTDIR=/usr/tmp_binutils
|
|
||||||
- install
|
|
||||||
post-install:
|
|
||||||
- rm -rf /usr/tmp_binutils/usr/share
|
|
||||||
- cp -raP --remove-destination /usr/tmp_binutils/usr /
|
|
||||||
- rm -rfv /usr/tmp_binutils
|
|
||||||
cleanup-platform:
|
|
||||||
- "*"
|
|
||||||
only-arches:
|
only-arches:
|
||||||
- x86_64
|
- x86_64
|
||||||
- name: mingw-headers-64bit
|
- name: mingw-headers-64bit
|
||||||
|
@ -204,14 +177,10 @@ modules:
|
||||||
--host=x86_64-w64-mingw32
|
--host=x86_64-w64-mingw32
|
||||||
--enable-sdk=all
|
--enable-sdk=all
|
||||||
--enable-secure-api
|
--enable-secure-api
|
||||||
--prefix=/usr/x86_64-w64-mingw32
|
--prefix=/usr/wine_extensions/v1/MinGW/x86_64-w64-mingw32
|
||||||
- cd builds && make DESTDIR=/usr/tmp_mingw install
|
- cd builds && make install
|
||||||
post-install:
|
cleanup:
|
||||||
- rm -rf /usr/tmp_mingw/usr/share
|
- /share
|
||||||
- cp -raP --remove-destination /usr/tmp_mingw/usr /
|
|
||||||
- rm -rfv /usr/tmp_mingw
|
|
||||||
cleanup-platform:
|
|
||||||
- "*"
|
|
||||||
only-arches:
|
only-arches:
|
||||||
- x86_64
|
- x86_64
|
||||||
- name: mingw-gcc-pass1-64bit
|
- name: mingw-gcc-pass1-64bit
|
||||||
|
@ -233,10 +202,9 @@ modules:
|
||||||
dest: mpc
|
dest: mpc
|
||||||
- type: shell
|
- type: shell
|
||||||
commands:
|
commands:
|
||||||
- ln -s /usr/bin/cpp /lib/cpp
|
|
||||||
- sed -e '/m64=/s/lib64/lib/' -i.orig gcc/config/i386/t-linux64
|
- sed -e '/m64=/s/lib64/lib/' -i.orig gcc/config/i386/t-linux64
|
||||||
config-opts: &gcc64
|
config-opts: &gcc64
|
||||||
- --libexecdir=/usr/lib
|
- --libexecdir=/usr/wine_extensions/v1/MinGW/lib
|
||||||
- --target=x86_64-w64-mingw32
|
- --target=x86_64-w64-mingw32
|
||||||
- --disable-dw2-exceptions
|
- --disable-dw2-exceptions
|
||||||
- --disable-multilib
|
- --disable-multilib
|
||||||
|
@ -257,12 +225,9 @@ modules:
|
||||||
make-args:
|
make-args:
|
||||||
- all-gcc
|
- all-gcc
|
||||||
post-install:
|
post-install:
|
||||||
- make DESTDIR=/usr/tmp_gcc install-gcc
|
- make install-gcc
|
||||||
- rm -rf /usr/tmp_gcc/usr/share
|
cleanup:
|
||||||
- cp -raP --remove-destination /usr/tmp_gcc/usr /
|
- /share
|
||||||
- rm -rfv /usr/tmp_gcc /lib/cpp
|
|
||||||
cleanup-platform:
|
|
||||||
- "*"
|
|
||||||
only-arches:
|
only-arches:
|
||||||
- x86_64
|
- x86_64
|
||||||
- name: mingw-crt-64bit
|
- name: mingw-crt-64bit
|
||||||
|
@ -277,24 +242,17 @@ modules:
|
||||||
- --enable-lib64
|
- --enable-lib64
|
||||||
- --enable-shared
|
- --enable-shared
|
||||||
- --enable-wildcard
|
- --enable-wildcard
|
||||||
- --prefix=/usr/x86_64-w64-mingw32
|
- --prefix=/usr/wine_extensions/v1/MinGW/x86_64-w64-mingw32
|
||||||
- CFLAGS=-fno-stack-protector
|
- CFLAGS=-fno-stack-protector
|
||||||
- CPPFLAGS=-fno-stack-protector
|
- CPPFLAGS=-fno-stack-protector
|
||||||
#- LDFLAGS=-fstack-protector-strong
|
#- LDFLAGS=-fstack-protector-strong
|
||||||
#- ARFLAGS=-fstack-protector-strong
|
#- ARFLAGS=-fstack-protector-strong
|
||||||
builddir: true
|
builddir: true
|
||||||
build-options:
|
build-options:
|
||||||
make-install-args:
|
|
||||||
- DESTDIR=/usr/tmp_mingw
|
|
||||||
- install
|
|
||||||
env:
|
env:
|
||||||
PATH: "/usr/tmp_gcc64/usr/bin:/usr/bin"
|
PATH: "/usr/wine_extensions/v1/MinGW/bin:/usr/bin"
|
||||||
post-install:
|
cleanup:
|
||||||
- rm -rf /usr/tmp_mingw/usr/share
|
- /share
|
||||||
- cp -rf /usr/tmp_mingw/usr /
|
|
||||||
- rm -rfv /usr/tmp_mingw
|
|
||||||
cleanup-platform:
|
|
||||||
- "*"
|
|
||||||
only-arches:
|
only-arches:
|
||||||
- x86_64
|
- x86_64
|
||||||
- name: mingw-gcc-64bit
|
- name: mingw-gcc-64bit
|
||||||
|
@ -316,19 +274,17 @@ modules:
|
||||||
dest: mpc
|
dest: mpc
|
||||||
- type: shell
|
- type: shell
|
||||||
commands:
|
commands:
|
||||||
- ln -s /usr/bin/cpp /lib/cpp
|
|
||||||
- sed -e '/m64=/s/lib64/lib/' -i.orig gcc/config/i386/t-linux64
|
- sed -e '/m64=/s/lib64/lib/' -i.orig gcc/config/i386/t-linux64
|
||||||
config-opts: *gcc64
|
config-opts: *gcc64
|
||||||
builddir: true
|
builddir: true
|
||||||
build-options:
|
cleanup:
|
||||||
make-install-args:
|
- /share
|
||||||
- DESTDIR=/usr/tmp_gcc
|
|
||||||
- install
|
|
||||||
post-install:
|
|
||||||
- rm -rf /usr/tmp_gcc/usr/share
|
|
||||||
- cp -raP --remove-destination /usr/tmp_gcc/usr /
|
|
||||||
- rm -rfv /usr/tmp_gcc /lib/cpp
|
|
||||||
cleanup-platform:
|
|
||||||
- "*"
|
|
||||||
only-arches:
|
only-arches:
|
||||||
- x86_64
|
- x86_64
|
||||||
|
- name: update_elf
|
||||||
|
sources:
|
||||||
|
- type: file
|
||||||
|
path: elf_compress.py
|
||||||
|
buildsystem: simple
|
||||||
|
build-commands:
|
||||||
|
- python3 elf_compress.py /usr/wine_extensions/v1/MinGW
|
|
@ -20,9 +20,9 @@ inherit-extensions:
|
||||||
- org.freedesktop.Platform.VAAPI.Intel
|
- org.freedesktop.Platform.VAAPI.Intel
|
||||||
|
|
||||||
add-extensions:
|
add-extensions:
|
||||||
de.marko10_000.winebarrels.Platform.ExtensionsV1_0:
|
de.marko10_000.winebarrels.Platform.ExtensionsV1:
|
||||||
directory: wine_extensions/v1.0
|
directory: wine_extensions/v1
|
||||||
version: "v1.0"
|
version: "v1"
|
||||||
subdirectories: true
|
subdirectories: true
|
||||||
autodelete: true
|
autodelete: true
|
||||||
no-autodownload: true
|
no-autodownload: true
|
||||||
|
|
|
@ -21,8 +21,8 @@ inherit-extensions:
|
||||||
- org.freedesktop.Platform.GL32
|
- org.freedesktop.Platform.GL32
|
||||||
|
|
||||||
add-extensions:
|
add-extensions:
|
||||||
de.marko10_000.winebarrels.Platform.ExtensionsV1_0:
|
de.marko10_000.winebarrels.Platform.ExtensionsV1:
|
||||||
directory: wine_extensions/v1.0
|
directory: wine_extensions/v1
|
||||||
version: "v1.0"
|
version: "v1.0"
|
||||||
subdirectories: true
|
subdirectories: true
|
||||||
autodelete: true
|
autodelete: true
|
||||||
|
|
|
@ -0,0 +1,23 @@
|
||||||
|
#! /usr/bin/evn python3
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
import os
|
||||||
|
import subprocess
|
||||||
|
import sys
|
||||||
|
|
||||||
|
def parse_path(path):
|
||||||
|
if os.path.islink(path):
|
||||||
|
return
|
||||||
|
elif os.path.isfile(path):
|
||||||
|
if open(path, "rb").read(4) == b"\x7FELF":
|
||||||
|
print("Compress: " + path)
|
||||||
|
subprocess.call(["cp", "-a", path, "tmp.so"])
|
||||||
|
subprocess.call(["strip", "--strip-debug", "tmp.so"])
|
||||||
|
subprocess.call(["cp", "-a", "tmp.so", path])
|
||||||
|
subprocess.call(["eu-elfcompress", "-vt", "gnu", path])
|
||||||
|
elif os.path.isdir(path):
|
||||||
|
for i in map(lambda x: os.path.join(path, x),
|
||||||
|
sorted(os.listdir(path))):
|
||||||
|
parse_path(i)
|
||||||
|
for i in sys.argv[1:]:
|
||||||
|
parse_path(i)
|
|
@ -1,7 +1,7 @@
|
||||||
name: platform-meta
|
name: platform-meta
|
||||||
buildsystem: simple
|
buildsystem: simple
|
||||||
build-commands:
|
build-commands:
|
||||||
- mkdir -p /usr/wine_extensions/v1.0
|
- mkdir -p /usr/wine_extensions/v1
|
||||||
modules:
|
modules:
|
||||||
- winetricks.yaml
|
- winetricks.yaml
|
||||||
- libglu.yaml
|
- libglu.yaml
|
||||||
|
|
|
@ -1,3 +1,2 @@
|
||||||
name: sdk-meta
|
name: sdk-meta
|
||||||
modules:
|
modules: []
|
||||||
- mingw.yaml
|
|
||||||
|
|
Loading…
Reference in New Issue