1e7eb1f252
Needed for these new Kodi addons: kodi-screensaver-asterwave kodi-screensaver-cpblobs kodi-screensaver-matrixtrails kodi-screensaver-planestate kodi-visualisation-fountain [Thomas: - don't pass LIBSOIL_CFLAGS since this variable no longer exists. - pass TARGET_CONFIGURE_OPTS on the right hand side of make for the install steps, like was done for the build step.] Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
41 lines
1.1 KiB
Makefile
41 lines
1.1 KiB
Makefile
################################################################################
|
|
#
|
|
# libsoil
|
|
#
|
|
################################################################################
|
|
|
|
LIBSOIL_VERSION = 20080707
|
|
LIBSOIL_SOURCE = soil.zip
|
|
LIBSOIL_SITE = http://www.lonesock.net/files
|
|
LIBSOIL_INSTALL_STAGING = YES
|
|
LIBSOIL_DEPENDENCIES = libgl
|
|
LIBSOIL_LICENSE = Public Domain, MIT
|
|
LIBSOIL_LICENSE_FILES = src/stb_image_aug.c src/image_helper.c
|
|
LIBSOIL_MAKEFILE = "../projects/makefile/alternate Makefile.txt"
|
|
|
|
define LIBSOIL_EXTRACT_CMDS
|
|
$(UNZIP) -d $(@D) $(DL_DIR)/$(LIBSOIL_SOURCE)
|
|
mv $(@D)/Simple\ OpenGL\ Image\ Library/* $(@D)
|
|
endef
|
|
|
|
define LIBSOIL_BUILD_CMDS
|
|
$(MAKE) $(TARGET_CONFIGURE_OPTS) -f $(LIBSOIL_MAKEFILE) \
|
|
-C $(@D)/src
|
|
endef
|
|
|
|
define LIBSOIL_INSTALL_STAGING_CMDS
|
|
$(MAKE) $(TARGET_CONFIGURE_OPTS) -f $(LIBSOIL_MAKEFILE) \
|
|
DESTDIR=$(STAGING_DIR) install \
|
|
INSTALL=$(INSTALL) \
|
|
-C $(@D)/src
|
|
endef
|
|
|
|
define LIBSOIL_INSTALL_TARGET_CMDS
|
|
$(MAKE) $(TARGET_CONFIGURE_OPTS) -f $(LIBSOIL_MAKEFILE) \
|
|
DESTDIR=$(TARGET_DIR) install \
|
|
INSTALL=$(INSTALL) \
|
|
-C $(@D)/src
|
|
endef
|
|
|
|
$(eval $(generic-package))
|