summaryrefslogtreecommitdiffstats
path: root/rules/supertux.make
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2008-06-04 11:43:54 +0000
committerMarc Kleine-Budde <mkl@pengutronix.de>2008-06-04 11:43:54 +0000
commit3121519dbe39cd1f6ec9a3c16edefb71834a293c (patch)
treee1b9edd2f362703e0d88a95ae0e58a437a028480 /rules/supertux.make
parent74eebc1121013fb6926582877d5c95fc701604dd (diff)
downloadptxdist-3121519dbe39cd1f6ec9a3c16edefb71834a293c.tar.gz
ptxdist-3121519dbe39cd1f6ec9a3c16edefb71834a293c.tar.xz
* supertux.make:
added git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@8301 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/supertux.make')
-rw-r--r--rules/supertux.make85
1 files changed, 85 insertions, 0 deletions
diff --git a/rules/supertux.make b/rules/supertux.make
new file mode 100644
index 000000000..5fa5bdc94
--- /dev/null
+++ b/rules/supertux.make
@@ -0,0 +1,85 @@
+# -*-makefile-*-
+# $Id: template-make 8008 2008-04-15 07:39:46Z mkl $
+#
+# Copyright (C) 2008 by SuperTux Team
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_SUPERTUX) += supertux
+
+#
+# Paths and names
+#
+SUPERTUX_VERSION := 0.1.3
+SUPERTUX := supertux-$(SUPERTUX_VERSION)
+SUPERTUX_SUFFIX := tar.bz2
+SUPERTUX_URL := http://download.berlios.de/supertux/$(SUPERTUX).$(SUPERTUX_SUFFIX)
+SUPERTUX_SOURCE := $(SRCDIR)/$(SUPERTUX).$(SUPERTUX_SUFFIX)
+SUPERTUX_DIR := $(BUILDDIR)/$(SUPERTUX)
+
+# ----------------------------------------------------------------------------
+# Get
+# ----------------------------------------------------------------------------
+
+$(SUPERTUX_SOURCE):
+ @$(call targetinfo)
+ @$(call get, SUPERTUX)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+SUPERTUX_PATH := PATH=$(CROSS_PATH)
+SUPERTUX_ENV := $(CROSS_ENV)
+
+#
+# autoconf
+#
+SUPERTUX_AUTOCONF := \
+ $(CROSS_AUTOCONF_USR) \
+ --disable-opengl \
+ --with-sdl-prefix=$(SYSROOT)/usr
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/supertux.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, supertux)
+ @$(call install_fixup, supertux,PACKAGE,supertux)
+ @$(call install_fixup, supertux,PRIORITY,optional)
+ @$(call install_fixup, supertux,VERSION,$(SUPERTUX_VERSION))
+ @$(call install_fixup, supertux,SECTION,base)
+ @$(call install_fixup, supertux,AUTHOR,"Marek Moeckel")
+ @$(call install_fixup, supertux,DEPENDS,)
+ @$(call install_fixup, supertux,DESCRIPTION,missing)
+
+ @cd $(PKGDIR)/$(SUPERTUX); \
+ for file in `find -type f -perm 644`; do \
+ $(call install_copy, supertux, 0, 0, 0644, $(PKGDIR)/$(SUPERTUX)/$$file, /$$file); \
+ done
+ @$(call install_copy, supertux, 0, 0, 0755, $(PKGDIR)/$(SUPERTUX)/usr/bin/supertux, /usr/bin/supertux)
+
+ @$(call install_finish, supertux)
+
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Clean
+# ----------------------------------------------------------------------------
+
+supertux_clean:
+ rm -rf $(STATEDIR)/supertux.*
+ rm -rf $(PKGDIR)/supertux_*
+ rm -rf $(SUPERTUX_DIR)
+
+# vim: syntax=make