2017-04-29 10:37:27 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# kodi-texturepacker
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
# Not possible to directly refer to kodi variables, because of
|
|
|
|
# first/second expansion trickery...
|
2020-03-09 19:39:27 +01:00
|
|
|
KODI_TEXTUREPACKER_VERSION = 18.6-Leia
|
2017-04-29 10:37:27 +02:00
|
|
|
KODI_TEXTUREPACKER_SITE = $(call github,xbmc,xbmc,$(KODI_TEXTUREPACKER_VERSION))
|
|
|
|
KODI_TEXTUREPACKER_SOURCE = kodi-$(KODI_TEXTUREPACKER_VERSION).tar.gz
|
2019-11-13 21:44:12 +01:00
|
|
|
KODI_TEXTUREPACKER_DL_SUBDIR = kodi
|
2017-04-29 10:37:27 +02:00
|
|
|
KODI_TEXTUREPACKER_LICENSE = GPL-2.0
|
2020-01-19 12:07:14 +01:00
|
|
|
KODI_TEXTUREPACKER_LICENSE_FILES = LICENSE.md
|
2017-04-29 10:37:27 +02:00
|
|
|
HOST_KODI_TEXTUREPACKER_SUBDIR = tools/depends/native/TexturePacker
|
|
|
|
HOST_KODI_TEXTUREPACKER_DEPENDENCIES = \
|
|
|
|
host-giflib \
|
|
|
|
host-libjpeg \
|
|
|
|
host-libpng \
|
|
|
|
host-lzo
|
|
|
|
|
|
|
|
HOST_KODI_TEXTUREPACKER_CXXFLAGS = \
|
|
|
|
$(HOST_CXXFLAGS) \
|
|
|
|
-std=c++0x \
|
|
|
|
-DTARGET_POSIX \
|
|
|
|
-DTARGET_LINUX \
|
|
|
|
-D_LINUX \
|
|
|
|
-I$(@D)/xbmc/linux
|
|
|
|
|
|
|
|
HOST_KODI_TEXTUREPACKER_CONF_OPTS += \
|
|
|
|
-DCMAKE_CXX_FLAGS="$(HOST_KODI_TEXTUREPACKER_CXXFLAGS)" \
|
2020-01-19 12:07:14 +01:00
|
|
|
-DCMAKE_MODULE_PATH=$(@D)/cmake/modules \
|
2017-04-29 10:37:27 +02:00
|
|
|
-Wno-dev
|
|
|
|
|
|
|
|
define HOST_KODI_TEXTUREPACKER_INSTALL_CMDS
|
|
|
|
$(INSTALL) -m 755 -D \
|
|
|
|
$(@D)/tools/depends/native/TexturePacker/TexturePacker \
|
2017-07-05 13:14:19 +02:00
|
|
|
$(HOST_DIR)/bin/TexturePacker
|
2017-04-29 10:37:27 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(host-cmake-package))
|