wok-6.x annotate lame/receipt @ rev 24493

updated dokuwiki (20180422b -> 20200729)
author Hans-G?nter Theisgen
date Sat Feb 19 11:02:17 2022 +0100 (2022-02-19)
parents 9b51132bd0a9
children 7dd01dedad38
rev   line source
pankso@144 1 # SliTaz package receipt.
pankso@144 2
pankso@144 3 PACKAGE="lame"
Hans-G?nter@21095 4 VERSION="3.100"
pankso@206 5 CATEGORY="multimedia"
Hans-G?nter@21095 6 TAGS="audio encoder mp3"
pankso@144 7 SHORT_DESC="MPEG Audio Layer III (MP3) encoder."
pankso@144 8 MAINTAINER="pankso@slitaz.org"
pascal@15004 9 LICENSE="LGPL2"
Hans-G?nter@21095 10 WEB_SITE="http://lame.sourceforge.net/"
Hans-G?nter@21095 11
slaxemulator@6227 12 TARBALL="$PACKAGE-$VERSION.tar.gz"
pankso@16014 13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
pankso@16014 14
pascal@2479 15 DEPENDS="ncurses"
pascal@19089 16 BUILD_DEPENDS="gtk+-dev ncurses-dev libtinfo"
Hans-G?nter@21095 17 HOST_ARCH="i486 arm"
pankso@16014 18
pankso@16014 19 case "$ARCH" in
pascal@19089 20 arm) BUILD_DEPENDS="ncurses-dev libtinfo" ;;
pankso@16014 21 esac
pankso@144 22
pascal@24411 23 # What is the latest version available today?
pascal@24411 24 current_version()
pascal@24411 25 {
pascal@24411 26 wget -O - https://sourceforge.net/projects/lame/files/lame/ 2>/dev/null | \
pascal@24411 27 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24411 28 sed '/scope="row/!d;s|.*/lame/||;s|/.*||;q'
pascal@24411 29 }
pascal@24411 30
pankso@144 31 # Rules to configure and make the package.
pankso@144 32 compile_rules()
pankso@144 33 {
pascal@20212 34 sed -i 's|uname -m|echo i486|' Makefile.unix
pascal@17670 35 export LDFLAGS="$LDFLAGS -ltinfo"
Hans-G?nter@21095 36
Hans-G?nter@21095 37 ./configure \
Hans-G?nter@21095 38 --prefix=/usr \
Hans-G?nter@21095 39 --infodir=/usr/share/info \
Hans-G?nter@21095 40 --mandir=/usr/share/man \
pascal@1439 41 $CONFIGURE_ARGS &&
Hans-G?nter@21095 42 make -j 1 &&
slaxemulator@11159 43 make DESTDIR=$DESTDIR install
pankso@144 44 }
pankso@144 45
pankso@144 46 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@144 47 genpkg_rules()
pankso@144 48 {
pankso@144 49 mkdir -p $fs/usr/lib
Hans-G?nter@21095 50
Hans-G?nter@21095 51 cp -a $install/usr/lib/*.so* $fs/usr/lib
Hans-G?nter@21095 52 cp -a $install/usr/bin $fs/usr
pankso@144 53 }