2015-04-13 11:16:38 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# libfreeimage
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
LIBFREEIMAGE_VERSION = 3.17.0
|
|
|
|
LIBFREEIMAGE_SITE = http://downloads.sourceforge.net/freeimage
|
|
|
|
LIBFREEIMAGE_SOURCE = FreeImage$(subst .,,$(LIBFREEIMAGE_VERSION)).zip
|
2017-03-30 15:43:33 +02:00
|
|
|
LIBFREEIMAGE_LICENSE = GPL-2.0 or GPL-3.0 or FreeImage Public License
|
2015-04-13 11:16:38 +02:00
|
|
|
LIBFREEIMAGE_LICENSE_FILES = license-gplv2.txt license-gplv3.txt license-fi.txt
|
|
|
|
LIBFREEIMAGE_INSTALL_STAGING = YES
|
|
|
|
|
|
|
|
define LIBFREEIMAGE_EXTRACT_CMDS
|
2018-04-02 15:09:24 +02:00
|
|
|
$(UNZIP) $(LIBFREEIMAGE_DL_DIR)/$(LIBFREEIMAGE_SOURCE) -d $(@D)
|
2015-04-13 11:16:38 +02:00
|
|
|
mv $(@D)/FreeImage/* $(@D)
|
|
|
|
rmdir $(@D)/FreeImage
|
|
|
|
endef
|
|
|
|
|
|
|
|
define LIBFREEIMAGE_BUILD_CMDS
|
|
|
|
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define LIBFREEIMAGE_INSTALL_STAGING_CMDS
|
2016-10-14 00:13:46 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(STAGING_DIR) install
|
2015-04-13 11:16:38 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define LIBFREEIMAGE_INSTALL_TARGET_CMDS
|
2016-10-14 00:13:46 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install
|
2015-04-13 11:16:38 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|