wok-next view gejengel/receipt @ rev 21017
Some maintenance
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Oct 16 16:46:05 2018 +0300 (2018-10-16) |
parents | 2809ecb8c754 |
children | d5aab818505e |
line source
1 # SliTaz package receipt v2.
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 WEB_SITE="http://code.google.com/p/gejengel/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="http://gejengel.googlecode.com/files/$TARBALL"
14 BUILD_DEPENDS="glibmm-dev cairomm-dev gtkmm-dev libsigc++-dev taglib-dev \
15 imagemagick-dev imagemagick libxdg-basedir-dev alsa-lib-dev flac-dev \
16 ffmpeg-dev lcms-dev fftw-dev openexr-dev ilmbase-dev graphviz-dev \
17 util-linux-uuid-dev libogg-dev intltool libcroco sqlite3-dev gtk2-dev libtool"
19 compile_rules() {
20 sed \
21 -e 's/CODEC_TYPE_AUDIO/AVMEDIA_TYPE_AUDIO/' \
22 -e 's/SAMPLE_FMT_S16/AV_&/' -e 's/SAMPLE_FMT_U8/AV_&/' \
23 -e 's/SAMPLE_FMT_S32/AV_&/' \
24 -e 's/AVCODEC_MAX_AUDIO_FRAME_SIZE/192000/' \
25 -e 's/av_open_input_file\(.*\), NULL/avformat_open_input\1/' \
26 -e 's/avcodec_open(\([^)]*\)/avcodec_open2(\1, NULL/' \
27 -e 's/av_close_input_file(/avformat_close_input(\&/' \
28 -e 's/av_\(find_stream_info(m_pFormatContext\)/avformat_\1,NULL/' \
29 -i src/AudioDecoder/ffmpegdecoder.cpp
30 find . -name '*.h' -o -name '*.c*' | xargs sed -i 's|glibmm/i18n|glib/gi18n|'
32 ./configure \
33 --enable-alsa \
34 --enable-ffmpeg \
35 --enable-flac \
36 $CONFIGURE_ARGS &&
37 make &&
38 make install
39 }
41 genpkg_rules() {
42 mkdir -p $fs/usr $fs/etc
43 cp -a $install/usr/bin $fs/usr
44 DEPENDS="glibmm cairomm gtkmm libsigc++ taglib imagemagick libxdg-basedir \
45 alsa-lib flac ffmpeg sqlite3"
46 }