2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2008-09-24 15:03:22 +02:00
|
|
|
#
|
2013-06-06 01:53:28 +02:00
|
|
|
# prboom
|
2008-09-24 15:03:22 +02:00
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-06-06 01:53:25 +02:00
|
|
|
|
2010-10-14 20:08:29 +02:00
|
|
|
PRBOOM_VERSION = 2.5.0
|
2012-08-29 01:02:26 +02:00
|
|
|
PRBOOM_SITE = http://downloads.sourceforge.net/project/prboom/prboom%20stable/$(PRBOOM_VERSION)
|
2010-10-14 20:08:29 +02:00
|
|
|
PRBOOM_CONF_ENV = ac_cv_type_uid_t=yes
|
2011-09-19 22:53:05 +02:00
|
|
|
PRBOOM_DEPENDENCIES = sdl sdl_net sdl_mixer
|
2008-09-24 15:03:22 +02:00
|
|
|
|
2010-10-14 20:31:04 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBPNG),y)
|
|
|
|
PRBOOM_DEPENDENCIES += libpng
|
|
|
|
endif
|
|
|
|
|
2010-09-01 23:48:53 +02:00
|
|
|
PRBOOM_CONF_OPT = \
|
2008-09-24 15:03:22 +02:00
|
|
|
--oldincludedir=$(STAGING_DIR)/usr/include \
|
|
|
|
--with-sdl-prefix=$(STAGING_DIR)/usr \
|
|
|
|
--with-sdl-exec-prefix=$(STAGING_DIR)/usr \
|
|
|
|
--disable-cpu-opt \
|
|
|
|
--disable-sdltest \
|
2010-10-14 20:08:29 +02:00
|
|
|
--disable-gl
|
2008-09-24 15:03:22 +02:00
|
|
|
|
2010-10-14 21:40:47 +02:00
|
|
|
# endianness detection isn't used when cross compiling
|
|
|
|
define PRBOOM_BIG_ENDIAN_FIXUP
|
|
|
|
$(SED) 's,.*#undef WORDS_BIGENDIAN.*,#define WORDS_BIGENDIAN 1,g' \
|
|
|
|
$(PRBOOM_DIR)/config.h
|
|
|
|
endef
|
|
|
|
|
|
|
|
ifeq ($(BR2_ENDIAN),"BIG")
|
|
|
|
PRBOOM_POST_CONFIGURE_HOOKS += PRBOOM_BIG_ENDIAN_FIXUP
|
|
|
|
endif
|
|
|
|
|
2010-09-01 23:48:53 +02:00
|
|
|
define PRBOOM_INSTALL_TARGET_CMDS
|
|
|
|
$(INSTALL) -D $(@D)/src/prboom $(TARGET_DIR)/usr/games/prboom
|
|
|
|
$(INSTALL) -D $(@D)/src/prboom-game-server $(TARGET_DIR)/usr/games/prboom-game-server
|
|
|
|
$(INSTALL) -D $(@D)/data/prboom.wad $(TARGET_DIR)/usr/share/games/doom/prboom.wad
|
|
|
|
endef
|
2008-09-24 15:03:22 +02:00
|
|
|
|
2010-09-01 23:48:53 +02:00
|
|
|
define PRBOOM_UINSTALL_TARGET_CMDS
|
2008-11-05 16:47:09 +01:00
|
|
|
rm -rf $(TARGET_DIR)/usr/share/games/doom/prboom.wad \
|
|
|
|
$(TARGET_DIR)/usr/games/prboom-game-server \
|
|
|
|
$(TARGET_DIR)/usr/games/prboom
|
2010-09-01 23:48:53 +02:00
|
|
|
endef
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|