freebsd-ports/print/ghostscript9-agpl-x11/Makefile
Danilo G. Baio 9a0b5c020b print/ghostscript*: Return Ghostscript ports to the pool
Approved by:	 doceng (with hat)
2022-01-08 15:26:25 -03:00

70 lines
1.8 KiB
Makefile

PORTNAME= ghostscript
PORTVERSION= 9.52
CATEGORIES= print
MASTER_SITES= https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs${PORTVERSION:S/.//}/
PKGNAMESUFFIX= 9-agpl-x11
MAINTAINER= ports@FreeBSD.org
COMMENT= PostScript and PDF interpreter, X11 support
LICENSE= AGPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= jbig2dec>=0.17:graphics/jbig2dec
LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \
libfreetype.so:print/freetype2 \
libidn.so:dns/libidn \
libjbig2dec.so:graphics/jbig2dec \
libpaper.so:print/libpaper \
libpng.so:graphics/png \
libtiff.so:graphics/tiff
RUN_DEPENDS= ghostscript9-agpl-base>=${PORTVERSION}:print/ghostscript9-agpl-base
USES= cpe gmake iconv localbase pkgconfig tar:xz xorg
USE_CSTD= gnu99
USE_LDCONFIG= yes
USE_XORG= ice sm x11 xext xt
CONFLICTS_INSTALL= \
ghostscript[789] \
ghostscript[789]-nox11 \
ghostscript9-agpl \
ghostscript9-agpl-nox11
DISTINFO_FILE= ${.CURDIR:H}/ghostscript9-agpl-base/distinfo
PATCHDIR= ${.CURDIR:H}/ghostscript9-agpl-base/files
CPE_VENDOR= artifex
EXTRACT_AFTER_ARGS= \
--exclude freetype \
--exclude ijs \
--exclude jbig2dec \
--exclude jpeg \
--exclude libpng \
--exclude openjpeg \
--exclude zlib
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-compile-inits \
--disable-cups \
--disable-dbus \
--disable-gtk \
--disable-openjpeg \
--enable-contrib \
--enable-dynamic \
--enable-fontconfig \
--enable-freetype \
--with-drivers=ALL \
--with-fontpath=${LOCALBASE}/share/fonts \
--with-jbig2dec \
--with-libiconv=maybe \
--with-libidn \
--with-libpaper \
--with-system-libtiff \
--with-x \
--without-ijs
ALL_TARGET= ./obj/X11.so
INSTALL_TARGET= install-shared
PLIST_FILES= lib/${PORTNAME}/${PORTVERSION}/X11.so
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}/${PORTVERSION}/X11.so
.include <bsd.port.mk>