Blame view

buildroot/buildroot-2016.08.1/package/python-pillow/python-pillow.mk 2.11 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
  ################################################################################
  #
  # python-pillow
  #
  ################################################################################
  
  PYTHON_PILLOW_VERSION = 3.3.0
  PYTHON_PILLOW_SOURCE = Pillow-$(PYTHON_PILLOW_VERSION).tar.gz
  PYTHON_PILLOW_SITE = https://pypi.python.org/packages/e0/27/f61098a12f14690689924de93ffdd101463083a80bf8ff3e0c218addf05b
  PYTHON_PILLOW_LICENSE = PIL Software License
  PYTHON_PILLOW_LICENSE_FILES = LICENSE
  PYTHON_PILLOW_SETUP_TYPE = setuptools
  PYTHON_PILLOW_BUILD_OPTS = --disable-platform-guessing
  
  ifeq ($(BR2_PACKAGE_FREETYPE),y)
  PYTHON_PILLOW_DEPENDENCIES += freetype
  PYTHON_PILLOW_BUILD_OPTS += --enable-freetype
  else
  PYTHON_PILLOW_BUILD_OPTS += --disable-freetype
  endif
  
  ifeq ($(BR2_PACKAGE_JPEG),y)
  PYTHON_PILLOW_DEPENDENCIES += jpeg
  PYTHON_PILLOW_BUILD_OPTS += --enable-jpeg
  else
  PYTHON_PILLOW_BUILD_OPTS += --disable-jpeg
  endif
  
  ifeq ($(BR2_PACKAGE_OPENJPEG),y)
  PYTHON_PILLOW_DEPENDENCIES += openjpeg
  PYTHON_PILLOW_BUILD_OPTS += --enable-jpeg2000
  else
  PYTHON_PILLOW_BUILD_OPTS += --disable-jpeg2000
  endif
  
  ifeq ($(BR2_PACKAGE_TIFF),y)
  PYTHON_PILLOW_DEPENDENCIES += tiff
  PYTHON_PILLOW_BUILD_OPTS += --enable-tiff
  else
  PYTHON_PILLOW_BUILD_OPTS += --disable-tiff
  endif
  
  ifeq ($(BR2_PACKAGE_WEBP),y)
  PYTHON_PILLOW_DEPENDENCIES += webp
  PYTHON_PILLOW_BUILD_OPTS += --enable-webp
  else
  PYTHON_PILLOW_BUILD_OPTS += --disable-webp
  endif
  
  ifeq ($(BR2_PACKAGE_ZLIB),y)
  PYTHON_PILLOW_DEPENDENCIES += zlib
  PYTHON_PILLOW_BUILD_OPTS += --enable-zlib
  else
  PYTHON_PILLOW_BUILD_OPTS += --disable-zlib
  endif
  
  define PYTHON_PILLOW_BUILD_CMDS
  	cd $(PYTHON_PILLOW_BUILDDIR); \
  		$(PYTHON_PILLOW_BASE_ENV) $(PYTHON_PILLOW_ENV) \
  		$(PYTHON_PILLOW_PYTHON_INTERPRETER) setup.py build_ext \
  		$(PYTHON_PILLOW_BASE_BUILD_OPTS) $(PYTHON_PILLOW_BUILD_OPTS)
  endef
  
  define PYTHON_PILLOW_INSTALL_TARGET_CMDS
  	cd $(PYTHON_PILLOW_BUILDDIR); \
  		$(PYTHON_PILLOW_BASE_ENV) $(PYTHON_PILLOW_ENV) \
  		$(PYTHON_PILLOW_PYTHON_INTERPRETER) setup.py build_ext \
  		$(PYTHON_PILLOW_BUILD_OPTS) install \
  		$(PYTHON_PILLOW_BASE_INSTALL_TARGET_OPTS) \
  		$(PYTHON_PILLOW_INSTALL_TARGET_OPTS)
  endef
  
  $(eval $(python-package))