wok view gejengel/receipt @ rev 24742
updated libffcall (2.2 -> 2.4)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Mar 16 10:31:26 2022 +0100 (2022-03-16) |
parents | 2564e55a310b |
children | 0f92b8cc8086 |
line source
1 # SliTaz package receipt.
3 PACKAGE="gejengel"
4 VERSION="0.1.4"
5 CATEGORY="network"
6 SHORT_DESC="A simple, light and clean audio player."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://github.com/dirkvdb/gejengel"
11 WGET_URL="http://gejengel.googlecode.com/files/$TARBALL"
13 DEPENDS="glibmm cairomm gtkmm libsigc++ taglib imagemagick libxdg-basedir \
14 alsa-lib flac ffmpeg sqlite"
15 BUILD_DEPENDS="glibmm-dev cairomm-dev gtkmm-dev libsigc++-dev taglib-dev \
16 imagemagick-dev imagemagick libxdg-basedir-dev alsa-lib-dev flac-dev \
17 ffmpeg-dev lcms-dev fftw-dev openexr-dev ilmbase-dev graphviz-dev libgnutls \
18 util-linux-uuid-dev libogg-dev intltool libcroco sqlite-dev gtk+-dev libtool"
20 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - https://raw.githubusercontent.com/dirkvdb/gejengel/master/ChangeLog 2>/dev/null | \
24 sed '/^Version /!d;s|.*ersion ||;s| .*||' | sort -Vr | sed q
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 sed -i 's|ImageMagick++|Magick++|' configure*
31 sed -i -e 's/CODEC_TYPE_AUDIO/AVMEDIA_TYPE_AUDIO/' \
32 -e 's/SAMPLE_FMT_S16/AV_&/' -e 's/SAMPLE_FMT_U8/AV_&/' \
33 -e 's/SAMPLE_FMT_S32/AV_&/' \
34 -e 's/AVCODEC_MAX_AUDIO_FRAME_SIZE/192000/' \
35 -e 's/av_open_input_file\(.*\), NULL/avformat_open_input\1/' \
36 -e 's/avcodec_open(\([^)]*\)/avcodec_open2(\1, NULL/' \
37 -e 's/av_close_input_file(/avformat_close_input(\&/' \
38 -e 's/av_\(find_stream_info(m_pFormatContext\)/avformat_\1,NULL/' \
39 src/AudioDecoder/ffmpegdecoder.cpp
40 find . -name '*.h' -o -name '*.c*' | xargs sed -i 's|glibmm/i18n|glib/gi18n|'
41 ./configure --enable-alsa --enable-ffmpeg --enable-flac \
42 $CONFIGURE_ARGS && make && make install
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 mkdir -p $fs/usr $fs/etc
49 cp -a $install/usr/bin $fs/usr
50 }