freebsd-ports/graphics/gle-graphics/Makefile
Hiroki Sato 27470e1676 - Split ghostscript into X11-independent and -dependent parts:
* 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.
2015-08-22 17:48:35 +00:00

61 lines
1.4 KiB
Makefile

# Created by: Nicola Vitale <nivit@email.it>
# $FreeBSD$
PORTNAME= gle-graphics
DISTVERSION= 4.2.4cf
PORTREVISION= 4
CATEGORIES= graphics print
MASTER_SITES= SF/glx/gle4%20%28Current%20Active%20Version%29/${DISTVERSION:C,.$,,1}
DISTNAME= ${PORTNAME}-${DISTVERSION}-src
MAINTAINER= nivit@FreeBSD.org
COMMENT= Graphics language that produces images from script files
LICENSE= BSD3CLAUSE GPLv2
LICENSE_COMB= multi
BUILD_DEPENDS= qmake-qt4:${PORTSDIR}/devel/qmake4
BITMAP_IMAGES_CONFIGURE_WITH= jpeg=${LOCALBASE} tiff=${LOCALBASE} png=${LOCALBASE}
BITMAP_IMAGES_DESC= Support for including bitmap images
BITMAP_IMAGES_LIB_DEPENDS= libpng.so:${PORTSDIR}/graphics/png \
libtiffxx.so:${PORTSDIR}/graphics/tiff
BITMAP_IMAGES_USES= jpeg
CONFIGURE_ARGS= --with-extrafonts=yes
ALL_TARGET= all
DOCS_ALL_TARGET= doc
DOCS_USE= tex=latex:build tex=dvipsk:build
GNU_CONFIGURE= yes
LATEX_GS_DESC= Use LaTeX & GhostScript
LATEX_GS_USE= tex=latex
LATEX_GS_USES= ghostscript
MAKE_JOBS_UNSAFE=yes
OPTIONS_DEFINE= DOCS BITMAP_IMAGES LATEX_GS X11
OPTIONS_DEFAULT= BITMAP_IMAGES LATEX_GS X11
PLIST_SUB+= PORTVERSION=${PORTVERSION}
REINPLACE_FILES= configure
USE_GCC= yes
USE_GL= yes
USE_LDCONFIG= yes
USE_QT4= gui moc network opengl rcc
USES= gmake pathfix
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:R}${PORTVERSION:E}
X11_CONFIGURE_WITH= x
X11_USE= xorg=x11
post-patch:
cd ${WRKSRC} && ${REINPLACE_CMD} -E -e 's,k(freebsd),\1,1' ${REINPLACE_FILES}
.include <bsd.port.mk>