-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix or add missing premake workaround
- Loading branch information
1 parent
88a6265
commit 992fb8c
Showing
2 changed files
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
plugins/package/mod-tal-noisemaker/01_workaround-missing-premake.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
diff --git a/scripts/premake-update.sh b/premake-update.sh | ||
index 5290d5a..6db0525 100755 | ||
--- a/scripts/premake-update.sh | ||
+++ b/scripts/premake-update.sh | ||
@@ -26,9 +26,14 @@ if [ -d ../libs ]; then | ||
cd .. | ||
fi | ||
|
||
+if [ ! -f premake ]; then | ||
+ mkdir tmp; cd tmp && wget --quiet http://archive.ubuntu.com/ubuntu/pool/universe/p/premake/premake_3.7-1_amd64.deb && dpkg -x premake_3.7-1_amd64.deb . && mv ./usr/bin/premake ../ && cd .. && rm -rf tmp | ||
+fi | ||
+PREMAKE=$(pwd)/premake | ||
+ | ||
run_premake() | ||
{ | ||
- premake --os $1 --target gnu --cc gcc | ||
+ $PREMAKE --os $1 --target gnu --cc gcc | ||
|
||
if [ $MAC == 1 ]; then | ||
sed -i -e "s|BLDCMD = ar -rcs \$(OUTDIR)/\$(TARGET) \$(OBJECTS) \$(TARGET_ARCH)|BLDCMD = ar -rcs \$(OUTDIR)/\$(TARGET) \$(OBJECTS)|" `find . -name \*.make` |