1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-19 08:13:21 +00:00
freebsd-ports/graphics/xpaint/Makefile
Niclas Zeising be6c15b5c6 Add USES=xorg USES=gl, ports categories g
Add USES=xorg and USES=gl to ports in categories starting with 'g'.
While here, try to sprinkle other USES (mostly gnome and sdl) as needed.
2019-11-05 22:16:14 +00:00

48 lines
1.2 KiB
Makefile

# Created by: Steven Wallace <swallace@FreeBSD.org>
# $FreeBSD$
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>