1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00
freebsd-ports/graphics/xpaint/Makefile
Tijl Coosemans d1fcd0bb4b Bump PORTREVISION for jbigkit library version bump.
Approved by:	portmgr (implicit)
2014-06-22 16:46:17 +00:00

54 lines
1.5 KiB
Makefile

# Created by: Steven Wallace <swallace@FreeBSD.org>
# $FreeBSD$
PORTNAME= xpaint
PORTVERSION= 2.9.10.2
PORTREVISION= 2
CATEGORIES= graphics
MASTER_SITES= SF/sf-${PORTNAME}/sf-${PORTNAME}/${PORTNAME}-${PORTVERSION:R}
MAINTAINER= johans@FreeBSD.org
COMMENT= Simple paint program
LICENSE= GPLv3
LIB_DEPENDS= libpng15.so:${PORTSDIR}/graphics/png \
libjpeg.so:${PORTSDIR}/graphics/jpeg \
libopenjpeg.so:${PORTSDIR}/graphics/openjpeg15 \
libtiff.so:${PORTSDIR}/graphics/tiff \
libfreetype.so:${PORTSDIR}/print/freetype2 \
libjbig.so:${PORTSDIR}/graphics/jbigkit \
libXaw3dxft.so:${PORTSDIR}/x11-toolkits/libxaw3dxft
RUN_DEPENDS= psselect:${PORTSDIR}/print/psutils \
bash:${PORTSDIR}/shells/bash
USE_XORG= xft xmu xpm
USE_AUTOTOOLS= libtool
USE_GHOSTSCRIPT_RUN=yes
GNU_CONFIGURE= yes
USES= shebangfix tar:bzip2
SHEBANG_FILES= share/bin/imgmerge share/bin/xpaint_ocr
CPPFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/freetype2 \
-I${LOCALBASE}/include/freetype2/freetype
LDFLAGS+= -L${LOCALBASE}/lib
MAKE_ENV+= RM="${RM} -f"
post-extract:
@${RM} -f ${WRKSRC}/XPaint.ad
post-patch:
@${REINPLACE_CMD} -e 's/-ldl //' \
-e 's|freetype/||g' \
${WRKSRC}/configure ${WRKSRC}/rw/configure
@${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
post-configure:
${MAKE} -C ${WRKSRC} clean
.include <bsd.port.mk>