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
|
2014-06-26 21:21:08 +02:00
|
|
|
PRBOOM_LICENSE = GPLv2+
|
|
|
|
PRBOOM_LICENSE_FILES = COPYING
|
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
|
|
|
|
|
2014-12-14 00:14:40 +01:00
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
|
|
|
# SDL_mixer uses symbols from SDL, but ends up after it on the link
|
|
|
|
# cmdline. Fix it by forcing the SDL libs at the very end
|
2015-07-12 16:35:26 +02:00
|
|
|
PRBOOM_CONF_ENV += LIBS="`$(STAGING_DIR)/usr/bin/sdl-config --static-libs`"
|
2014-12-14 00:14:40 +01:00
|
|
|
endif
|
|
|
|
|
2014-09-27 21:32:44 +02:00
|
|
|
PRBOOM_CONF_OPTS = \
|
2014-12-22 09:12:05 +01:00
|
|
|
--oldincludedir=$(STAGING_DIR)/usr/include \
|
|
|
|
--with-sdl-prefix=$(STAGING_DIR)/usr \
|
|
|
|
--with-sdl-exec-prefix=$(STAGING_DIR)/usr \
|
|
|
|
--disable-cpu-opt \
|
|
|
|
--disable-sdltest \
|
|
|
|
--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
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|