From ba368ab04bf80e53b00d5e197ba4db33ec799081 Mon Sep 17 00:00:00 2001 From: vamastah Date: Sat, 4 Jul 2020 22:43:39 +0200 Subject: [PATCH] RetroFW port --- .gitignore | 3 +++ Makefile | 8 ++++++-- .../LiberationMono-Regular.ttf | Bin opkg/calc.retrofw.desktop | 10 ++++++++++ icon.png => opkg/icon.png | Bin 5 files changed, 19 insertions(+), 2 deletions(-) rename LiberationMono-Regular.ttf => opkg/LiberationMono-Regular.ttf (100%) create mode 100644 opkg/calc.retrofw.desktop rename icon.png => opkg/icon.png (100%) diff --git a/.gitignore b/.gitignore index 1ddbbca..5742dcc 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,4 @@ calc +opkg/calc +calc.opk + diff --git a/Makefile b/Makefile index 0afb1cd..0e4da56 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,9 @@ -.PHONY: all clean pc -all: +.PHONY: retrofw miyoo clean pc +retrofw: + mipsel-linux-gcc main.c -o calc -ggdb -lSDL -lSDL_ttf -lm + cp calc opkg/ + mksquashfs opkg calc.opk -noappend -no-xattrs +miyoo: arm-linux-gcc main.c -o calc -ggdb -lSDL -lSDL_ttf -lm pc: gcc main.c -o calc -lSDL -lSDL_ttf -lm diff --git a/LiberationMono-Regular.ttf b/opkg/LiberationMono-Regular.ttf similarity index 100% rename from LiberationMono-Regular.ttf rename to opkg/LiberationMono-Regular.ttf diff --git a/opkg/calc.retrofw.desktop b/opkg/calc.retrofw.desktop new file mode 100644 index 0000000..20a0263 --- /dev/null +++ b/opkg/calc.retrofw.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Name=Calculator +Comment=Simple calculator +Exec=calc +Terminal=false +Type=Application +StartupNotify=true +Icon=icon +Categories=applications; +Version=20200704 diff --git a/icon.png b/opkg/icon.png similarity index 100% rename from icon.png rename to opkg/icon.png