aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/aview/Makefile
blob: cc5fbf0ba5b0eef993ac1f6c1044747ba0f1b4f1 (plain) (blame)
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
27
28
29
30
31
32
33
34
35
# New ports collection Makefile for:    aview
# Date created:     Dec 18 1997
# Whom:         frankch@waru.life.nthu.edu.tw
#
# $FreeBSD$
#

PORTNAME=   aview
PORTVERSION=    1.3.0.r1
PORTREVISION=   2
CATEGORIES= graphics
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= aa-project
DISTNAME=   ${PORTNAME}-${PORTVERSION:S/.r/rc/}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Graphics viewer for viewing netpbm format on console or X using aalib

RUN_DEPENDS=    anytopnm:${PORTSDIR}/graphics/netpbm \
        convert:${PORTSDIR}/graphics/ImageMagick
LIB_DEPENDS=    aa.1:${PORTSDIR}/graphics/aalib

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

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

MAN1=       asciiview.1 aview.1

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>