Tweak print/pdf4tcl version 0.8
[dports.git] / print / ghostscript9-x11 / Makefile
1 # $FreeBSD$
2
3 PORTNAME=       ghostscript
4 PORTVERSION=    9.06
5 PORTREVISION=   12
6 CATEGORIES=     print
7 MASTER_SITES=   http://downloads.ghostscript.com/public/ \
8                 SF/ghostscript/GPL%20Ghostscript/${PORTVERSION}/
9 PKGNAMESUFFIX=  9-x11
10 DIST_SUBDIR=    ${PORTNAME}
11
12 MAINTAINER=     doceng@FreeBSD.org
13 COMMENT=        Ghostscript 9.x PostScript interpreter, X11 support
14
15 LICENSE=        GPLv3
16
17 CONFLICTS_INSTALL= \
18                 gambc-[0-9]* \
19                 ghostscript[789]-[0-9]* \
20                 ghostscript[789]-nox11-[0-9]* \
21                 ghostscript9-agpl-[0-9]* \
22                 ghostscript9-agpl-nox11-[0-9]*
23
24 USES=           autoreconf ghostscript:9 gmake tar:bzip2
25 USE_LDCONFIG=   yes
26 USE_XORG=       ice sm x11 xext xt
27 EXTRACT_AFTER_ARGS=     ${EXCLUDE_DIRS:S/^/--exclude /}
28 GNU_CONFIGURE=  yes
29 MAKE_ENV=       CFLAGS_STANDARD="${CFLAGS}" \
30                 XLDFLAGS="${XLDFLAGS}"
31 CONFIGURE_ENV=  ${MAKE_ENV}
32 CONFIGURE_ARGS= --disable-compile-inits \
33                 --disable-contrib \
34                 --enable-dynamic \
35                 --disable-freetype \
36                 --without-system-libtiff \
37                 --without-ijs \
38                 --without-libidn \
39                 --without-jasper \
40                 --without-libpaper \
41                 --with-x \
42                 --x-includes=${LOCALBASE}/include \
43                 --x-libraries=${LOCALBASE}/lib \
44                 --with-drivers=""
45 CPPFLAGS+=      -I${LOCALBASE}/include
46 LDFLAGS+=       -L${LOCALBASE}/lib
47 XLDFLAGS=       -lpthread
48 ALL_TARGET=     ./obj/X11.so
49 INSTALL_TARGET= install-shared
50 PLIST_FILES=    ${GS_LIBDIR}/X11.so
51
52 GS_LIBDIR=      lib/${PORTNAME}/${PORTVERSION}
53 EXCLUDE_DIRS=   freetype jbig2dec jpeg expat jasper lcms lcms2 libpng tiff zlib
54
55 pre-build:
56         ${MKDIR} ${WRKSRC}/obj
57
58 .include <bsd.port.mk>