summaryrefslogtreecommitdiff
path: root/graphics/aview/Makefile
blob: 3e37f76d78741dd669199b7d07fa21fc07e68377 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
PORTNAME=	aview
DISTVERSION=	1.3.0rc1
PORTREVISION=	7
CATEGORIES=	graphics
MASTER_SITES=	SF/aa-project/${PORTNAME}/${DISTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Graphics viewer for viewing netpbm format on console or X using aalib
WWW=		https://aa-project.sourceforge.net/aview/

RUN_DEPENDS=	anytopnm:graphics/netpbm
LIB_DEPENDS=	libaa.so:graphics/aalib

USES=		magick:6,run

WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION:R}

GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--with-x=no

post-patch:
	@${REINPLACE_CMD} -e 's|/bash|/sh|g' ${WRKSRC}/asciiview
	@${FIND} ${WRKSRC} -name '*.[ch]' | ${XARGS} ${REINPLACE_CMD} -e \
		's|<malloc.h>|<stdlib.h>|g'

.include <bsd.port.mk>