<commit_before>SECTION = "libs"
LICENSE = "GD"
LIC_FILES_CHKSUM = "file://COPYING;md5=c97638cafd3581eb87abd37332137669"
DESCRIPTION = "gd is a library used to create PNG, JPEG, or WBMP images."
DEPENDS = "freetype libpng jpeg zlib"
PR = "r5"

SRC_URI = "http://www.libgd.org/releases/gd-2.0.36RC1.tar.gz"
SRC_URI[md5sum] = "39ac48e6d5e0012a3bd2248a0102f209"
SRC_URI[sha256sum] = "dd7c1795271221b9237769b96b8cec7fbdc5db7b8954d864ead51fc1296a6ac8"

S = "${WORKDIR}/gd-2.0.36RC1"

inherit autotools binconfig gettext

EXTRA_OECONF += " --with-zlib=${STAGING_LIBDIR}/.. \
                  --with-png=${STAGING_LIBDIR}/.. \
                  --with-jpeg=${STAGING_LIBDIR}/.. \
                  --with-freetype \
                  --without-fontconfig \<commit_msg>gd: Add mirror for when libgd.org is down<commit_after>SECTION = "libs"
LICENSE = "GD"
LIC_FILES_CHKSUM = "file://COPYING;md5=c97638cafd3581eb87abd37332137669"
DESCRIPTION = "gd is a library used to create PNG, JPEG, or WBMP images."
DEPENDS = "freetype libpng jpeg zlib"
PR = "r5"

SRC_URI = "http://www.libgd.org/releases/gd-2.0.36RC1.tar.gz"
SRC_URI[md5sum] = "39ac48e6d5e0012a3bd2248a0102f209"
SRC_URI[sha256sum] = "dd7c1795271221b9237769b96b8cec7fbdc5db7b8954d864ead51fc1296a6ac8"

MIRRORS += "http://www.libgd.org/releases/ http://fossies.org/unix/www/ \n"

S = "${WORKDIR}/gd-2.0.36RC1"

inherit autotools binconfig gettext

EXTRA_OECONF += " --with-zlib=${STAGING_LIBDIR}/.. \
                  --with-png=${STAGING_LIBDIR}/.. \
                  --with-jpeg=${STAGING_LIBDIR}/.. \
                  --with-freetype \
                  --without-fontconfig \
{'fraction_non_alphanumeric': 0.14566687154271665, 'fraction_numerical': 0.12169637369391519, 'mean_word_length': 3.1319796954314723, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7480619', 'n_tokens_mistral': 795, 'n_tokens_neox': 685, 'n_words': 99}