Merge branch 'master' of https://github.com/stefanhaustein/TerminalImageViewer into master
This commit is contained in:
commit
daf50506dd
2 changed files with 9 additions and 6 deletions
|
@ -17,6 +17,8 @@ See the difference by disabling this optimization using the `-0` option. Or just
|
|||
|
||||
- 2019-03-26: Exciting week: @Cableo has fixed output redirection, @boretom has added cross-compilation support to the build file and @AlanDeSmet has fixed tall thumbnails and greyscale images.
|
||||
- 2019-01-14: Install via snap: `sudo snap install --edge tiv`
|
||||
- 2020-04-09: @aaronliu0130 has added homebrew support.
|
||||
- 2020-07-05: @cxwx has fixed homebrew support.
|
||||
|
||||
## Installation
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
class Terminalimageviewer < Formula
|
||||
desc "Display images in a terminal using block graphic characters"
|
||||
homepage "https://github.com/stefanhaustein/TerminalImageViewer"
|
||||
url "https://github.com/stefanhaustein/TerminalImageViewer/archive/v1.0.0.tar.gz"
|
||||
sha256 "d28c5746d25d83ea707db52b54288c4fc1851c642ae021951967e69296450c8c"
|
||||
url "https://github.com/stefanhaustein/TerminalImageViewer/archive/v1.1.0.tar.gz"
|
||||
sha256 "727ddaa048643cb0a13e23bc308415060d99d8b1853883ad339ad7b952050d61"
|
||||
head "https://github.com/stefanhaustein/TerminalImageViewer.git"
|
||||
depends_on "gcc" => :build unless OS.linux?
|
||||
depends_on "imagemagick"
|
||||
|
@ -11,15 +11,16 @@ class Terminalimageviewer < Formula
|
|||
cd "src/main/cpp" do
|
||||
system "make"
|
||||
if OS.mac?
|
||||
# No expermimental/filesystem.h on mac
|
||||
system "#{Formula["gcc"].opt_bin}/gcc-#{Formula["gcc"].version_suffix}", "-std=c++17",
|
||||
# No expermimental/filesystem.h on mac.
|
||||
system "/usr/local/bin/gcc-#{Formula["gcc"].version_suffix}", "-std=c++17",
|
||||
"-Wall",
|
||||
"-fpermissive",
|
||||
"-fexceptions",
|
||||
"-O2", "-c",
|
||||
"-L/usr/local/opt/gcc/lib/gcc/10/",
|
||||
"tiv.cpp", "-o", "tiv.o"
|
||||
system "#{Formula["gcc"].opt_bin}/gcc-#{Formula["gcc"].version_suffix}", "tiv.o", "-o",
|
||||
"tiv", "-lstdc++fs",
|
||||
system "/usr/local/bin/gcc-#{Formula["gcc"].version_suffix}", "tiv.o", "-o",
|
||||
"tiv", "-L/usr/local/opt/gcc/lib/gcc/10/",
|
||||
"-pthread", "-s"
|
||||
else
|
||||
system "make"
|
||||
|
|
Loading…
Reference in a new issue