aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/xpaint/Makefile
blob: 8d4e060edbba49d3ba71a671949c748a2374ebda (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
36
37
38
39
40
41
42
# New ports collection makefile for:    xpaint
# Date created:     2 Jan 1995
# Whom:         swallace
#
# $FreeBSD$
#

PORTNAME=   xpaint
PORTVERSION=    2.9.8.2
CATEGORIES= graphics
MASTER_SITES=   SF/sf-${PORTNAME}/sf-${PORTNAME}/${PORTNAME}-${PORTVERSION:R}

MAINTAINER= johans@FreeBSD.org
COMMENT=    A simple paint program

LIB_DEPENDS=    png.6:${PORTSDIR}/graphics/png \
        jpeg:${PORTSDIR}/graphics/jpeg \
        openjpeg:${PORTSDIR}/graphics/openjpeg \
        tiff.4:${PORTSDIR}/graphics/tiff

USE_BZIP2=  yes
USE_IMAKE=  yes
USE_XORG=   xft xmu xpm

MAN1=       xpaint.1

post-extract:
    @${MKDIR} ${WRKSRC}/X11
    @${LN} -sf ../xaw3dxft ${WRKSRC}/X11/Xaw3d

post-patch:
    @${REINPLACE_CMD} -e \
        's|@PREFIX@|${PREFIX}|g ; \
         s|@XPMDIR@|${LOCALBASE}|g ; \
         s|@LOCALBASE@|${LOCALBASE}|g' ${WRKSRC}/Local.config
    @${REINPLACE_CMD} -e '/if (!image)/s/return;/return -1;/' \
        ${WRKSRC}/rw/readWriteTGA.c

pre-configure:
    @cd ${WRKSRC} && ${SH} ./configure xaw3dxft.a

.include <bsd.port.mk>