wok-next annotate gejengel/receipt @ rev 21727

created recipe for vbindiff
author Hans-G?nter Theisgen
date Sat Nov 21 14:32:44 2020 +0100 (2020-11-21)
parents d5aab818505e
children
rev   line source
al@21017 1 # SliTaz package receipt v2.
pascal@11222 2
pascal@11222 3 PACKAGE="gejengel"
pascal@11222 4 VERSION="0.1.4"
pascal@11222 5 CATEGORY="network"
al@21017 6 SHORT_DESC="A simple, light and clean audio player"
Hans-G?nter@21274 7 MAINTAINER="maintainer@slitaz.org"
pascal@15000 8 LICENSE="GPL2"
al@21020 9 WEB_SITE="https://github.com/dirkvdb/gejengel"
al@21017 10
pascal@11222 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@11222 12 WGET_URL="http://gejengel.googlecode.com/files/$TARBALL"
pascal@11222 13
Hans-G?nter@21274 14 BUILD_DEPENDS="alsa-lib-dev cairomm-dev ffmpeg-dev fftw-dev flac-dev glibmm-dev
Hans-G?nter@21274 15 graphviz-dev gtk2-dev gtkmm-dev ilmbase-dev imagemagick imagemagick-dev
Hans-G?nter@21274 16 intltool lcms-dev libcroco libogg-dev libsigc++-dev libtool
Hans-G?nter@21274 17 libxdg-basedir-dev openexr-dev sqlite3-dev util-linux-uuid-dev taglib-dev"
pascal@11222 18
al@21017 19 compile_rules() {
al@21017 20 sed \
al@21017 21 -e 's/CODEC_TYPE_AUDIO/AVMEDIA_TYPE_AUDIO/' \
pascal@16662 22 -e 's/SAMPLE_FMT_S16/AV_&/' -e 's/SAMPLE_FMT_U8/AV_&/' \
pascal@16662 23 -e 's/SAMPLE_FMT_S32/AV_&/' \
pascal@16662 24 -e 's/AVCODEC_MAX_AUDIO_FRAME_SIZE/192000/' \
pascal@16662 25 -e 's/av_open_input_file\(.*\), NULL/avformat_open_input\1/' \
pascal@16662 26 -e 's/avcodec_open(\([^)]*\)/avcodec_open2(\1, NULL/' \
pascal@19144 27 -e 's/av_close_input_file(/avformat_close_input(\&/' \
pascal@19144 28 -e 's/av_\(find_stream_info(m_pFormatContext\)/avformat_\1,NULL/' \
al@21017 29 -i src/AudioDecoder/ffmpegdecoder.cpp
Hans-G?nter@21274 30
pascal@13138 31 find . -name '*.h' -o -name '*.c*' | xargs sed -i 's|glibmm/i18n|glib/gi18n|'
al@21017 32
Hans-G?nter@21274 33 sed -i 's|ImageMagick++|Magick++|' configure*
Hans-G?nter@21274 34
Hans-G?nter@21274 35 ./configure \
Hans-G?nter@21274 36 --enable-alsa \
Hans-G?nter@21274 37 --enable-ffmpeg \
Hans-G?nter@21274 38 --enable-flac \
al@21017 39 $CONFIGURE_ARGS &&
al@21017 40 make &&
al@21017 41 make install
pascal@11222 42 }
pascal@11222 43
Hans-G?nter@21274 44 genpkg_rules()
Hans-G?nter@21274 45 {
pascal@11222 46 mkdir -p $fs/usr $fs/etc
pascal@15000 47 cp -a $install/usr/bin $fs/usr
Hans-G?nter@21274 48 DEPENDS="alsa-lib cairomm ffmpeg flac glibmm gtkmm imagemagick libsigc++
Hans-G?nter@21274 49 libxdg-basedir sqlite3 taglib"
pascal@11222 50 }