27470e1676
* print/ghostscript{7,8,9,9-agpl}-base Installs Ghostscript binary, libgs, and related files. These ports do not depend on X11 libraries (i.e. x11* devices are not available). USES=ghostscript will set dependency on one of them depending on GHOSTSCRIPT_DEFAULT. The default device is set to "display" or "bbox". * print/ghostscript{7,8,9,9-agpl}-x11 Installs a shared library which provides X11 support to the installed Ghostscript binaries. x11* devices will be enabled when the library is available. This depends on *-base (RUN_DEPENDS). USES=ghostscript:x11 will set dependency on one of them. - Fix integer overflow reported as CVE-2015-3228. - Update Uses/ghostscript.mk: * Add x11 keyword. nox11 keyword is now obsolete. * Use packagename in *_DEPENDS line to prevent relationship between -base and -x11 packages from being broken. - Fix x11/nox11 keyword and bump PORTREVISION in ports using USES=ghostscript to update dependency of pre-compiled packages.
48 lines
1.4 KiB
Makefile
48 lines
1.4 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 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
|
|
LIBS+= -L${LOCALBASE}/lib
|
|
MAKE_ENV+= RM="${RM} -f"
|
|
|
|
post-patch:
|
|
@${RM} -f ${WRKSRC}/XPaint.ad
|
|
@${REINPLACE_CMD} -e 's/-ldl //' \
|
|
-e 's|freetype/||g' \
|
|
${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>
|