7 MASTER_SITES= http://downloads.ghostscript.com/public/ \
8 SF/ghostscript/GPL%20Ghostscript/${PORTVERSION}/
10 DIST_SUBDIR= ${PORTNAME}
12 MAINTAINER= doceng@FreeBSD.org
13 COMMENT= Ghostscript 9.x PostScript interpreter, X11 support
19 ghostscript[789]-[0-9]* \
20 ghostscript[789]-nox11-[0-9]* \
21 ghostscript9-agpl-[0-9]* \
22 ghostscript9-agpl-nox11-[0-9]*
24 USES= autoreconf ghostscript:9 gmake tar:bzip2
26 USE_XORG= ice sm x11 xext xt
27 EXTRACT_AFTER_ARGS= ${EXCLUDE_DIRS:S/^/--exclude /}
29 MAKE_ENV= CFLAGS_STANDARD="${CFLAGS}" \
30 XLDFLAGS="${XLDFLAGS}"
31 CONFIGURE_ENV= ${MAKE_ENV}
32 CONFIGURE_ARGS= --disable-compile-inits \
36 --without-system-libtiff \
42 --x-includes=${LOCALBASE}/include \
43 --x-libraries=${LOCALBASE}/lib \
45 CPPFLAGS+= -I${LOCALBASE}/include
46 LDFLAGS+= -L${LOCALBASE}/lib
48 ALL_TARGET= ./obj/X11.so
49 INSTALL_TARGET= install-shared
50 PLIST_FILES= ${GS_LIBDIR}/X11.so
52 GS_LIBDIR= lib/${PORTNAME}/${PORTVERSION}
53 EXCLUDE_DIRS= freetype jbig2dec jpeg expat jasper lcms lcms2 libpng tiff zlib
56 ${MKDIR} ${WRKSRC}/obj
58 .include <bsd.port.mk>