doom-wad: convert to gentargets
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
parent
0a4856ce27
commit
c4b6fea3a3
24
package/games/doom-wad/doom-wad.mk
Normal file
24
package/games/doom-wad/doom-wad.mk
Normal file
@ -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))
|
@ -1,35 +0,0 @@
|
||||
#############################################################
|
||||
#
|
||||
# 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/
|
||||
DOOM_WAD_DIR=$(BUILD_DIR)/doom-wad-$(DOOM_WAD_VERSION)
|
||||
|
||||
$(DL_DIR)/$(DOOM_WAD_SOURCE):
|
||||
$(call DOWNLOAD,$(DOOM_WAD_SITE)/$(DOOM_WAD_SOURCE))
|
||||
|
||||
doom-wad-source: $(DL_DIR)/$(DOOM_WAD_SOURCE)
|
||||
|
||||
$(DOOM_WAD_DIR)/.unpacked: $(DL_DIR)/$(DOOM_WAD_SOURCE)
|
||||
$(INSTALL) -D $(DL_DIR)/$(DOOM_WAD_SOURCE) $(DOOM_WAD_DIR)/$(DOOM_WAD_SOURCE)
|
||||
$(ZCAT) $(DOOM_WAD_DIR)/$(DOOM_WAD_SOURCE) > \
|
||||
$(DOOM_WAD_DIR)/doom-$(DOOM_WAD_VERSION).wad
|
||||
touch $@
|
||||
|
||||
$(TARGET_DIR)/usr/share/games/doom/doom1.wad: $(DOOM_WAD_DIR)/.unpacked
|
||||
$(INSTALL) -D $(DOOM_WAD_DIR)/doom-$(DOOM_WAD_VERSION).wad $@
|
||||
|
||||
doom-wad: $(TARGET_DIR)/usr/share/games/doom/doom1.wad
|
||||
|
||||
#############################################################
|
||||
#
|
||||
# Toplevel Makefile options
|
||||
#
|
||||
#############################################################
|
||||
ifeq ($(BR2_PACKAGE_DOOM_WAD),y)
|
||||
TARGETS+=doom-wad
|
||||
endif
|
Loading…
Reference in New Issue
Block a user