freebsd-ports/print/ghostscript8-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

57 lines
1.4 KiB
Makefile

# Created by: Andreas Klemm <andreas@klemm.gtn.com>
PORTNAME= ghostscript
PORTVERSION= 8.71
PORTREVISION= 19
CATEGORIES= print
MASTER_SITES= http://downloads.ghostscript.com/public/ \
SF/ghostscript/GPL%20Ghostscript/${PORTVERSION}/ \
ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/GPL/gs${PORTVERSION:S/.//}/
PKGNAMESUFFIX= 8-x11
DIST_SUBDIR= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
COMMENT= Ghostscript 8.x PostScript interpreter, X11 support
LICENSE= GPLv3
CONFLICTS_INSTALL= \
gambc \
ghostscript[789] \
ghostscript[789]-nox11 \
ghostscript9-agpl \
ghostscript9-agpl-nox11
USES= autoreconf cpe ghostscript:8 gmake tar:xz xorg
USE_LDCONFIG= yes
USE_XORG= ice sm x11 xext xt
CPE_VENDOR= artifex
GNU_CONFIGURE= yes
EXTRACT_AFTER_ARGS= ${EXCLUDE_DIRS:S/^/--exclude /}
MAKE_ENV= CFLAGS_STANDARD="${CFLAGS}" \
XLDFLAGS="${XLDFLAGS}"
CONFIGURE_ENV= ${MAKE_ENV}
CONFIGURE_ARGS= --disable-compile-inits \
--disable-contrib \
--enable-dynamic \
--without-ijs \
--without-jasper \
--without-libpaper \
--with-x \
--x-includes=${LOCALBASE}/include \
--x-libraries=${LOCALBASE}/lib \
--with-drivers=""
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}
EXCLUDE_DIRS= jbig2dec jpeg expat jasper libpng tiff zlib
pre-build:
${MKDIR} ${WRKSRC}/obj
.include <bsd.port.mk>