SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "freetype"

# SliTaz package receipt.

PACKAGE="freetype"
VERSION="2.11.1"
CATEGORY="x-window"
SHORT_DESC="A free, high-quality, and portable font engine."
MAINTAINER="pankso@slitaz.org"
LICENSE="FTL GPL2"
WEB_SITE="https://www.freetype.org/"

TARBALL="$PACKAGE-$VERSION.tar.xz"
WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"

DEPENDS="libpng zlib"
BUILD_DEPENDS="autoconf automake bzip2-dev harfbuzz-dev \
libpng-dev libtool"

# At first build, do without harfbuzz dep
# When harfbuzz build, rebuild freetype with harfbuzz as dep


HOST_ARCH="i486 arm"

current_version()
{
    wget -O - $WEB_SITE 2>/dev/null | \
    sed '/h.>FreeType [0-9]/!d;s|.*pe ||;s|<.*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
#    patch -p1 -i $stuff/freetype-2.6.4.patch

    ./autogen.sh &&
    ./configure            \
        --sysconfdir=/etc    \
        $CONFIGURE_ARGS &&
    make &&
    make install
    mkdir -p $DESTDIR/usr/bin
    cp builds/unix/freetype-config $DESTDIR/usr/bin
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cook_copy_files *.so*
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)