2016-08-22 20:52:34 +01:00
|
|
|
# This file is part of MXE. See LICENSE.md for licensing information.
|
2008-11-08 21:39:10 +00:00
|
|
|
|
2009-04-05 13:00:17 +01:00
|
|
|
PKG := gd
|
2017-03-05 03:41:39 +00:00
|
|
|
$(PKG)_WEBSITE := https://libgd.github.io/
|
2016-12-18 05:43:56 +00:00
|
|
|
$(PKG)_DESCR := GD (without support for xpm)
|
2009-09-20 13:36:46 +01:00
|
|
|
$(PKG)_IGNORE :=
|
2013-10-20 07:02:10 +01:00
|
|
|
$(PKG)_VERSION := 2.1.0
|
2015-09-23 09:32:58 +01:00
|
|
|
$(PKG)_CHECKSUM := fa6665dfe3d898019671293c84d77067a3d2ede50884dbcb6df899d508370e5a
|
2013-10-20 07:02:10 +01:00
|
|
|
$(PKG)_SUBDIR := libgd-$($(PKG)_VERSION)
|
|
|
|
$(PKG)_FILE := libgd-$($(PKG)_VERSION).tar.xz
|
|
|
|
$(PKG)_URL := https://bitbucket.org/libgd/gd-libgd/downloads/$($(PKG)_FILE)
|
2017-11-25 13:36:07 +00:00
|
|
|
$(PKG)_DEPS := cc fontconfig freetype jpeg libpng libvpx pthreads tiff
|
2008-11-08 21:39:10 +00:00
|
|
|
|
|
|
|
define $(PKG)_UPDATE
|
2013-10-20 07:02:10 +01:00
|
|
|
$(WGET) -q -O- 'https://bitbucket.org/libgd/gd-libgd/downloads/' | \
|
|
|
|
$(SED) -n 's,.*libgd-\([0-9.]*\)\.tar.*,\1,p' | \
|
2008-11-08 21:39:10 +00:00
|
|
|
head -1
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(PKG)_BUILD
|
2013-10-20 07:02:10 +01:00
|
|
|
$(SED) -i 's,-I@includedir@,-I@includedir@ -DNONDLL -DBGDWIN32,' '$(1)/config/gdlib-config.in'
|
2008-11-08 21:39:10 +00:00
|
|
|
cd '$(1)' && ./configure \
|
|
|
|
--host='$(TARGET)' \
|
|
|
|
--disable-shared \
|
|
|
|
--prefix='$(PREFIX)/$(TARGET)' \
|
|
|
|
--with-freetype='$(PREFIX)/$(TARGET)' \
|
|
|
|
--without-x \
|
2013-10-20 07:02:10 +01:00
|
|
|
CFLAGS='-DNONDLL'
|
2008-11-08 21:39:10 +00:00
|
|
|
$(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
|
2010-07-16 17:33:15 +01:00
|
|
|
|
|
|
|
'$(TARGET)-gcc' \
|
|
|
|
-W -Wall -Werror -ansi -pedantic \
|
2016-07-30 20:14:38 +01:00
|
|
|
'$(TEST_FILE)' -o '$(PREFIX)/$(TARGET)/bin/test-gd.exe' \
|
2013-10-20 07:02:10 +01:00
|
|
|
`'$(PREFIX)/$(TARGET)/bin/gdlib-config' --cflags --libs`
|
2008-11-08 21:39:10 +00:00
|
|
|
endef
|
2014-04-06 14:18:15 +01:00
|
|
|
|
|
|
|
$(PKG)_BUILD_SHARED =
|