diff options
author | hrs <hrs@FreeBSD.org> | 2015-08-23 01:48:35 +0800 |
---|---|---|
committer | hrs <hrs@FreeBSD.org> | 2015-08-23 01:48:35 +0800 |
commit | 52f2507f3ec0cb2b7b96aa2ba867c924e7b8c9a2 (patch) | |
tree | 445c3e315f03aa972de87391f921c655e4634f60 /print/ghostscript7-x11/Makefile | |
parent | 069a5644197c0b8b71f45d29221cd5192af4c720 (diff) | |
download | freebsd-ports-gnome-52f2507f3ec0cb2b7b96aa2ba867c924e7b8c9a2.tar.gz freebsd-ports-gnome-52f2507f3ec0cb2b7b96aa2ba867c924e7b8c9a2.tar.zst freebsd-ports-gnome-52f2507f3ec0cb2b7b96aa2ba867c924e7b8c9a2.zip |
- 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.
Diffstat (limited to 'print/ghostscript7-x11/Makefile')
-rw-r--r-- | print/ghostscript7-x11/Makefile | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/print/ghostscript7-x11/Makefile b/print/ghostscript7-x11/Makefile new file mode 100644 index 000000000000..a966ae101fec --- /dev/null +++ b/print/ghostscript7-x11/Makefile @@ -0,0 +1,50 @@ +# Created by: Andreas Klemm <andreas@klemm.gtn.com> +# $FreeBSD$ + +PORTNAME= ghostscript +PORTVERSION= 7.07 +PORTREVISION= 32 +CATEGORIES= print +MASTER_SITES= SF/ghostscript/gnu-gs/${PORTVERSION}/ +PKGNAMESUFFIX= 7-x11 +DIST_SUBDIR= ${PORTNAME} + +MAINTAINER= hrs@FreeBSD.org +COMMENT= Ghostscript 7.x PostScript interpreter, X11 support + +LICENSE= GPLv2 + +CONFLICTS_INSTALL= \ + gambc-[0-9]* \ + ghostscript[789]-[0-9]* \ + ghostscript[789]-nox11-[0-9]* \ + ghostscript9-agpl-[0-9]* \ + ghostscript9-agpl-nox11-[0-9]* + +USES= autoreconf ghostscript:7 gmake tar:bzip2 +USE_LDCONFIG= yes +USE_XORG= ice sm x11 xext xt +GNU_CONFIGURE= yes +CONFIGURE_ENV= ${MAKE_ENV} +CONFIGURE_ARGS= --disable-compile-inits \ + --enable-dynamic \ + --without-ijs \ + --with-x \ + --x-includes=${LOCALBASE}/include \ + --x-libraries=${LOCALBASE}/lib +MAKE_ENV= CFLAGS_STANDARD="${CFLAGS}" \ + XCFLAGS="${XCFLAGS}" XLDFLAGS="${XLDFLAGS}" \ + EXTRALIBS="${EXTRALIBS}" +CPPFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib +XLDFLAGS= -lpthread +ALL_TARGET= ./obj/X11.so +INSTALL_TARGET= install-shared +PLIST_FILES= ${GS_LIBDIR}/X11.so + +GS_LIBDIR= lib/${PORTNAME}/${PORTVERSION} + +pre-build: + ${MKDIR} ${WRKSRC}/obj + +.include <bsd.port.mk> |