aboutsummaryrefslogtreecommitdiff
path: root/graphics/xpaint/Makefile
blob: 9f9ba078c3109b26f466b34ada5fae3906269b76 (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
43
44
45
46
# Created by: Steven Wallace <swallace@FreeBSD.org>

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

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Simple paint program

LICENSE=	GPLv3

LIB_DEPENDS=	libpng.so:graphics/png \
		libopenjpeg.so:graphics/openjpeg15 \
		libtiff.so:graphics/tiff \
		libfreetype.so:print/freetype2 \
		libjbig.so:graphics/jbigkit \
		libXaw3dxft.so:x11-toolkits/libxaw3dxft
RUN_DEPENDS=	psselect:print/psutils \
		bash:shells/bash

GNU_CONFIGURE=	yes
USES=		ghostscript:run jpeg libtool:build pkgconfig shebangfix \
		tar:bzip2 xorg
USE_XORG=	xft xmu xpm
SHEBANG_FILES=	share/bin/imgmerge share/bin/xpaint_ocr

CPPFLAGS+=	-I${LOCALBASE}/include
LIBS+=		-L${LOCALBASE}/lib
MAKE_ENV+=	RM="${RM}"

post-patch:
	@${RM} ${WRKSRC}/XPaint.ad
	@${REINPLACE_CMD} -e 's/-ldl //' \
		${WRKSRC}/configure ${WRKSRC}/rw/configure
	@${REINPLACE_CMD} -e '/^LIBTOOL =/s|=.*|= ${LOCALBASE}/bin/libtool|' \
		-e '/^install-exec-am:/s/install-libLTLIBRARIES//' \
		${WRKSRC}/rw/Makefile.in
	@${REINPLACE_CMD} -e '/if (!image)/s/return;/return -1;/' \
		${WRKSRC}/rw/readWriteTGA.c

post-configure:
	${MAKE} -C ${WRKSRC} clean

.include <bsd.port.mk>