diff --git a/ports/supertux.hash b/ports/supertux.hash new file mode 100644 index 0000000..421376d --- /dev/null +++ b/ports/supertux.hash @@ -0,0 +1 @@ +dummy diff --git a/ports/supertux.port b/ports/supertux.port new file mode 100644 index 0000000..2a52c69 --- /dev/null +++ b/ports/supertux.port @@ -0,0 +1,7 @@ +LICENSE := GPLv3 +VERSION := 0.1.3 +DOWNLOADS := supertux.archive + +URL(supertux) := http://supertux.googlecode.com/files/supertux-$(VERSION).tar.bz2 +SHA(supertux) := ad783011fbf15a8a56ca8680769a8c2a15abc515 +DIR(supertux) := src/app/supertux diff --git a/run/supertux.run b/run/supertux.run new file mode 100644 index 0000000..062c769 --- /dev/null +++ b/run/supertux.run @@ -0,0 +1,147 @@ +# +# Build +# + +set build_components { + core init + drivers/timer + app/supertux server/ram_fs + drivers/framebuffer drivers/pci drivers/input +} + +lappend_if [have_spec usb] build_components drivers/usb +lappend_if [have_spec platform_rpi] build_components drivers/platform + +build $build_components + +create_boot_directory + +# +# Generate config +# + +append config { + + + + + + + + + + + + + + + + + } + +append_if [have_spec sdl] config { + + + + + + + } + +append_if [have_spec pci] config { + + + + } + +append_if [have_spec platform_rpi] config { + + + + + } + +append_if [have_spec framebuffer] config { + + + + + } + +append_if [have_spec ps2] config { + + + + } + +append_if [expr ![have_spec ps2] && [have_spec usb]] config { + + + + + } + +append config { + + + + + + + + + + + + + + + + + + + + + + + +} + +install_config $config + +# +# Boot modules +# + +# generic modules +set boot_modules { + core init + timer ram_fs + supertux + jpeg.lib.so + ld.lib.so + libc.lib.so + libm.lib.so + libpng.lib.so + pthread.lib.so + sdl_image.lib.so + sdl_mixer.lib.so + sdl.lib.so + stdcxx.lib.so + zlib.lib.so + supertux_data.tar +} + +# platform-specific modules +lappend_if [have_spec linux] boot_modules fb_sdl +lappend_if [have_spec pci] boot_modules pci_drv +lappend_if [have_spec framebuffer] boot_modules fb_drv +lappend_if [have_spec ps2] boot_modules ps2_drv +lappend_if [have_spec usb] boot_modules usb_drv +lappend_if [have_spec platform_rpi] boot_modules platform_drv + +build_boot_image $boot_modules + +append qemu_args " -m 256 " + +run_genode_until forever diff --git a/src/app/supertux/dummy.cc b/src/app/supertux/dummy.cc new file mode 100644 index 0000000..c3d7145 --- /dev/null +++ b/src/app/supertux/dummy.cc @@ -0,0 +1,2 @@ +/* silence debug messages */ +extern "C" void _sigprocmask() { } diff --git a/src/app/supertux/target.mk b/src/app/supertux/target.mk new file mode 100644 index 0000000..cd4e74a --- /dev/null +++ b/src/app/supertux/target.mk @@ -0,0 +1,19 @@ +TARGET := supertux + +SUPERTUX_DIR := $(call select_from_ports,supertux)/src/app/supertux + +SRC_CC := $(notdir $(wildcard $(SUPERTUX_DIR)/src/*.cpp)) +SRC_CC += dummy.cc + +vpath %.cpp $(SUPERTUX_DIR)/src + +INC_DIR += $(SUPERTUX_DIR)/src + +LIBS += base libc libm stdcxx +LIBS += sdl sdl_image sdl_mixer zlib + +$(TARGET): supertux_data.tar +supertux_data.tar: + $(VERBOSE)cd $(SUPERTUX_DIR); tar cf $(PWD)/bin/$@ data + +CC_OPT += -DNOOPENGL -DDATA_PREFIX='"/data"'