Files
chromebrew/packages/libcaca.rb
Maximilian Downey Twiss f6b6cab229 Rename autotools constants to fall in line with the rest of crew (#10442)
* Rename CREW_OPTIONS to CREW_CONFIGURE_OPTIONS

* Rename build_extras and install_extras to configure_build_extras and configure_install_extras
2024-09-09 18:21:58 -05:00

67 lines
2.1 KiB
Ruby

require 'package'
class Libcaca < Package
description 'libcaca is a graphics library that outputs text instead of pixels, so that it can work on older video cards or text terminals.'
homepage 'https://github.com/cacalabs/libcaca'
@_ver = '0.99.beta20-f42aa68'
version "#{@_ver}-py3.12"
license 'GPL-2, ISC, LGPL-2.1 and WTFPL'
compatibility 'x86_64 aarch64 armv7l'
source_url 'https://github.com/cacalabs/libcaca/archive/f42aa68fc798db63b7b2a789ae8cf5b90b57b752.zip'
source_sha256 'a0d0afd5cc9733510f20dab2fcd59256c960b091307e37c921f158629204bfe0'
binary_compression 'tar.zst'
binary_sha256({
aarch64: '26cbffa922a211ff150e019db4dad1a71a817bc18419e61dfdd898ddac3093d0',
armv7l: '26cbffa922a211ff150e019db4dad1a71a817bc18419e61dfdd898ddac3093d0',
x86_64: '21c788591a10ea39365c8635e80ed9afd053ffbd5b83c7352112c6885d885601'
})
depends_on 'freeglut' # R
depends_on 'freetype' # R
depends_on 'gcc_lib' # R
depends_on 'glibc' # R
depends_on 'imlib2' # R
depends_on 'libbsd' # R
depends_on 'libglu' # R
depends_on 'libglvnd' # R
depends_on 'libmd' # R
depends_on 'libx11' # R
depends_on 'libxau' # R
depends_on 'libxcb' # R
depends_on 'libxdmcp' # R
depends_on 'libxext' # R
depends_on 'mesa' => :build
depends_on 'ncurses' # R
depends_on 'python3'
depends_on 'ruby' # R
depends_on 'slang' # R
depends_on 'zlib' # R
def self.patch
downloader 'https://patch-diff.githubusercontent.com/raw/cacalabs/libcaca/pull/66.patch',
'd8a8f7347c5cb7b1f63ef4ef112d7fecd9d39d1703f27fccfab10709fc284d51'
system 'patch -Np1 -i 66.patch'
downloader 'https://patch-diff.githubusercontent.com/raw/cacalabs/libcaca/pull/70.patch',
'173778700c92338a7b6d9f139053574359dd28829c8cdf8418df81632e002b6a'
system 'patch -Np1 -i 70.patch'
end
def self.build
system '[ -x configure ] || ./bootstrap'
system "./configure \
#{CREW_CONFIGURE_OPTIONS} \
--enable-gl \
--enable-ncurses \
--enable-network \
--enable-slang \
--enable-x11"
system 'make'
end
def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end