Mercurial > mxe-octave
annotate src/libgd.mk @ 5515:d46a116f2c8d
* src/of-communications-1-catop.patch: New file.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 25 Aug 2020 15:05:59 -0400 |
parents | fc3a52e36678 |
children |
rev | line source |
---|---|
3138
4cc36e7d6ff5
Add libgd (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
1 # This file is part of MXE. |
4cc36e7d6ff5
Add libgd (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
2 # See index.html for further information. |
4cc36e7d6ff5
Add libgd (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
3 |
4cc36e7d6ff5
Add libgd (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
4 PKG := libgd |
4cc36e7d6ff5
Add libgd (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
5 $(PKG)_IGNORE := |
3480
13be64f9f16d
move version info from index.html to src/*.mk files
John W. Eaton <jwe@octave.org>
parents:
3138
diff
changeset
|
6 $(PKG)_VERSION := 2.1.0 |
3138
4cc36e7d6ff5
Add libgd (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
7 $(PKG)_CHECKSUM := 66c56fc07246b66ba649c83e996fd2085ea2f9e2 |
4cc36e7d6ff5
Add libgd (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
8 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) |
4cc36e7d6ff5
Add libgd (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
9 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.xz |
4cc36e7d6ff5
Add libgd (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
10 $(PKG)_URL := https://bitbucket.org/libgd/gd-libgd/downloads/$(PKG)-$($(PKG)_VERSION).tar.xz |
4803
e2349691d6ae
fix fontconfig dependencies
John W. Eaton <jwe@octave.org>
parents:
3480
diff
changeset
|
11 ifeq ($(USE_SYSTEM_FONTCONFIG),no) |
e2349691d6ae
fix fontconfig dependencies
John W. Eaton <jwe@octave.org>
parents:
3480
diff
changeset
|
12 $(PKG)_FONTCONFIG := fontconfig |
e2349691d6ae
fix fontconfig dependencies
John W. Eaton <jwe@octave.org>
parents:
3480
diff
changeset
|
13 endif |
e2349691d6ae
fix fontconfig dependencies
John W. Eaton <jwe@octave.org>
parents:
3480
diff
changeset
|
14 $(PKG)_DEPS := $($(PKG)_FONTCONFIG) freetype libpng jpeg tiff zlib |
3138
4cc36e7d6ff5
Add libgd (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
15 |
4cc36e7d6ff5
Add libgd (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
16 ifneq ($(MXE_SYSTEM),msvc) |
4cc36e7d6ff5
Add libgd (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
17 $(PKG)_DEPS += pthreads |
4cc36e7d6ff5
Add libgd (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
18 endif |
4cc36e7d6ff5
Add libgd (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
19 |
4cc36e7d6ff5
Add libgd (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
20 define $(PKG)_UPDATE |
4cc36e7d6ff5
Add libgd (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
21 echo 'Warning: Updates are temporarily disabled for package libgd.' >&2; |
5059 | 22 echo $(libgd_VERSION) |
3138
4cc36e7d6ff5
Add libgd (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
23 endef |
4cc36e7d6ff5
Add libgd (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
24 |
4cc36e7d6ff5
Add libgd (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
25 define $(PKG)_BUILD |
4cc36e7d6ff5
Add libgd (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
26 if [ $(MXE_SYSTEM) = msvc ]; then \ |
4cc36e7d6ff5
Add libgd (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
27 cd '$(1)' && libtoolize && autoreconf -i; \ |
4cc36e7d6ff5
Add libgd (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
28 fi |
4cc36e7d6ff5
Add libgd (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
29 |
4cc36e7d6ff5
Add libgd (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
30 cd '$(1)' && ./configure \ |
4cc36e7d6ff5
Add libgd (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
31 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ |
4cc36e7d6ff5
Add libgd (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
32 $(ENABLE_SHARED_OR_STATIC) \ |
4cc36e7d6ff5
Add libgd (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
33 --prefix='$(HOST_PREFIX)' \ |
4cc36e7d6ff5
Add libgd (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
34 PKG_CONFIG='$(MXE_PKG_CONFIG)' \ |
4cc36e7d6ff5
Add libgd (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
35 PKG_CONFIG_PATH='$(HOST_LIBDIR)/pkgconfig' \ |
4cc36e7d6ff5
Add libgd (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
36 && $(CONFIGURE_POST_HOOK) |
4cc36e7d6ff5
Add libgd (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
37 |
4cc36e7d6ff5
Add libgd (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
38 $(MAKE) -C '$(1)' -j '$(JOBS)' install |
4cc36e7d6ff5
Add libgd (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
39 endef |