My cygport file is attached. Aside from some trivial URL changes, it differs from Yaakov's as follows:

1. I've bumped the version from 2.9.1 to 2.10.2, the latest upstream release.

2. I removed the Fedora patch freetype-2.9-ftsmooth.patch, which is no longer used in the Fedora build.

3. I removed the line 'cygmake refdoc', which was previously used to build the API reference manual. The html files are now included in the source tarball. The refdoc target is apparently now only needed for a build from the upstream git repo.

Ken
NAME="freetype2"
VERSION=2.10.2
RELEASE=1
CATEGORY="Libs"
SUMMARY="FreeType font engine"
DESCRIPTION="FreeType 2 is a software font engine that is designed to be small,
efficient, and highly customizable while capable of producing
high-quality output (glyph images)."
HOMEPAGE="http://freetype.sourceforge.net/";
SRC_URI="mirror://sourceforge/freetype/freetype-${VERSION}.tar.xz
         mirror://sourceforge/freetype/freetype-doc-${VERSION}.tar.xz
         mirror://sourceforge/freetype/ft2demos-${VERSION}.tar.xz"
SRC_DIR="freetype-${VERSION}"
PATCH_URI="
        
https://src.fedoraproject.org/cgit/rpms/freetype.git/plain/freetype-2.3.0-enable-spr.patch
        
https://src.fedoraproject.org/cgit/rpms/freetype.git/plain/freetype-2.2.1-enable-valid.patch
        
https://src.fedoraproject.org/cgit/rpms/freetype.git/plain/freetype-2.6.5-libtool.patch
"

PKG_NAMES="${NAME}-demos libfreetype6 libfreetype-devel libfreetype-doc"
freetype2_demos_SUMMARY="${SUMMARY} (demo programs)"
freetype2_demos_CONTENTS="usr/bin/ft*.exe* usr/bin/tt*.exe"
libfreetype6_CONTENTS="--exclude=html usr/bin/*.dll usr/share/doc/"
libfreetype_devel_CONTENTS="usr/include/ usr/lib/ usr/share/aclocal/"
libfreetype_doc_CATEGORY="Doc"
libfreetype_doc_CONTENTS="usr/share/doc/${NAME}/html/"

DIFF_EXCLUDES='aclocal.m4 configure *.html'

src_compile() {
        cd ${S}/builds/unix
        NO_AUTOHEADER=1 \
        ACLOCAL_FLAGS="-I ." \
        cygautoreconf

        mkdir -p ${B}/freetype2
        lndir ${S} ${B}/freetype2
        cd ${B}/freetype2
        CYGCONF_SOURCE=${B}/freetype2
        # harfbuzz: new in 2.5.3, circular dep
        cygconf --with-zlib --with-bzip2 --with-png --without-harfbuzz
        cygmake all

        mkdir -p ${B}/ft2demos
        lndir ${S}/../ft2demos-${PV} ${B}/ft2demos
        cd ${B}/ft2demos
        cygmake
}

src_install() {
        local d

        cd ${B}/freetype2
        cyginstall

        cd ${B}/ft2demos
        dobin bin/*.exe

        cd ${S}/docs
        dodoc [A-HJ-Z]* *.txt

        docinto html
        dodoc ft2faq.html

        for d in design glyphs reference tutorial
        do
                docinto html/${d}
                dodoc ${d}/*
        done
}

Reply via email to