Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions srcpkgs/premake5/patches/cross-bootstrap.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
--- a/Bootstrap.mak
+++ b/Bootstrap.mak
@@ -137,14 +137,14 @@

linux: linux-clean
mkdir -p build/bootstrap
- $(CC) -o build/bootstrap/premake_bootstrap -DPREMAKE_NO_BUILTIN_SCRIPTS -DLUA_STATICLIB -DLUA_USE_POSIX -DLUA_USE_DLOPEN -I"$(LUA_DIR)" -I"$(LUASHIM_DIR)" $(SRC) -lm -ldl -lrt -luuid
+ $(CC_FOR_BUILD) -o build/bootstrap/premake_bootstrap -DPREMAKE_NO_BUILTIN_SCRIPTS -DLUA_STATICLIB -DLUA_USE_POSIX -DLUA_USE_DLOPEN -I"$(LUA_DIR)" -I"$(LUASHIM_DIR)" $(SRC) -lm -ldl -lrt -luuid
./build/bootstrap/premake_bootstrap embed
./build/bootstrap/premake_bootstrap --to=build/bootstrap $(PREMAKE_OPTS) gmake
$(MAKE) -C build/bootstrap -j`getconf _NPROCESSORS_ONLN` config=$(CONFIG)

linux-ninja: linux-clean
mkdir -p build/bootstrap
- $(CC) -o build/bootstrap/premake_bootstrap -DPREMAKE_NO_BUILTIN_SCRIPTS -DLUA_STATICLIB -DLUA_USE_POSIX -DLUA_USE_DLOPEN -I"$(LUA_DIR)" -I"$(LUASHIM_DIR)" $(SRC) -lm -ldl -lrt -luuid
+ $(CC_FOR_BUILD) -o build/bootstrap/premake_bootstrap -DPREMAKE_NO_BUILTIN_SCRIPTS -DLUA_STATICLIB -DLUA_USE_POSIX -DLUA_USE_DLOPEN -I"$(LUA_DIR)" -I"$(LUASHIM_DIR)" $(SRC) -lm -ldl -lrt -luuid
./build/bootstrap/premake_bootstrap embed
./build/bootstrap/premake_bootstrap --to=build/bootstrap $(PREMAKE_OPTS) ninja
ninja -C build/bootstrap $(NINJA_CONFIG)
19 changes: 12 additions & 7 deletions srcpkgs/premake5/template
Original file line number Diff line number Diff line change
@@ -1,19 +1,24 @@
# Template file for 'premake5'
pkgname=premake5
version=5.0.0beta3
version=5.0.0
revision=1
_version=${version/beta/-beta}
build_style=gnu-makefile
make_build_args="-C build/gmake2.unix config=release"
hostmakedepends="unzip"
make_build_args="config=release"
hostmakedepends="libuuid-devel"
makedepends="libuuid-devel"
short_desc="Cross-platform, open-source build system"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-3-Clause"
homepage="https://premake.github.io/"
changelog="https://github.com/premake/premake-core/blob/v${_version}/CHANGES.txt"
distfiles="https://github.com/premake/premake-core/releases/download/v${_version}/premake-${_version}-src.zip"
checksum=4b2b1fe9772ca1caf689c07e8c32f108b8393922956f602ddaf404f73467bd83
changelog="https://github.com/premake/premake-core/blob/v${version}/CHANGES.txt"
distfiles="https://github.com/premake/premake-core/archive/refs/tags/v${version}.tar.gz"
checksum=ed52d17463112d6b93bc6e34bb6e15c6332e1f313ad5259fdde60e270aa30aec

pre_build() {
make -f Bootstrap.mak linux
build/bootstrap/premake_bootstrap gmake
build/bootstrap/premake_bootstrap embed
}

do_install() {
vbin bin/release/premake5
Expand Down
Loading