Browse Source
* Update dependency from old ImageMagick-6 to current * Various minor changes to make portlint happy * Submitter becomes maintainer (already maintainer of sysutils/modules) PR: 276266 Reported by: laurent.chardon@gmail.comoverlay

committed by
Fernando Apesteguía

4 changed files with 26 additions and 26 deletions
@ -1,22 +0,0 @@ |
|||
--- Makefile.orig 2017-05-08 16:25:31.094039000 +0200 |
|||
+++ Makefile 2017-05-08 16:25:49.406674000 +0200 |
|||
@@ -1,19 +1,3 @@ |
|||
-PREFIX = /usr/local |
|||
-INSTALL = install |
|||
-LN = ln -fs |
|||
- |
|||
-ifeq ($(shell sh -c 'which gcc>/dev/null 2>/dev/null && echo y'), y) |
|||
- CC = gcc |
|||
- CFLAGS = -O2 -Wall |
|||
- LDFLAGS = -s |
|||
-endif |
|||
- |
|||
-ifeq ($(shell sh -c 'uname'), Darwin) |
|||
- CC = clang |
|||
- CFLAGS = -O2 -Wall |
|||
- LDFLAGS = |
|||
-endif |
|||
- |
|||
ifeq ($(shell sh -c 'which ncurses5-config>/dev/null 2>/dev/null && echo y'), y) |
|||
DEFS = |
|||
CFLAGS += $(shell ncurses5-config --cflags) |
@ -0,0 +1,20 @@ |
|||
--- img2xterm.c.orig 2024-01-11 14:08:58 UTC |
|||
+++ img2xterm.c |
|||
@@ -7,7 +7,7 @@ |
|||
#include <sys/ioctl.h> |
|||
#include <limits.h> |
|||
#include <math.h> |
|||
-#include <wand/MagickWand.h> |
|||
+#include <MagickWand/MagickWand.h> |
|||
#include <unistd.h> |
|||
|
|||
#ifndef NO_CURSES |
|||
@@ -288,7 +288,7 @@ void xtermfit(MagickWand* wand) |
|||
int scaled_width = (int)floor(rs > ri ? wi * hs / hi : ws); |
|||
int scaled_height = (int)floor(rs > ri ? hs : hi * ws / wi); |
|||
|
|||
- MagickResizeImage(wand, scaled_width, scaled_height, LanczosFilter, 1); |
|||
+ MagickResizeImage(wand, scaled_width, scaled_height, LanczosFilter); |
|||
} |
|||
|
|||
void usage(int ret, const char* binname) |
@ -1 +1,3 @@ |
|||
Display images in terminal |
|||
img2xterm is a program that can display bitmap images on 256-colour terminals |
|||
by converting them into Unicode block characters and xterm compatible control |
|||
sequences. |
|||
|
Loading…
Reference in new issue