hc
2023-02-18 a08c8b75ee83d7f62c9aefc23bfb42082aa4076c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
################################################################################
#
# stella
#
################################################################################
 
STELLA_VERSION = 5.0.2
STELLA_SOURCE = stella-$(STELLA_VERSION)-src.tar.xz
STELLA_SITE = https://github.com/stella-emu/stella/releases/download/$(STELLA_VERSION)
STELLA_LICENSE = GPL-2.0+
STELLA_LICENSE_FILES = Copyright.txt License.txt
 
STELLA_DEPENDENCIES = sdl2 libpng zlib
 
STELLA_CONF_OPTS = \
   --host=$(GNU_TARGET_NAME) \
   --prefix=/usr \
   --with-sdl-prefix=$(STAGING_DIR)/usr
 
# The configure script is not autoconf based, so we use the
# generic-package infrastructure
define STELLA_CONFIGURE_CMDS
   (cd $(@D); \
       $(TARGET_CONFIGURE_OPTS) \
       $(TARGET_CONFIGURE_ARGS) \
       ./configure $(STELLA_CONF_OPTS) \
   )
endef
 
define STELLA_BUILD_CMDS
   $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
endef
 
define STELLA_INSTALL_TARGET_CMDS
   $(TARGET_MAKE_ENV) $(MAKE) DESTDIR="$(TARGET_DIR)" -C $(@D) install
endef
 
$(eval $(generic-package))