SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "opencpn"

# SliTaz package receipt.

PACKAGE="opencpn"
VERSION="1.3.2"
CATEGORY="utilities"
SHORT_DESC="A concise Chart/plotter Navigator"
MAINTAINER="allan316@gmail.com"
LICENSE="GPL2"
SUGGESTED="nvidia"
TARBALL="$PACKAGE-$VERSION.tar.bz2"
WEB_SITE="https://www.opencpn.org/"
WGET_URL="http://nchc.dl.sourceforge.net/sourceforge/$PACKAGE/$TARBALL"

DEPENDS="wxWidgets28 mesa libglu-mesa"
BUILD_DEPENDS="wxWidgets28-dev mesa-dev libglu-mesa"
TAGS="office"

# What is the latest version available today?
current_version()
{
    wget -O - https://sourceforge.net/projects/opencpn/files/opencpn/ 2>/dev/null | \
    sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
    sed '/scope="row/!d;s|.*/opencpn/||;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"
    
    cd $src
    busybox patch -p0 -i $stuff/glib.u
    ./configure \
        --prefix=/usr \
        --infodir=/usr/share/info \
        --mandir=/usr/share/man \
        $CONFIGURE_ARGS &&
    make && make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr
    cp -a $install/usr/bin $fs/usr
    cp -a $install/usr/share $fs/usr
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)