1 ################################################################################
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
)
20 define LIBFREEIMAGE_BUILD_CMDS
21 $(TARGET_MAKE_ENV
) $(TARGET_CONFIGURE_OPTS
) $(MAKE
) -C
$(@D
)
24 define LIBFREEIMAGE_INSTALL_STAGING_CMDS
25 $(TARGET_MAKE_ENV
) $(MAKE
) -C
$(@D
) DESTDIR
=$(STAGING_DIR
) install
28 define LIBFREEIMAGE_INSTALL_TARGET_CMDS
29 $(TARGET_MAKE_ENV
) $(MAKE
) -C
$(@D
) DESTDIR
=$(TARGET_DIR
) install
32 $(eval
$(generic-package
))