Depot recipe for Abuse
This commit is contained in:
7
recipes/pkg/abuse/README
Normal file
7
recipes/pkg/abuse/README
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
|
||||||
|
Abuse
|
||||||
|
|
||||||
|
Abuse is a dark 2D side-scrolling platform game developed by Crack dot Com in 1995.
|
||||||
|
It features beautiful lighting, realistic animation and nasty alien-like creatures to destroy.
|
||||||
|
It is now maintained by Sam Hocevar in an attempt to prevent it from vanishing from
|
||||||
|
the Internet.
|
||||||
13
recipes/pkg/abuse/archives
Normal file
13
recipes/pkg/abuse/archives
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
_/raw/abuse
|
||||||
|
_/src/abuse
|
||||||
|
_/src/jpeg
|
||||||
|
_/src/libc
|
||||||
|
_/src/nit_fb
|
||||||
|
_/src/sdl
|
||||||
|
_/src/sdl_image
|
||||||
|
_/src/sdl_mixer
|
||||||
|
_/src/sdl_net
|
||||||
|
_/src/stdcxx
|
||||||
|
_/src/vfs
|
||||||
|
_/src/libpng
|
||||||
|
_/src/zlib
|
||||||
1
recipes/pkg/abuse/hash
Normal file
1
recipes/pkg/abuse/hash
Normal file
@@ -0,0 +1 @@
|
|||||||
|
18.05 95cc1fa7f2d49d7e21b6f428c262f857bb2c07f3
|
||||||
72
recipes/pkg/abuse/runtime
Normal file
72
recipes/pkg/abuse/runtime
Normal file
@@ -0,0 +1,72 @@
|
|||||||
|
<runtime ram="64M" caps="512" binary="init">
|
||||||
|
|
||||||
|
<requires>
|
||||||
|
<audio_out/>
|
||||||
|
<file_system/>
|
||||||
|
<nitpicker/>
|
||||||
|
<timer/>
|
||||||
|
</requires>
|
||||||
|
|
||||||
|
<content>
|
||||||
|
<rom label="abuse"/>
|
||||||
|
<rom label="abuse.tar"/>
|
||||||
|
<rom label="init"/>
|
||||||
|
<rom label="jpeg.lib.so"/>
|
||||||
|
<rom label="ld.lib.so"/>
|
||||||
|
<rom label="libc.lib.so"/>
|
||||||
|
<rom label="libm.lib.so"/>
|
||||||
|
<rom label="libpng.lib.so"/>
|
||||||
|
<rom label="nit_fb"/>
|
||||||
|
<rom label="pthread.lib.so"/>
|
||||||
|
<rom label="sdl_image.lib.so"/>
|
||||||
|
<rom label="sdl.lib.so"/>
|
||||||
|
<rom label="sdl_mixer.lib.so"/>
|
||||||
|
<rom label="sdl_net.lib.so"/>
|
||||||
|
<rom label="stdcxx.lib.so"/>
|
||||||
|
<rom label="vfs.lib.so"/>
|
||||||
|
<rom label="zlib.lib.so"/>
|
||||||
|
</content>
|
||||||
|
|
||||||
|
<config>
|
||||||
|
<parent-provides>
|
||||||
|
<service name="CPU"/>
|
||||||
|
<service name="LOG"/>
|
||||||
|
<service name="PD"/>
|
||||||
|
<service name="RM"/>
|
||||||
|
<service name="ROM"/>
|
||||||
|
<service name="Nitpicker"/>
|
||||||
|
<service name="Report"/>
|
||||||
|
<service name="Timer"/>
|
||||||
|
<service name="Audio_out"/>
|
||||||
|
<service name="File_system"/>
|
||||||
|
</parent-provides>
|
||||||
|
<default-route>
|
||||||
|
<any-service> <parent/> <any-child/> </any-service>
|
||||||
|
</default-route>
|
||||||
|
<start name="nit_fb" caps="96">
|
||||||
|
<resource name="RAM" quantum="4M"/>
|
||||||
|
<provides>
|
||||||
|
<service name="Framebuffer"/>
|
||||||
|
<service name="Input"/>
|
||||||
|
</provides>
|
||||||
|
<config initial_width="640" initial_height="400"/>
|
||||||
|
</start>
|
||||||
|
<start name="abuse" caps="200">
|
||||||
|
<resource name="RAM" quantum="128M"/>
|
||||||
|
<config>
|
||||||
|
<libc stdout="/dev/log" stderr="/dev/log" rtc="/dev/rtc"/>
|
||||||
|
<vfs>
|
||||||
|
<tar name="abuse.tar"/>
|
||||||
|
<fs/>
|
||||||
|
<dir name="dev">
|
||||||
|
<log/>
|
||||||
|
<inline name="rtc">1996-02-29 12:00</inline>
|
||||||
|
</dir>
|
||||||
|
</vfs>
|
||||||
|
<arg value="abuse"/>
|
||||||
|
<arg value="-datadir"/> <arg value="/"/>
|
||||||
|
</config>
|
||||||
|
</start>
|
||||||
|
</config>
|
||||||
|
|
||||||
|
</runtime>
|
||||||
9
recipes/raw/abuse/content.mk
Normal file
9
recipes/raw/abuse/content.mk
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
content: abuse.tar README
|
||||||
|
|
||||||
|
ABUSE_DIR := $(call port_dir,$(REP_DIR)/ports/abuse)/src/app/abuse
|
||||||
|
|
||||||
|
abuse.tar: $(ABUSE_DIR)/data
|
||||||
|
tar cf $@ -C $< .
|
||||||
|
|
||||||
|
README: $(ABUSE_DIR)/COPYING
|
||||||
|
cp $< $@
|
||||||
1
recipes/raw/abuse/hash
Normal file
1
recipes/raw/abuse/hash
Normal file
@@ -0,0 +1 @@
|
|||||||
|
0.8 0dfb9001655344f59095885dfb1df5ed4438f31a
|
||||||
18
recipes/src/abuse/content.mk
Normal file
18
recipes/src/abuse/content.mk
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
MIRROR_FROM_PORT_AND_REP_DIR := src/app/abuse
|
||||||
|
|
||||||
|
MIRROR_FROM_REP_DIR := lib/mk/abuse_imlib.mk
|
||||||
|
|
||||||
|
content: $(MIRROR_FROM_PORT_AND_REP_DIR) $(MIRROR_FROM_REP_DIR) LICENSE
|
||||||
|
|
||||||
|
PORT_DIR := $(call port_dir,$(REP_DIR)/ports/abuse)
|
||||||
|
|
||||||
|
$(MIRROR_FROM_PORT_AND_REP_DIR):
|
||||||
|
mkdir -p $(dir $@)
|
||||||
|
cp -r $(PORT_DIR)/$@ $(dir $@)
|
||||||
|
$(mirror_from_rep_dir)
|
||||||
|
|
||||||
|
$(MIRROR_FROM_REP_DIR):
|
||||||
|
$(mirror_from_rep_dir)
|
||||||
|
|
||||||
|
LICENSE:
|
||||||
|
cp $(PORT_DIR)/src/app/abuse/COPYING $@
|
||||||
1
recipes/src/abuse/hash
Normal file
1
recipes/src/abuse/hash
Normal file
@@ -0,0 +1 @@
|
|||||||
|
2018-06-02 28d5fd221d9208fc2d195e180472810cca439ae4
|
||||||
9
recipes/src/abuse/used_apis
Normal file
9
recipes/src/abuse/used_apis
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
base
|
||||||
|
libc
|
||||||
|
sdl
|
||||||
|
sdl_image
|
||||||
|
sdl_mixer
|
||||||
|
sdl_net
|
||||||
|
stdcxx
|
||||||
|
os
|
||||||
|
vfs
|
||||||
156
run/abuse.run
156
run/abuse.run
@@ -1,156 +0,0 @@
|
|||||||
#
|
|
||||||
# Build
|
|
||||||
#
|
|
||||||
|
|
||||||
set build_components {
|
|
||||||
core init
|
|
||||||
drivers/audio
|
|
||||||
drivers/framebuffer
|
|
||||||
drivers/input
|
|
||||||
drivers/timer
|
|
||||||
app/abuse
|
|
||||||
}
|
|
||||||
|
|
||||||
source ${genode_dir}/repos/base/run/platform_drv.inc
|
|
||||||
# override default platform driver policy
|
|
||||||
proc platform_drv_policy {} {
|
|
||||||
return {
|
|
||||||
<policy label_prefix="ps2_drv"> <device name="PS2"/> </policy>
|
|
||||||
<policy label_prefix="usb_drv"> <pci class="USB"/> </policy>
|
|
||||||
<policy label_prefix="fb_drv"> <pci class="VGA"/> </policy>
|
|
||||||
<policy label_prefix="audio_drv"> <pci class="AUDIO"/> <pci class="HDAUDIO"/> </policy>}
|
|
||||||
}
|
|
||||||
|
|
||||||
append_platform_drv_build_components
|
|
||||||
|
|
||||||
build $build_components
|
|
||||||
|
|
||||||
create_boot_directory
|
|
||||||
|
|
||||||
#
|
|
||||||
# Generate config
|
|
||||||
#
|
|
||||||
|
|
||||||
append config {
|
|
||||||
<config>
|
|
||||||
<parent-provides>
|
|
||||||
<service name="CAP"/>
|
|
||||||
<service name="CPU"/>
|
|
||||||
<service name="IO_MEM"/>
|
|
||||||
<service name="IO_PORT"/>
|
|
||||||
<service name="IRQ"/>
|
|
||||||
<service name="LOG"/>
|
|
||||||
<service name="PD"/>
|
|
||||||
<service name="RAM"/>
|
|
||||||
<service name="RM"/>
|
|
||||||
<service name="ROM"/>
|
|
||||||
<service name="SIGNAL"/>
|
|
||||||
</parent-provides>
|
|
||||||
<default-route>
|
|
||||||
<any-service> <parent/> <any-child/> </any-service>
|
|
||||||
</default-route>
|
|
||||||
<default caps="100"/>}
|
|
||||||
|
|
||||||
append_if [have_spec sdl] config {
|
|
||||||
<start name="fb_sdl">
|
|
||||||
<resource name="RAM" quantum="4M"/>
|
|
||||||
<provides>
|
|
||||||
<service name="Input"/>
|
|
||||||
<service name="Framebuffer"/>
|
|
||||||
</provides>
|
|
||||||
<config width="640" height="480"/>
|
|
||||||
</start>}
|
|
||||||
|
|
||||||
append_platform_drv_config
|
|
||||||
|
|
||||||
append_if [have_spec vesa] config {
|
|
||||||
<start name="fb_drv">
|
|
||||||
<resource name="RAM" quantum="4M"/>
|
|
||||||
<provides><service name="Framebuffer"/></provides>
|
|
||||||
<config buffered="yes"> </config>
|
|
||||||
<config width="640" height="400"/>
|
|
||||||
</start>}
|
|
||||||
|
|
||||||
append_if [have_spec pl11x] config {
|
|
||||||
<start name="fb_drv">
|
|
||||||
<resource name="RAM" quantum="2M"/>
|
|
||||||
<provides><service name="Framebuffer"/></provides>
|
|
||||||
</start>}
|
|
||||||
|
|
||||||
append_if [have_spec ps2] config {
|
|
||||||
<start name="ps2_drv">
|
|
||||||
<resource name="RAM" quantum="1M"/>
|
|
||||||
<provides><service name="Input"/></provides>
|
|
||||||
</start>}
|
|
||||||
|
|
||||||
append config {
|
|
||||||
<start name="audio_drv">
|
|
||||||
<binary name="} [audio_drv_binary] {"/>
|
|
||||||
<resource name="RAM" quantum="6M"/>
|
|
||||||
<provides><service name="Audio_out"/></provides>
|
|
||||||
</start>
|
|
||||||
<start name="timer">
|
|
||||||
<resource name="RAM" quantum="1M"/>
|
|
||||||
<provides><service name="Timer"/></provides>
|
|
||||||
</start>
|
|
||||||
<start name="abuse" caps="200">
|
|
||||||
<resource name="RAM" quantum="128M"/>
|
|
||||||
<config>
|
|
||||||
<sdl_audio_volume value="100"/>
|
|
||||||
<libc stdout="/dev/log" stderr="/dev/log">
|
|
||||||
<vfs>
|
|
||||||
<inline name="abuserc">
|
|
||||||
; Location of the datafiles
|
|
||||||
datadir=/data
|
|
||||||
</inline>
|
|
||||||
<dir name="data">
|
|
||||||
<ram/>
|
|
||||||
<tar name="abuse.tar"/>
|
|
||||||
</dir>
|
|
||||||
<dir name="dev"> <log/> </dir>
|
|
||||||
</vfs>
|
|
||||||
</libc>
|
|
||||||
</config>
|
|
||||||
</start>
|
|
||||||
</config>}
|
|
||||||
|
|
||||||
install_config $config
|
|
||||||
|
|
||||||
#
|
|
||||||
# Boot modules
|
|
||||||
#
|
|
||||||
|
|
||||||
file copy -force app/abuse/abuse.tar bin
|
|
||||||
|
|
||||||
# generic modules
|
|
||||||
append boot_modules {
|
|
||||||
core init } [audio_drv_binary] {
|
|
||||||
jpeg.lib.so
|
|
||||||
ld.lib.so
|
|
||||||
libc.lib.so vfs.lib.so
|
|
||||||
libm.lib.so
|
|
||||||
libpng.lib.so
|
|
||||||
pthread.lib.so
|
|
||||||
sdl_image.lib.so
|
|
||||||
sdl.lib.so
|
|
||||||
sdl_mixer.lib.so
|
|
||||||
sdl_net.lib.so
|
|
||||||
stdcxx.lib.so
|
|
||||||
timer
|
|
||||||
zlib.lib.so
|
|
||||||
abuse abuse.tar
|
|
||||||
}
|
|
||||||
|
|
||||||
# platform-specific modules
|
|
||||||
lappend_if [have_spec linux] boot_modules fb_sdl
|
|
||||||
lappend_if [have_spec vesa] boot_modules fb_drv
|
|
||||||
lappend_if [have_spec ps2] boot_modules ps2_drv
|
|
||||||
lappend_if [have_spec pl11x] boot_modules fb_drv
|
|
||||||
|
|
||||||
append_platform_drv_boot_modules
|
|
||||||
|
|
||||||
build_boot_image $boot_modules
|
|
||||||
|
|
||||||
append qemu_args " -soundhw es1370 "
|
|
||||||
|
|
||||||
run_genode_until forever
|
|
||||||
@@ -30,7 +30,7 @@ INC_DIR += $(PRG_DIR) \
|
|||||||
$(ABUSE_SRC)/net \
|
$(ABUSE_SRC)/net \
|
||||||
$(ABUSE_SRC)/ui
|
$(ABUSE_SRC)/ui
|
||||||
|
|
||||||
LIBS += abuse_imlib libc libm stdcxx sdlmain sdl sdl_image sdl_mixer sdl_net
|
LIBS += base abuse_imlib libc libm stdcxx sdlmain sdl sdl_image sdl_mixer sdl_net
|
||||||
|
|
||||||
CC_WARN += \
|
CC_WARN += \
|
||||||
-Wno-unused-but-set-variable \
|
-Wno-unused-but-set-variable \
|
||||||
|
|||||||
Reference in New Issue
Block a user