wip: packaging + scripts before archive into OpenKKnD
This commit is contained in:
parent
820813e24b
commit
769d779571
11 changed files with 177 additions and 7 deletions
8
packaging/cmake/linux.cmake
Normal file
8
packaging/cmake/linux.cmake
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
# Konfiguration für Linux (GCC/G++)
|
||||
set(CMAKE_C_STANDARD 11)
|
||||
set(CMAKE_C_STANDARD_REQUIRED ON)
|
||||
|
||||
# Hier könnten spezifische Compiler-Flags für Linux hinzugefügt werden, z.B. für spezifische Bibliotheken
|
||||
# set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -std=c11")
|
||||
|
||||
message(STATUS "Configured CMake for Linux (GCC)")
|
||||
9
packaging/cmake/macos.cmake
Normal file
9
packaging/cmake/macos.cmake
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
# Konfiguration für macOS (Clang)
|
||||
set(CMAKE_C_STANDARD 11)
|
||||
set(CMAKE_C_STANDARD_REQUIRED ON)
|
||||
|
||||
# Hier werden spezifische Compiler-Flags für macOS/Clang hinzugefügt.
|
||||
# z.B. für bestimmte Apple-APIs oder spezifische Optimierungen.
|
||||
# set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -std=c11 -mmacosx-version=13.0")
|
||||
|
||||
message(STATUS "Configured CMake for macOS (Clang)")
|
||||
4
packaging/dragonfly/README.md
Normal file
4
packaging/dragonfly/README.md
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
# DragonFly BSD
|
||||
|
||||
Use the FreeBSD-style port under `../freebsd` as a starting point, or pkgsrc.
|
||||
Document DPorts differences when a public distfile exists.
|
||||
11
packaging/freebsd/Makefile
Normal file
11
packaging/freebsd/Makefile
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
PORTNAME= openkknd
|
||||
DISTVERSION= 0.1.0
|
||||
CATEGORIES= games
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= Original post-apoc RTS (portable C, SDL2)
|
||||
LICENSE= MIT
|
||||
|
||||
USES= cmake sdl
|
||||
USE_SDL= sdl2
|
||||
|
||||
.include <bsd.port.mk>
|
||||
12
packaging/linux-static/README.md
Normal file
12
packaging/linux-static/README.md
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
# GNU/Linux static-ish build
|
||||
|
||||
Prefer a mostly static binary when distro matrix is large:
|
||||
|
||||
```bash
|
||||
cmake -S . -B build-static -DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_EXE_LINKER_FLAGS="-static-libgcc"
|
||||
cmake --build build-static -j
|
||||
```
|
||||
|
||||
Full static SDL2 is painful; document dynamic SDL2 `.so` + rpath as interim.
|
||||
Ship AppImage later if needed.
|
||||
10
packaging/openbsd/Makefile
Normal file
10
packaging/openbsd/Makefile
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
COMMENT = original post-apoc RTS (portable C, SDL2)
|
||||
DISTNAME = openkknd-0.1.0
|
||||
CATEGORIES = games
|
||||
HOMEPAGE = https://localhost/openkknd
|
||||
# OpenBSD port skeleton — fill MASTER_SITES when released
|
||||
PERMIT_PACKAGE = Yes
|
||||
WANTLIB = c SDL2
|
||||
MODULES = devel/cmake
|
||||
LIB_DEPENDS = devel/sdl2
|
||||
.include <bsd.port.mk>
|
||||
15
packaging/pkgsrc/Makefile
Normal file
15
packaging/pkgsrc/Makefile
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
# $NetBSD$
|
||||
# OpenKKND — pkgsrc skeleton (NetBSD and pkgsrc on other OS)
|
||||
DISTNAME= openkknd-0.1.0
|
||||
CATEGORIES= games
|
||||
MASTER_SITES= # local / github later
|
||||
MAINTAINER= pkgsrc-users@NetBSD.org
|
||||
HOMEPAGE= https://localhost/openkknd
|
||||
COMMENT= Original post-apoc RTS (portable C, SDL2)
|
||||
LICENSE= mit
|
||||
|
||||
USE_LANGUAGES= c11
|
||||
USE_CMAKE= yes
|
||||
.include "../../devel/cmake/build.mk"
|
||||
.include "../../devel/SDL2/buildlink3.mk"
|
||||
.include "../../mk/bsd.pkg.mk"
|
||||
22
packaging/windows-msi/README.md
Normal file
22
packaging/windows-msi/README.md
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
# Windows MSI (7 / 8 / 10)
|
||||
|
||||
## Intent
|
||||
|
||||
Ship `openkknd.exe` + SDL2 DLLs via **WiX** MSI.
|
||||
|
||||
## Cross-build from macOS
|
||||
|
||||
Not fully automated on firecuda yet. Options:
|
||||
|
||||
1. CI on Windows runners (GitHub Actions) building with MSVC or MinGW + WiX.
|
||||
2. MinGW-w64 cross toolchain + `makensis` / WiX on Linux CI.
|
||||
|
||||
## Local script placeholder
|
||||
|
||||
`build-msi.ps1` (to be added) should:
|
||||
|
||||
- build Release with CMake + VS or MinGW
|
||||
- harvest files with heat/candle/light
|
||||
- produce `OpenKKND-<version>-win.msi`
|
||||
|
||||
Target OS: Windows 7 SP1+, 8, 10 (avoid APIs newer than Win7 for the baseline binary).
|
||||
Loading…
Add table
Add a link
Reference in a new issue