• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/gd/gd.mk
Bernd KuhlsBernd Kuhls committed 39aeec0801610 Apr 2015
Raw file
Source viewDiff to previous
 
1
################################################################################
2
#
3
# gd
4
#
5
################################################################################
6
​
7
GD_VERSION = 2.1.1
8
GD_SOURCE = libgd-$(GD_VERSION).tar.xz
9
GD_SITE = https://bitbucket.org/libgd/gd-libgd/downloads
10
GD_AUTORECONF = YES
11
GD_INSTALL_STAGING = YES
12
GD_LICENSE = GD license
13
GD_LICENSE_FILES = COPYING
14
GD_CONFIG_SCRIPTS = gdlib-config
15
GD_CONF_OPTS = --without-x --disable-rpath
16
GD_DEPENDENCIES = host-pkgconf
17
​
18
# gd forgets to link utilities with -pthread even though it uses
19
# pthreads, causing linking errors with static linking
20
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
21
GD_CONF_ENV += LDFLAGS="$(TARGET_LDFLAGS) -pthread"
22
endif
23
​
24
ifeq ($(BR2_PACKAGE_FONTCONFIG),y)
25
GD_DEPENDENCIES += fontconfig
26
GD_CONF_OPTS += --with-fontconfig
27
endif
28
​
29
ifeq ($(BR2_PACKAGE_FREETYPE),y)
30
GD_DEPENDENCIES += freetype
31
GD_CONF_OPTS += --with-freetype=$(STAGING_DIR)/usr
32
else
33
GD_CONF_OPTS += --without-freetype
34
endif
35
​
36
ifeq ($(BR2_PACKAGE_LIBICONV),y)
37
GD_DEPENDENCIES += libiconv
38
# not strictly needed for gd, but ensures -liconv ends up in
39
# gdlib-config --libs output
40
GD_CONF_ENV += LIBS="-liconv"
41
endif
42
​
43
ifeq ($(BR2_PACKAGE_JPEG),y)
44
GD_DEPENDENCIES += jpeg
45
GD_CONF_OPTS += --with-jpeg
46
endif
47
​
48
ifeq ($(BR2_PACKAGE_LIBPNG),y)
49
GD_DEPENDENCIES += libpng
50
GD_CONF_OPTS += --with-png
51
else
52
GD_CONF_OPTS += --without-png
53
endif
54
​
55
ifeq ($(BR2_PACKAGE_WEBP),y)
56
GD_DEPENDENCIES += webp
57
GD_CONF_OPTS += --with-webp
58
else
59
GD_CONF_OPTS += --without-webp
60
endif
61
​
62
ifeq ($(BR2_PACKAGE_TIFF),y)
63
GD_DEPENDENCIES += tiff
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.