You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mxe/src/gd.mk

38 lines
1.4 KiB

# This file is part of MXE. See LICENSE.md for licensing information.
PKG := gd
$(PKG)_WEBSITE := https://libgd.github.io/
$(PKG)_DESCR := GD (without support for xpm)
$(PKG)_IGNORE :=
$(PKG)_VERSION := 2.1.0
$(PKG)_CHECKSUM := fa6665dfe3d898019671293c84d77067a3d2ede50884dbcb6df899d508370e5a
$(PKG)_SUBDIR := libgd-$($(PKG)_VERSION)
$(PKG)_FILE := libgd-$($(PKG)_VERSION).tar.xz
$(PKG)_URL := https://bitbucket.org/libgd/gd-libgd/downloads/$($(PKG)_FILE)
$(PKG)_DEPS := cc fontconfig freetype jpeg libpng libvpx pthreads tiff
define $(PKG)_UPDATE
$(WGET) -q -O- 'https://bitbucket.org/libgd/gd-libgd/downloads/' | \
$(SED) -n 's,.*libgd-\([0-9.]*\)\.tar.*,\1,p' | \
head -1
endef
define $(PKG)_BUILD
$(SED) -i 's,-I@includedir@,-I@includedir@ -DNONDLL -DBGDWIN32,' '$(1)/config/gdlib-config.in'
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--disable-shared \
--prefix='$(PREFIX)/$(TARGET)' \
--with-freetype='$(PREFIX)/$(TARGET)' \
--without-x \
CFLAGS='-DNONDLL'
$(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
'$(TARGET)-gcc' \
-W -Wall -Werror -ansi -pedantic \
'$(TEST_FILE)' -o '$(PREFIX)/$(TARGET)/bin/test-gd.exe' \
`'$(PREFIX)/$(TARGET)/bin/gdlib-config' --cflags --libs`
endef
$(PKG)_BUILD_SHARED =