Skip to content

Commit 600507f

Browse files
authored
Add mame-essentials as package (#3)
* Add mame-essentials as package * cleanup * Remove a need for custom make.exe * Move to more reasonable location * fix * fix * override python so it is good in VS generated files
1 parent 412636d commit 600507f

File tree

8 files changed

+78
-0
lines changed

8 files changed

+78
-0
lines changed

mame-essentials/PKGBUILD

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
pkgname=mame-essentials
2+
pkgver=1.0
3+
pkgrel=0
4+
pkgdesc="MAME Essentials MSYS2 package"
5+
arch=('x86_64')
6+
depends=('make' 'wget' 'git' 'p7zip' 'mingw-w64-x86_64-gcc' 'mingw-w64-x86_64-python' 'mingw-w64-i686-gcc' 'mingw-w64-i686-python')
7+
url="https://github.com/mamedev/buildtools/"
8+
license=('none')
9+
options=('!strip')
10+
package() {
11+
cp -R "$srcdir/." "$pkgdir/."
12+
}

mame-essentials/README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# MAME Essentials package
2+
3+
Build with:
4+
5+
```
6+
makepkg -f -d
7+
```
8+
9+
options:
10+
f - is for force (to recreate if package file already exits)
11+
d - no dependency check (so no need to have deps already preinstalled)
12+
13+
14+
To use:
15+
16+
```
17+
pacman -U mame-essentials-1.0-0-x86_64.pkg.tar.zst
18+
```
19+
20+
Will install this package and all dependencies needed for user to have installed to be able to compile MAME.
21+
This can be installed on vanilla MSYS2 installation.
22+
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
gl=git log --oneline --all --graph --decorate $*
2+
ls=ls --color $*
3+
pwd=cd
4+
clear=cls
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@set CONFIG_ARCHITECTURE=x86
2+
@env.bat
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@set CONFIG_ARCHITECTURE=x64
2+
@env.bat
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
:: Find root dir
2+
@if not defined MSYS2_ROOT (
3+
for /f %%i in ("%~dp0\..\..") do @set MSYS2_ROOT=%%~fi
4+
)
5+
6+
:: Add aliases
7+
@doskey /macrofile="%MSYS2_ROOT%\opt\mamedev\aliases"
8+
9+
@set MINGW32=
10+
@set MINGW64=
11+
@set ADD_PATH=
12+
@set PATH=%windir%\System32;%windir%
13+
:: Enhance Path
14+
@if "%CONFIG_ARCHITECTURE%"=="x86" (
15+
@set MINGW32=/mingw32
16+
@set PYTHON_EXECUTABLE=/mingw32/bin/python.exe
17+
@set MINGW=%MSYS2_ROOT%\mingw32
18+
@set prompt=[MINGW32] $p$g
19+
) else (
20+
@set MINGW64=/mingw64
21+
@set PYTHON_EXECUTABLE=/mingw64/bin/python.exe
22+
@set MINGW=%MSYS2_ROOT%\mingw64
23+
@set prompt=[MINGW64] $p$g
24+
)
25+
@set MINGW_PATH=%MINGW%\bin
26+
27+
@set PATH=%ADD_PATH%;%MSYS2_ROOT%\opt\mamedev;%MINGW_PATH%;%MSYS2_ROOT%\usr\bin;%PATH%
28+
29+
@if not exist "%MSYS2_ROOT%\home" (
30+
@bash --login /dev/null
31+
)
59.5 KB
Binary file not shown.

mame-essentials/src/win32env.bat

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
@if not exist src (
2+
mkdir src
3+
)
4+
@cd src
5+
@cmd /k ..\opt\mamedev\env.bat

0 commit comments

Comments
 (0)