python-whoosh: bump to version 2.7.4
[buildroot-gz.git] / package / libfreeimage / libfreeimage.mk
blobfe79689fdd36a5d9db740079ea764b4b72bb000a
1 ################################################################################
3 # libfreeimage
5 ################################################################################
7 LIBFREEIMAGE_VERSION = 3.17.0
8 LIBFREEIMAGE_SITE = http://downloads.sourceforge.net/freeimage
9 LIBFREEIMAGE_SOURCE = FreeImage$(subst .,,$(LIBFREEIMAGE_VERSION)).zip
10 LIBFREEIMAGE_LICENSE = GPLv2 or GPLv3 or FreeImage Public License
11 LIBFREEIMAGE_LICENSE_FILES = license-gplv2.txt license-gplv3.txt license-fi.txt
12 LIBFREEIMAGE_INSTALL_STAGING = YES
14 define LIBFREEIMAGE_EXTRACT_CMDS
15 $(UNZIP) $(DL_DIR)/$(LIBFREEIMAGE_SOURCE) -d $(@D)
16 mv $(@D)/FreeImage/* $(@D)
17 rmdir $(@D)/FreeImage
18 endef
20 define LIBFREEIMAGE_BUILD_CMDS
21 $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)
22 endef
24 define LIBFREEIMAGE_INSTALL_STAGING_CMDS
25 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(STAGING_DIR) install
26 endef
28 define LIBFREEIMAGE_INSTALL_TARGET_CMDS
29 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install
30 endef
32 $(eval $(generic-package))