SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "ftgl"

# SliTaz package receipt.

PACKAGE="ftgl"
VERSION="2.4.0"
CATEGORY="x-window"
SHORT_DESC="OpenGL library to use arbitrary fonts."
MAINTAINER="slaxemulator@gmail.com"
LICENSE="GPL2"
WEB_SITE="https://github.com/frankheckenbach/ftgl"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="https://github.com/frankheckenbach/$PACKAGE/archive/v$VERSION.tar.gz"

DEPENDS="freeglut freetype gcc83-lib-base libglu-mesa mesa"
BUILD_DEPENDS="automake doxygen freeglut-dev freetype-dev gcc83
    libtool libglu-mesa-dev mesa-dev"

# What is the latest version available today?
current_version()
{
    wget -O - https://sourceforge.net/projects/ftgl/files/FTGL%20Source/ 2>/dev/null | \
    sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
    sed '/scope="row/!d;s|.*ource/||;s|/.*||;s|~|-|;q'
}

# Rules to configure and make the package.
compile_rules()
{
    # Binutils 2.22 break many packages build without LDFLAGS set correctly.
    export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lGL"
    
    ./autogen.sh &&
    ./configure        \
        CC=gcc-83    \
        CXX=g++-83    \
        --with-pic    \
        $CONFIGURE_ARGS &&
    make &&
    make install DESTDIR=$DESTDIR
}

# 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)