wok-current annotate rtmpdump/receipt @ rev 25693

Up depends pkgs for cups, need to rebuild it for ssl 3.0
author Stanislas Leduc <shann@slitaz.org>
date Sun Mar 24 15:17:37 2024 +0000 (3 months ago)
parents e717a4953b0e
children
rev   line source
pankso@15880 1 # SliTaz package receipt.
pankso@15880 2
pankso@15880 3 PACKAGE="rtmpdump"
Hans-G?nter@21852 4 VERSION="2.4"
pankso@15880 5 CATEGORY="multimedia"
Hans-G?nter@21852 6 SHORT_DESC="A toolkit for RTMP streams."
pankso@15880 7 MAINTAINER="pankso@slitaz.org"
pankso@15880 8 LICENSE="GPL2"
Hans-G?nter@21852 9 WEB_SITE="https://rtmpdump.mplayerhq.hu/"
Hans-G?nter@21852 10
Hans-G?nter@21852 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@24975 12 WGET_URL="https://rtmpdump.mplayerhq.hu/download/$TARBALL"
pankso@15880 13
pankso@15880 14 DEPENDS="libssl"
pankso@15880 15 BUILD_DEPENDS="openssl-dev"
pankso@15880 16
pascal@24459 17 # What is the latest version available today?
pascal@24459 18 current_version()
pascal@24459 19 {
pascal@24459 20 wget -O - $WEB_SITE 2>/dev/null | \
pascal@24459 21 sed '/latest rel/!d;s|.* is ||;s| .*||;q'
pascal@24459 22 }
pascal@24459 23
pankso@15880 24 # Rules to configure and make the package.
pankso@15880 25 compile_rules()
pankso@15880 26 {
shann@25634 27 # patch makefiles for shared library install
shann@25634 28 patch -p1 < $stuff/librtmp-makefile.patch
shann@25634 29 # Patch for openssl
shann@25634 30 # see https://github.com/JudgeZarbi/RTMPDump-OpenSSL-1.1/issues/2
shann@25634 31 patch -p1 < $stuff/librtmp-openssl-1.1.x-build-fixes.diff
shann@25634 32
pankso@15880 33 mkdir -p $DESTDIR/usr/lib
Hans-G?nter@21852 34 make &&
Hans-G?nter@21852 35 make install \
Hans-G?nter@21852 36 prefix="/usr" \
shann@25634 37 libdir="/usr/lib" \
Hans-G?nter@21852 38 sbindir="/usr/bin" \
Hans-G?nter@21852 39 mandir="/usr/share/man" \
Hans-G?nter@21852 40 DESTDIR="$DESTDIR"
pankso@15880 41 }
pankso@15880 42
pankso@15880 43 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@15880 44 genpkg_rules()
pankso@15880 45 {
pankso@15880 46 mkdir -p $fs/usr/lib
Hans-G?nter@21852 47
Hans-G?nter@21852 48 cp -a $install/usr/lib/*.so* $fs/usr/lib
Hans-G?nter@21852 49 cp -a $install/usr/bin $fs/usr
pankso@15880 50 }