wok-6.x annotate gejengel/receipt @ rev 19659

Up cookutils (873): bugfix
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Jan 27 15:55:45 2017 +0200 (2017-01-27)
parents 315e6df21801
children 22980cdd8a20
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@19144 29 -e 's/av_close_input_file(/avformat_close_input(\&/' \
pascal@19144 30 -e 's/av_\(find_stream_info(m_pFormatContext\)/avformat_\1,NULL/' \
pascal@16662 31 src/AudioDecoder/ffmpegdecoder.cpp
pascal@13138 32 find . -name '*.h' -o -name '*.c*' | xargs sed -i 's|glibmm/i18n|glib/gi18n|'
pascal@11222 33 ./configure --enable-alsa --enable-ffmpeg --enable-flac \
pascal@11222 34 $CONFIGURE_ARGS && make && make install
pascal@11222 35 }
pascal@11222 36
pascal@11222 37 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@11222 38 genpkg_rules()
pascal@11222 39 {
pascal@11222 40 mkdir -p $fs/usr $fs/etc
pascal@15000 41 cp -a $install/usr/bin $fs/usr
pascal@11222 42 }