wok-next view gejengel/receipt @ rev 20441
linux, linux-dev: fix mess with i386|i486, update 32bit config
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Feb 24 05:41:11 2018 +0200 (2018-02-24) |
parents | 828d10d5e797 |
children | f48456621a9d |
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="http://code.google.com/p/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 sqlite3"
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 \
18 util-linux-uuid-dev libogg-dev intltool libcroco sqlite3-dev gtk+-dev libtool"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 sed -i -e 's/CODEC_TYPE_AUDIO/AVMEDIA_TYPE_AUDIO/' \
24 -e 's/SAMPLE_FMT_S16/AV_&/' -e 's/SAMPLE_FMT_U8/AV_&/' \
25 -e 's/SAMPLE_FMT_S32/AV_&/' \
26 -e 's/AVCODEC_MAX_AUDIO_FRAME_SIZE/192000/' \
27 -e 's/av_open_input_file\(.*\), NULL/avformat_open_input\1/' \
28 -e 's/avcodec_open(\([^)]*\)/avcodec_open2(\1, NULL/' \
29 -e 's/av_close_input_file(/avformat_close_input(\&/' \
30 -e 's/av_\(find_stream_info(m_pFormatContext\)/avformat_\1,NULL/' \
31 src/AudioDecoder/ffmpegdecoder.cpp
32 find . -name '*.h' -o -name '*.c*' | xargs sed -i 's|glibmm/i18n|glib/gi18n|'
33 ./configure --enable-alsa --enable-ffmpeg --enable-flac \
34 $CONFIGURE_ARGS && make && make install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr $fs/etc
41 cp -a $install/usr/bin $fs/usr
42 }