1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00

misc/img2xterm: update ImageMagick dependency

* 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.com
This commit is contained in:
Laurent 2024-01-12 09:27:59 +01:00 committed by Fernando Apesteguía
parent cb0e21adcc
commit ceb72bff4c
4 changed files with 26 additions and 26 deletions

View File

@ -1,19 +1,19 @@
PORTNAME= img2xterm
PORTVERSION= 1.0.0
DISTVERSIONPREFIX= v
PORTREVISION= 4
PORTREVISION= 5
CATEGORIES= misc
MAINTAINER= ports@FreeBSD.org
MAINTAINER= laurent.chardon@gmail.com
COMMENT= Display images on 256 color xterms
WWW= https://github.com/kfei/img2xterm
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= gmake magick ncurses
USE_GITHUB= yes
GH_ACCOUNT= kfei
USES= gmake magick:6 ncurses
PLIST_FILES= bin/img2xterm
.include <bsd.port.pre.mk>

View File

@ -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)

View File

@ -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)

View File

@ -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.