SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "pjsip"

# SliTaz package receipt.

PACKAGE="pjsip"
VERSION="2.11.1"
CATEGORY="network"
SHORT_DESC="library SIP, SDP, RTP, STUN, TURN, and ICE."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL2"
WEB_SITE="https://www.pjsip.org/"
REPOLOGY="pjproject"

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

DEPENDS="libssl opus"
BUILD_DEPENDS="alsa-lib-dev openssl-dev opus-dev python-dev"

# What is the latest version available today?
current_version()
{
    wget -O - https://github.com/pjsip/pjproject/releases 2>/dev/null | \
    sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
}

# Rules to configure and make the package.
compile_rules()
{
    ./configure            \
        --prefix=/usr        \
        --enable-shared        \
        --disable-static    \
        --enable-memalign-hack    \
        --disable-sound        \
        --disable-sdl        \
        --disable-v4l2        \
        --disable-ffmpeg    \
        --disable-openh264    \
        --disable-libyuv    \
        --disable-speex-aec    \
        --disable-bcg729    \
        --disable-l16-codec    \
        --disable-g722-codec    \
        --disable-g7221-codec    \
        --disable-opencore-amr    \
        --disable-silk        \
        --disable-video        \
        --disable-ext-sound    \
        --disable-ipp        \
        --without-external-pa    \
        --without-external-srtp    \
        --disable-resample    \
        --disable-libwebrtc    \
        --enable-epoll        \
        $CONFIGURE_ARGS &&
    make &&
    make install DESTDIR=$DESTDIR

    cd pjsip-apps/src/py_pjsua
    python setup.py install --root=$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)