--- /dev/null
+config BR2_PACKAGE_MAGICCUBE4D
+ bool "magiccube4d"
+ default n
+ help
+ Another rubiks cube-like game in 4D
+
+ http://avr32linux.org/twiki/bin/viewfile/Main
--- /dev/null
+--- a/Makefile.in 2000-04-01 22:45:36.000000000 -0500
++++ b/Makefile.in 2008-02-29 13:18:24.000000000 -0500
+@@ -126,6 +126,10 @@ tgz: $(SRCTGZ)
+
+ bindist: $(BINTGZ)
+
++install :
++ mkdir -p $(GAMESDIR)
++ install -c magiccube4d $(GAMESDIR)
++
+ rpm: $(SRCTGZ)
+ rpm -ta $(SRCTGZ)
+
--- /dev/null
+--- a/configure 2000-02-10 23:19:34.000000000 -0500
++++ b/configure 2008-02-29 13:12:33.000000000 -0500
+@@ -686,7 +686,7 @@ fi
+
+
+ if test "$GXX" = "yes" ; then
+- WFLAGS="$WFLAGS -pedantic -Wall -W -Wunused -Werror"
++ WFLAGS="$WFLAGS -pedantic -Wall -W -Wunused"
+ fi
+ echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
+ echo "configure:693: checking how to run the C preprocessor" >&5
--- /dev/null
+#############################################################
+#
+# magiccube4d
+#
+#############################################################
+MAGICCUBE4D_VERSION = 2_2
+MAGICCUBE4D_SOURCE = magiccube4d-src-$(MAGICCUBE4D_VERSION).tar.gz
+MAGICCUBE4D_SITE = http://avr32linux.org/twiki/pub/Main/MagicCube4D
+MAGICCUBE4D_AUTORECONF = NO
+MAGICCUBE4D_INSTALL_STAGING = NO
+MAGICCUBE4D_INSTALL_TARGET = YES
+MAGICCUBE4D_INSTALL_TARGET_OPT = GAMESDIR=$(TARGET_DIR)/usr/games install
+
+MAGICCUBE4D_DEPENDENCIES = uclibc
+
+$(eval $(call AUTOTARGETS,package,magiccube4d))
+