# tenacity/cfg - "Build" settings for package

#---------------------------------------------------------------------

[technotes]

1. The source tarball used by this  package was created based on "git"
upstream sources. The following command was used:

      ocgitfetch --run https://codeberg.org/tenacityteam/tenacity.git

#---------------------------------------------------------------------

2. "tenacity" is an important experiment because (a) "audacity" needed
to be dropped from the distro and  (b) "tenacity" is a replacement for
"audacity".

Explanation:  As of Fall 2021 there were multiple problems with "auda-
city":

      (a) Newer releases required a program named "conan" to build and
          "conan" was actively hostile to offline builds.

      (b) Newer releases were spyware.

      (c) Newer releases  modified licenses  in  a manner  that seemed
          problematic and possibly illegal.

#---------------------------------------------------------------------

3. As of the mid-2010s,  Audacity's  "AAC exports"  were  broken.  The
issue was related to an incompatibility between  FFmpeg and  Audacity.
The  upstream developers  suggested building FFmpeg with the following
switch to solve the problem,  but this  would  have led  to additional
problems:

      --disable-encoder=aac

#---------------------------------------------------------------------

[buildtimes]

#---------------------------------------------------------------------

[settings]
altpkg     = yes

exepack    = yes
license    = See "license*.txt" in installed tree
licfile    = LICENSE.txt
tmpsize    = 595M

dontfind   = portaudio18 wxwidgets \
wxwidgets28 wxwidgets30 wxwidgets-audacity ffmpeg2 ffmpeg3 ffmpeg4

setpaths   = \
alsa         cairo       drobilla     expat       \
ffmpeg5      flac        fluidsynth   fontconfig  \
freetype2    gtkcore     jsoncpp      lame        \
libebml      libid3tag   libmad       libmatroska \
libogg       libpng      libsbsms     libsndfile  \
libsoxr      libvorbis   libzip       openssl     \
portaudio19  portmidi    portsmf      pulseaudio  \
python3      soundtouch  sqlite3      tenacity    \
twolame      vampsdk     wxwidgets32  xorg        \
zlib

#---------------------------------------------------------------------

[depends]
actools
alsa
cairo
cmake
drobilla
expat
ffmpeg
fftw
flac
fluidsynth
fontconfig
freetype2
gawk
gconf
gpm
grep
gtkcore
infozip
jackone
jpeg
jsoncpp
ladspa
lame
libebml
libid3tag
libmad
libmatroska
libogg
libpng
libsamplerate
libsbsms
libsndfile
libsoxr
libvorbis
libxml2
libzip
openssl
orbit
pkgconf
portaudio19
portmidi
portsmf
pulseaudio
python
raptor2
rasqal
redland
sdl
sed
slang
soundtouch
sqlite3
taglib
tiff
twolame
vampsdk
wxcore
xorg
zlib

#---------------------------------------------------------------------

[configure]
mkdir obj && cd obj
cmake \
    -DCMAKE_BUILD_TYPE=RELEASE           \
    -DCMAKE_INSTALL_PREFIX=$PKGDIR_PROD  \
    -DCMAKE_INSTALL_LIBDIR=lib           \
    -DMIDI=ON                            \
    ..

#---------------------------------------------------------------------

[build]
cd obj
smpmake && make install

#---------------------------------------------------------------------

[postbuild]
BINDIR=$PKGDIR_PROD/bin
PROGBASE=tenacity

cd $PKGDIR_PROD/lib/
ln -nsf tenacity/* .

#---------------------------------------------------------------------

cd $BINDIR
rm -fr       ../xbin/
mkdir -p     ../xbin/
mv $PROGBASE ../xbin/
cp $PKGDIR_SPECIAL/$PROGBASE.wrapper.in $PROGBASE
chmod 755  $PROGBASE

#---------------------------------------------------------------------

# Original URLs. These URLs were valid at one point, but may have died
# since then. If you download newer versions of tarballs [etc.], don't
# delete  the  original versions,  as you may not  be able  to replace
# them.

[urls]
url_debian  = http://packages.debian.org/unstable/source/audacity
url_home    = http://audacity.sourceforge.net/
url_lfs     = n/a
url_tarball = git               # See "technotes" in "cfg" file

#---------------------------------------------------------------------

[history]
170625 Updated from 2.1.2 to 2.1.3
170917 Updated to 170917 ("git" date)
171116 Updated to 171116
180307 Updated to 180307
180623 Updated to 180623
180811 Updated to 180811
181023 Updated to d716b61b1 ("git" hash)
190309 Updated to 1c21e9358 (Same as "2.3.1")
210228 Updated to eb16476b3
210320 Updated to d5d4c46a3 (Same as "3.0.0")
211111 Replaced "audacity" with "tenacity" fork
211111 Updated to 697c0e764
220802 Updated to 91f8b4340
230109 Updated to 43daebb15
240124 Updated to 7fbb876f4
250205 Patched to fix FTBFS with newer 'C' compilers