2015-11-07 11:24:17 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# 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
|
2016-01-24 14:19:52 +01:00
|
|
|
LIBSOIL_MAKEFILE = ../projects/makefile/alternate_Makefile.txt
|
2015-11-07 11:24:17 +01:00
|
|
|
|
|
|
|
define LIBSOIL_EXTRACT_CMDS
|
|
|
|
$(UNZIP) -d $(@D) $(DL_DIR)/$(LIBSOIL_SOURCE)
|
|
|
|
mv $(@D)/Simple\ OpenGL\ Image\ Library/* $(@D)
|
|
|
|
endef
|
|
|
|
|
2016-01-24 14:19:52 +01:00
|
|
|
define REMOVE_SPACE_FROM_FILENAME
|
|
|
|
cd $(@D)/projects/makefile/ && \
|
|
|
|
mv "alternate Makefile.txt" alternate_Makefile.txt
|
|
|
|
endef
|
|
|
|
LIBSOIL_POST_EXTRACT_HOOKS += REMOVE_SPACE_FROM_FILENAME
|
|
|
|
|
2015-11-07 11:24:17 +01:00
|
|
|
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))
|