Blame view

buildroot/buildroot-2016.08.1/package/libfreeimage/libfreeimage.mk 991 Bytes
6b13f685e   김민수   BSP 최초 추가
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
  ################################################################################
  #
  # libfreeimage
  #
  ################################################################################
  
  LIBFREEIMAGE_VERSION = 3.17.0
  LIBFREEIMAGE_SITE = http://downloads.sourceforge.net/freeimage
  LIBFREEIMAGE_SOURCE = FreeImage$(subst .,,$(LIBFREEIMAGE_VERSION)).zip
  LIBFREEIMAGE_LICENSE = GPLv2 or GPLv3 or FreeImage Public License
  LIBFREEIMAGE_LICENSE_FILES = license-gplv2.txt license-gplv3.txt license-fi.txt
  LIBFREEIMAGE_INSTALL_STAGING = YES
  
  define LIBFREEIMAGE_EXTRACT_CMDS
  	$(UNZIP) $(DL_DIR)/$(LIBFREEIMAGE_SOURCE) -d $(@D)
  	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
  	$(MAKE) -C $(@D) DESTDIR=$(STAGING_DIR) install
  endef
  
  define LIBFREEIMAGE_INSTALL_TARGET_CMDS
  	$(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install
  endef
  
  $(eval $(generic-package))