1SUMMARY="Versatile and fast Unicode/ASCII/ANSI graphics renderer" 2DESCRIPTION="Chafa is a command-line utility that converts all kinds of \ 3images, including animated GIFs, into sixel or ANSI/Unicode character output \ 4that can be displayed in a terminal. 5 6It is highly configurable, with support for alpha transparency and multiple \ 7color modes and color spaces, combining selectable ranges of Unicode \ 8characters to produce the desired output." 9HOMEPAGE="https://hpjansson.org/chafa/" 10COPYRIGHT="2018-2022 Hans Petter Jansson et al 11 2004 Richard Wilson 12 2008 Sean Fox" 13LICENSE="GNU GPL v3 14 GNU LGPL v3" 15REVISION="3" 16SOURCE_URI="https://github.com/hpjansson/chafa/archive/refs/tags/$portVersion.tar.gz" 17CHECKSUM_SHA256="6a76719a1d67b772dcf81cd6959cfebae74ea1c92a09759e11b52f30b9345d40" 18 19ARCHITECTURES="all !x86_gcc2" 20SECONDARY_ARCHITECTURES="x86" 21 22# On x86_gcc2 we don't want to install the commands in bin/<arch>/, but in bin/. 23commandSuffix=$secondaryArchSuffix 24commandBinDir=$binDir 25if [ "$targetArchitecture" = x86_gcc2 ]; then 26 commandSuffix= 27 commandBinDir=$prefix/bin 28fi 29 30libVersion="0.8.4" 31libVersionCompat="$libVersion compat >= ${libVersion%%.*}" 32 33PROVIDES=" 34 chafa$secondaryArchSuffix = $portVersion 35 cmd:chafa$commandSuffix = $portVersion 36 lib:libchafa$secondaryArchSuffix = $libVersionCompat 37 " 38REQUIRES=" 39 haiku$secondaryArchSuffix 40 lib:libfreetype$secondaryArchSuffix 41 lib:libglib_2.0$secondaryArchSuffix 42 lib:libgomp$secondaryArchSuffix 43 lib:libintl$secondaryArchSuffix 44 lib:libMagickWand_7.Q16HDRI$secondaryArchSuffix 45 " 46 47PROVIDES_devel=" 48 chafa${secondaryArchSuffix}_devel = $portVersion 49 devel:libchafa$secondaryArchSuffix = $libVersionCompat 50 " 51REQUIRES_devel=" 52 chafa$secondaryArchSuffix == $portVersion base 53 " 54 55BUILD_REQUIRES=" 56 haiku${secondaryArchSuffix}_devel 57 devel:libfreetype$secondaryArchSuffix 58 devel:libglib_2.0$secondaryArchSuffix 59 devel:libMagickWand_7.Q16HDRI$secondaryArchSuffix 60 " 61BUILD_PREREQUIRES=" 62 cmd:aclocal 63 cmd:autoreconf 64 cmd:awk 65 cmd:gcc$secondaryArchSuffix 66 cmd:gtkdocize 67 cmd:libtoolize$secondaryArchSuffix 68 cmd:make 69 cmd:pkg_config$secondaryArchSuffix 70 cmd:which 71 " 72 73defineDebugInfoPackage chafa$secondaryArchSuffix \ 74 $libDir/libchafa.so.$libVersion 75 76BUILD() 77{ 78 mkdir -p m4 79 NOCONFIGURE=1 ./autogen.sh 80 runConfigure --omit-dirs binDir ./configure \ 81 --bindir=$commandBinDir \ 82 --disable-static 83 make $jobArgs OBJ_DIR=objects 84} 85 86INSTALL() 87{ 88 make install 89 90 # remove libtool file 91 rm $libDir/libchafa.la 92 93 prepareInstalledDevelLib libchafa 94 fixPkgconfig 95 96 packageEntries devel \ 97 $developDir 98} 99 100TEST() 101{ 102 make check 103} 104