summaryrefslogtreecommitdiffstats
path: root/package/games/doom-wad/doom-wad.mk
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2012-03-18 22:33:00 +0100
committerPeter Korsgaard <jacmet@sunsite.dk>2012-03-18 22:35:12 +0100
commitc4b6fea3a36697e45acd55935cbc79374eec1d03 (patch)
treeba802f1585215ee92e81d3bdf297b6d298dfc472 /package/games/doom-wad/doom-wad.mk
parent0a4856ce27027e939fdcd350fb0b246cbda75e93 (diff)
downloadbuildroot-novena-c4b6fea3a36697e45acd55935cbc79374eec1d03.tar.gz
buildroot-novena-c4b6fea3a36697e45acd55935cbc79374eec1d03.zip
doom-wad: convert to gentargets
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/games/doom-wad/doom-wad.mk')
-rw-r--r--package/games/doom-wad/doom-wad.mk24
1 files changed, 24 insertions, 0 deletions
diff --git a/package/games/doom-wad/doom-wad.mk b/package/games/doom-wad/doom-wad.mk
new file mode 100644
index 000000000..1143b3dd6
--- /dev/null
+++ b/package/games/doom-wad/doom-wad.mk
@@ -0,0 +1,24 @@
+#############################################################
+#
+# doom-wad
+#
+#############################################################
+
+DOOM_WAD_VERSION = 1.8
+DOOM_WAD_SOURCE = doom-$(DOOM_WAD_VERSION).wad.gz
+DOOM_WAD_SITE = ftp://ftp.idsoftware.com/idstuff/doom/
+
+define DOOM_WAD_EXTRACT_CMDS
+ $(ZCAT) $(DL_DIR)/$($(PKG)_SOURCE) > $(@D)/doom1.wad
+endef
+
+define DOOM_WAD_INSTALL_TARGET_CMDS
+ $(INSTALL) -m 0644 -D $(@D)/doom1.wad \
+ $(TARGET_DIR)/usr/share/games/doom/doom1.wad
+endef
+
+define DOOM_WAD_UNINSTALL_TARGET_CMDS
+ rm -f $(TARGET_DIR)/usr/share/games/doom/doom1.wad
+endef
+
+$(eval $(call GENTARGETS))