# Created by: Steven Wallace # $FreeBSD: head/graphics/xpaint/Makefile 412346 2016-04-01 14:00:51Z mat $ PORTNAME= xpaint PORTVERSION= 2.9.10.3 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= 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 USE_XORG= xft xmu xpm GNU_CONFIGURE= yes USES= ghostscript:run jpeg libtool:build pkgconfig shebangfix \ tar:bzip2 SHEBANG_FILES= share/bin/imgmerge share/bin/xpaint_ocr CPPFLAGS+= -I${LOCALBASE}/include LIBS+= -L${LOCALBASE}/lib MAKE_ENV+= RM="${RM} -f" post-patch: @${RM} -f ${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