wok-current annotate freetype/receipt @ rev 25731

Merge wok for both arch and few updates
author Stanislas Leduc <shann@slitaz.org>
date Thu Dec 05 08:28:03 2024 +0000 (2 months ago)
parents a23978bfa665
children
rev   line source
pankso@21 1 # SliTaz package receipt.
pankso@21 2
pankso@21 3 PACKAGE="freetype"
Hans-G?nter@24573 4 VERSION="2.11.1"
pankso@21 5 CATEGORY="x-window"
Hans-G?nter@22781 6 SHORT_DESC="A free, high-quality, and portable font engine."
pankso@21 7 MAINTAINER="pankso@slitaz.org"
al@18549 8 LICENSE="FTL GPL2"
al@19306 9 WEB_SITE="https://www.freetype.org/"
Hans-G?nter@22781 10
Hans-G?nter@22781 11 TARBALL="$PACKAGE-$VERSION.tar.xz"
al@18549 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
Hans-G?nter@22781 13
shann@25629 14 DEPENDS="libpng zlib"
shann@25629 15 BUILD_DEPENDS="autoconf automake bzip2-dev harfbuzz-dev \
shann@25629 16 libpng-dev libtool"
shann@25629 17
shann@25629 18 # At first build, do without harfbuzz dep
shann@25629 19 # When harfbuzz build, rebuild freetype with harfbuzz as dep
shann@25629 20
Hans-G?nter@22781 21
shann@25728 22 HOST_ARCH="i486 arm x86_64"
al@14225 23
pascal@24069 24 current_version()
pascal@24069 25 {
pascal@24069 26 wget -O - $WEB_SITE 2>/dev/null | \
pascal@24069 27 sed '/h.>FreeType [0-9]/!d;s|.*pe ||;s|<.*||;q'
pascal@24069 28 }
pascal@24069 29
pankso@21 30 # Rules to configure and make the package.
pankso@21 31 compile_rules()
pankso@21 32 {
Hans-G?nter@22781 33 # patch -p1 -i $stuff/freetype-2.6.4.patch
al@18549 34
al@18549 35 ./autogen.sh &&
Hans-G?nter@22781 36 ./configure \
Hans-G?nter@22781 37 --sysconfdir=/etc \
pascal@2486 38 $CONFIGURE_ARGS &&
pascal@14231 39 make &&
al@18549 40 make install
pascal@22802 41 mkdir -p $DESTDIR/usr/bin
pascal@22802 42 cp builds/unix/freetype-config $DESTDIR/usr/bin
pankso@21 43 }
pankso@21 44
pankso@21 45 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@21 46 genpkg_rules()
pankso@21 47 {
al@19308 48 cook_copy_files *.so*
pankso@21 49 }