blob: 6cf824248d7b28620f957e9aa228af72949f8267 (
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
47
48
49
50
|
# Created by: swallace
# $FreeBSD$
PORTNAME= xpaint
PORTVERSION= 2.9.9.4
PORTREVISION= 1
CATEGORIES= graphics
MASTER_SITES= SF/sf-${PORTNAME}/sf-${PORTNAME}/${PORTNAME}-${PORTVERSION:R}
MAINTAINER= johans@FreeBSD.org
COMMENT= A simple paint program
LIB_DEPENDS= png15:${PORTSDIR}/graphics/png \
jpeg:${PORTSDIR}/graphics/jpeg \
openjpeg:${PORTSDIR}/graphics/openjpeg \
tiff:${PORTSDIR}/graphics/tiff \
freetype:${PORTSDIR}/print/freetype2 \
jbig:${PORTSDIR}/graphics/jbigkit \
Xaw3dxft:${PORTSDIR}/x11-toolkits/libxaw3dxft
RUN_DEPENDS= psselect:${PORTSDIR}/print/psutils
USE_BZIP2= yes
USE_XORG= xft xmu xpm
USE_AUTOTOOLS= libtool
GNU_CONFIGURE= yes
USE_GHOSTSCRIPT_RUN=yes
CPPFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/freetype2
LDFLAGS+= -L${LOCALBASE}/lib
MAKE_ENV+= RM="${RM} -f"
MAN1= xpaint.1 pdfconcat.1 imgmerge.1
post-extract:
@${RM} -f ${WRKSRC}/XPaint.ad
post-patch:
@${REINPLACE_CMD} -e 's/-ldl //' \
${WRKSRC}/configure ${WRKSRC}/rw/configure
@${REINPLACE_CMD} -Ee 's:/etc(/X11/app-defaults):${PREFIX}/lib\1:' \
-e '/xaw_incdir/s,/usr/include,${LOCALBASE}/include,' \
${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e '/^LIBTOOL/d' \
-e '/^install-exec-am:/s/install-libLTLIBRARIES//' \
${WRKSRC}/rw/Makefile.in
@${REINPLACE_CMD} -e '/if (!image)/s/return;/return -1;/' \
${WRKSRC}/rw/readWriteTGA.c
.include <bsd.port.mk>
|