wok-next annotate gejengel/receipt @ rev 16662

gejengel: update ffmpeg patch
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed May 14 07:43:12 2014 +0000 (2014-05-14)
parents 002d4bf6c905
children 828d10d5e797
rev   line source
pascal@11222 1 # SliTaz package receipt.
pascal@11222 2
pascal@11222 3 PACKAGE="gejengel"
pascal@11222 4 VERSION="0.1.4"
pascal@11222 5 CATEGORY="network"
pascal@11222 6 SHORT_DESC="A simple, light and clean audio player."
pascal@13025 7 MAINTAINER="pankso@slitaz.org"
pascal@15000 8 LICENSE="GPL2"
pascal@11222 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@11222 10 WEB_SITE="http://code.google.com/p/gejengel/"
pascal@11222 11 WGET_URL="http://gejengel.googlecode.com/files/$TARBALL"
pascal@11222 12
pascal@11222 13 DEPENDS="glibmm cairomm gtkmm libsigc++ taglib imagemagick libxdg-basedir \
pascal@16612 14 alsa-lib flac ffmpeg sqlite"
pascal@11222 15 BUILD_DEPENDS="glibmm-dev cairomm-dev gtkmm-dev libsigc++-dev taglib-dev \
pascal@11222 16 imagemagick-dev imagemagick libxdg-basedir-dev alsa-lib-dev flac-dev \
pascal@16612 17 ffmpeg-dev lcms-dev fftw-dev openexr-dev ilmbase-dev graphviz-dev \
pascal@13138 18 util-linux-uuid-dev libogg-dev intltool libcroco sqlite-dev gtk+-dev libtool"
pascal@11222 19
pascal@11222 20 # Rules to configure and make the package.
pascal@11222 21 compile_rules()
pascal@11222 22 {
pascal@16662 23 sed -i -e 's/CODEC_TYPE_AUDIO/AVMEDIA_TYPE_AUDIO/' \
pascal@16662 24 -e 's/SAMPLE_FMT_S16/AV_&/' -e 's/SAMPLE_FMT_U8/AV_&/' \
pascal@16662 25 -e 's/SAMPLE_FMT_S32/AV_&/' \
pascal@16662 26 -e 's/AVCODEC_MAX_AUDIO_FRAME_SIZE/192000/' \
pascal@16662 27 -e 's/av_open_input_file\(.*\), NULL/avformat_open_input\1/' \
pascal@16662 28 -e 's/avcodec_open(\([^)]*\)/avcodec_open2(\1, NULL/' \
pascal@16662 29 src/AudioDecoder/ffmpegdecoder.cpp
pascal@13138 30 find . -name '*.h' -o -name '*.c*' | xargs sed -i 's|glibmm/i18n|glib/gi18n|'
pascal@11222 31 ./configure --enable-alsa --enable-ffmpeg --enable-flac \
pascal@11222 32 $CONFIGURE_ARGS && make && make install
pascal@11222 33 }
pascal@11222 34
pascal@11222 35 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@11222 36 genpkg_rules()
pascal@11222 37 {
pascal@11222 38 mkdir -p $fs/usr $fs/etc
pascal@15000 39 cp -a $install/usr/bin $fs/usr
pascal@11222 40 }