python-pyasn: bump to version 1.6.0b1
[buildroot-gz.git] / package / prboom / prboom.mk
blob5f5e7fb677f5c29c4aad46658cb7e2d1c39eb9c2
1 ################################################################################
3 # prboom
5 ################################################################################
7 PRBOOM_VERSION = 2.5.0
8 PRBOOM_SITE = http://downloads.sourceforge.net/project/prboom/prboom%20stable/$(PRBOOM_VERSION)
9 PRBOOM_CONF_ENV = ac_cv_type_uid_t=yes
10 PRBOOM_DEPENDENCIES = sdl sdl_net sdl_mixer
11 PRBOOM_LICENSE = GPLv2+
12 PRBOOM_LICENSE_FILES = COPYING
14 ifeq ($(BR2_PACKAGE_LIBPNG),y)
15 PRBOOM_DEPENDENCIES += libpng
16 endif
18 ifeq ($(BR2_STATIC_LIBS),y)
19 # SDL_mixer uses symbols from SDL, but ends up after it on the link
20 # cmdline. Fix it by forcing the SDL libs at the very end
21 PRBOOM_CONF_ENV += LIBS="`$(STAGING_DIR)/usr/bin/sdl-config --static-libs`"
22 endif
24 PRBOOM_CONF_OPTS = \
25 --oldincludedir=$(STAGING_DIR)/usr/include \
26 --with-sdl-prefix=$(STAGING_DIR)/usr \
27 --with-sdl-exec-prefix=$(STAGING_DIR)/usr \
28 --disable-cpu-opt \
29 --disable-sdltest \
30 --disable-gl
32 # endianness detection isn't used when cross compiling
33 define PRBOOM_BIG_ENDIAN_FIXUP
34 $(SED) 's,.*#undef WORDS_BIGENDIAN.*,#define WORDS_BIGENDIAN 1,g' \
35 $(PRBOOM_DIR)/config.h
36 endef
38 ifeq ($(BR2_ENDIAN),"BIG")
39 PRBOOM_POST_CONFIGURE_HOOKS += PRBOOM_BIG_ENDIAN_FIXUP
40 endif
42 define PRBOOM_INSTALL_TARGET_CMDS
43 $(INSTALL) -D $(@D)/src/prboom $(TARGET_DIR)/usr/games/prboom
44 $(INSTALL) -D $(@D)/src/prboom-game-server $(TARGET_DIR)/usr/games/prboom-game-server
45 $(INSTALL) -D $(@D)/data/prboom.wad $(TARGET_DIR)/usr/share/games/doom/prboom.wad
46 endef
48 $(eval $(autotools-package))