freebsd-ports/graphics/xpaint/Makefile
Koop Mast e1add76b39 Update freetype2 to 2.6.2. [1]
Mark magicpoint broken, maintainer is notified.

Exp-runs run by antoine@

This version also fixes shadowing of TYPEOF in ftconfig.h [2]

PR:		203554 [1], 202083 [2]
Submitted by:	rhurlin@gwdg.de [2]
2015-12-10 22:13:58 +00:00

47 lines
1.3 KiB
Makefile

# Created by: Steven Wallace <swallace@FreeBSD.org>
# $FreeBSD$
PORTNAME= xpaint
PORTVERSION= 2.9.10.3
PORTREVISION= 1
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:${PORTSDIR}/graphics/png \
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
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 <bsd.port.mk>