7a960de66f
This commit adds a backported upstream patch which modifies the configure script so that it uses pkg-config to detect libraries and their static linking dependencies. It also adds host-pkgconf as a dependency and removes the SDL static linking workaround from chocolate-doom.mk as it's no longer necessary. Fixes: http://autobuild.buildroot.net/results/d98/d981499ad82121d58fb7584b55d09c484cb6aa49/ http://autobuild.buildroot.net/results/e41/e419f29e14edd28cbf48278bef725b696ae8ef70/ http://autobuild.buildroot.net/results/d8f/d8fe9b5bdb262e939d4150804ea34777c91d3c04/ ... Signed-off-by: Rodrigo Rebello <rprebello@gmail.com> Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Reviewed-by: Romain Naour <romain.naour@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
39 lines
1.1 KiB
Makefile
39 lines
1.1 KiB
Makefile
################################################################################
|
|
#
|
|
# chocolate-doom
|
|
#
|
|
################################################################################
|
|
|
|
CHOCOLATE_DOOM_VERSION = 2.2.1
|
|
CHOCOLATE_DOOM_SITE = http://www.chocolate-doom.org/downloads/$(CHOCOLATE_DOOM_VERSION)
|
|
CHOCOLATE_DOOM_LICENSE = GPLv2+
|
|
CHOCOLATE_DOOM_LICENSE_FILES = COPYING
|
|
CHOCOLATE_DOOM_DEPENDENCIES = host-pkgconf sdl sdl_mixer sdl_net
|
|
|
|
# We're patching configure.ac, so we need to autoreconf
|
|
CHOCOLATE_DOOM_AUTORECONF = YES
|
|
|
|
# Avoid installing desktop entries, icons, etc.
|
|
CHOCOLATE_DOOM_INSTALL_TARGET_OPTS = DESTDIR=$(TARGET_DIR) install-exec
|
|
|
|
CHOCOLATE_DOOM_CONF_OPTS = \
|
|
--disable-sdltest \
|
|
--with-sdl-prefix=$(STAGING_DIR)/usr \
|
|
--with-sdl-exec-prefix=$(STAGING_DIR)/usr
|
|
|
|
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))
|