1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-18 03:46:03 +00:00
freebsd-ports/print/ghostscript9-agpl-x11/Makefile
Tijl Coosemans 77760fcb63 Make print/ghostscript9-agpl-base the default Ghostscript port. Upstream
changed the license to the AGPL 3 in version 9.07 so print/ghostscript9-base
is stuck at 9.06 which is almost 4 years old now.

Fix the logic in Uses/ghostscript.mk so "agpl" is treated as a real version
on its own instead of as a variant of other versions.

Fix print/ghostscript9-agpl-base to install eps2write.

Update math/asymptote to 2.37 to support newer Ghostscript.

PR:		208159
Exp-run by:	antoine
Approved by:	portmgr (antoine)
2016-03-24 15:47:50 +00:00

60 lines
1.4 KiB
Makefile

# $FreeBSD$
PORTNAME= ghostscript
PORTVERSION= 9.16
PORTREVISION= 2
CATEGORIES= print
MASTER_SITES= http://downloads.ghostscript.com/public/ \
SF/ghostscript/GPL%20Ghostscript/${PORTVERSION}/
PKGNAMESUFFIX= 9-agpl-x11
DIST_SUBDIR= ${PORTNAME}
MAINTAINER= doceng@FreeBSD.org
COMMENT= Ghostscript 9.x PostScript interpreter, X11 support
LICENSE= AGPLv3
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:agpl gmake tar:bzip2
USE_LDCONFIG= yes
USE_XORG= ice sm x11 xext xt
EXTRACT_AFTER_ARGS= ${EXCLUDE_DIRS:S/^/--exclude /}
GNU_CONFIGURE= yes
MAKE_ENV= CFLAGS_STANDARD="${CFLAGS}" \
XLDFLAGS="${XLDFLAGS}"
CONFIGURE_ENV= ${MAKE_ENV}
CONFIGURE_ARGS= --disable-compile-inits \
--disable-contrib \
--enable-dynamic \
--disable-freetype \
--disable-fontconfig \
--without-libiconv \
--without-system-libtiff \
--without-ijs \
--without-libidn \
--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= freetype jbig2dec jpeg expat lcms2 libpng tiff zlib
pre-build:
${MKDIR} ${WRKSRC}/obj
.include <bsd.port.mk>