homebrew-core/Formula/cimg.rb
Dominyk Tiller 1a916dcc81
cimg 2.3.5
Closes #31454.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2018-08-25 19:18:48 +01:00

22 lines
614 B
Ruby

class Cimg < Formula
desc "C++ toolkit for image processing"
homepage "http://cimg.eu/"
url "http://cimg.eu/files/CImg_2.3.5.zip"
sha256 "3081db723f6e7702d2332e282cfedc61d90f7c79ade8aea8fdc1bb44c5036849"
bottle :unneeded
def install
include.install "CImg.h"
prefix.install "Licence_CeCILL-C_V1-en.txt", "Licence_CeCILL_V2-en.txt"
pkgshare.install "examples", "plugins"
end
test do
cp_r pkgshare/"examples", testpath
cp_r pkgshare/"plugins", testpath
cp include/"CImg.h", testpath
system "make", "-C", "examples", "mmacosx"
system "examples/image2ascii"
end
end