2015-11-06 20:47:57 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# chocolate-doom
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2020-07-26 00:12:01 +02:00
|
|
|
CHOCOLATE_DOOM_VERSION = 3.0.1
|
2015-11-06 20:47:57 +01:00
|
|
|
CHOCOLATE_DOOM_SITE = http://www.chocolate-doom.org/downloads/$(CHOCOLATE_DOOM_VERSION)
|
2017-03-30 15:43:32 +02:00
|
|
|
CHOCOLATE_DOOM_LICENSE = GPL-2.0+
|
2015-11-06 20:47:57 +01:00
|
|
|
CHOCOLATE_DOOM_LICENSE_FILES = COPYING
|
2023-08-08 16:31:15 +02:00
|
|
|
CHOCOLATE_DOOM_CPE_ID_VENDOR = chocolate-doom
|
|
|
|
CHOCOLATE_DOOM_CPE_ID_PRODUCT = chocolate_doom
|
2019-09-15 20:40:00 +02:00
|
|
|
CHOCOLATE_DOOM_DEPENDENCIES = host-pkgconf sdl2 sdl2_mixer sdl2_net
|
2015-11-06 20:47:57 +01:00
|
|
|
|
|
|
|
# Avoid installing desktop entries, icons, etc.
|
|
|
|
CHOCOLATE_DOOM_INSTALL_TARGET_OPTS = DESTDIR=$(TARGET_DIR) install-exec
|
|
|
|
|
2019-05-21 15:39:23 +02:00
|
|
|
CHOCOLATE_DOOM_CFLAGS = $(TARGET_CFLAGS)
|
|
|
|
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_85180),y)
|
|
|
|
CHOCOLATE_DOOM_CFLAGS += -O0
|
|
|
|
endif
|
|
|
|
|
|
|
|
CHOCOLATE_DOOM_CONF_ENV += CFLAGS="$(CHOCOLATE_DOOM_CFLAGS)"
|
|
|
|
|
2015-11-06 20:47:57 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBPNG),y)
|
|
|
|
CHOCOLATE_DOOM_DEPENDENCIES += libpng
|
|
|
|
CHOCOLATE_DOOM_CONF_OPTS += --with-libpng
|
|
|
|
else
|
|
|
|
CHOCOLATE_DOOM_CONF_OPTS += --without-libpng
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBSAMPLERATE),y)
|
|
|
|
CHOCOLATE_DOOM_DEPENDENCIES += libsamplerate
|
|
|
|
CHOCOLATE_DOOM_CONF_OPTS += --with-libsamplerate
|
|
|
|
else
|
|
|
|
CHOCOLATE_DOOM_CONF_OPTS += --without-libsamplerate
|
|
|
|
endif
|
|
|
|
|
|
|
|
$(eval $(autotools-package))
|