* print/ghostscript{7,8,9,9-agpl}-base Installs Ghostscript binary, libgs, and related files. These ports do not depend on X11 libraries (i.e. x11* devices are not available). USES=ghostscript will set dependency on one of them depending on GHOSTSCRIPT_DEFAULT. The default device is set to "display" or "bbox". * print/ghostscript{7,8,9,9-agpl}-x11 Installs a shared library which provides X11 support to the installed Ghostscript binaries. x11* devices will be enabled when the library is available. This depends on *-base (RUN_DEPENDS). USES=ghostscript:x11 will set dependency on one of them. - Fix integer overflow reported as CVE-2015-3228. - Update Uses/ghostscript.mk: * Add x11 keyword. nox11 keyword is now obsolete. * Use packagename in *_DEPENDS line to prevent relationship between -base and -x11 packages from being broken. - Fix x11/nox11 keyword and bump PORTREVISION in ports using USES=ghostscript to update dependency of pre-compiled packages.
65 lines
1.9 KiB
Makefile
65 lines
1.9 KiB
Makefile
# Created by: Thomas Gellekum <tg@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= pstoedit
|
|
PORTVERSION= 3.70
|
|
PORTREVISION= 2
|
|
CATEGORIES= graphics print
|
|
MASTER_SITES= SF
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Convert PostScript to other vector graphic formats
|
|
|
|
LICENSE= GPLv2
|
|
|
|
LIB_DEPENDS= libgd.so:${PORTSDIR}/graphics/gd
|
|
|
|
USES= ghostscript pathfix pkgconfig libtool
|
|
GNU_CONFIGURE= yes
|
|
MAKE_ENV= INSTALL_STRIP_FLAG="${STRIP}"
|
|
USE_LDCONFIG= yes
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include/ming -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
PORTDOCS= *
|
|
PORTEXAMPLES= *
|
|
|
|
OPTIONS_DEFINE= DOCS EMF EXAMPLES MAGICK MING PLOTUTILS
|
|
OPTIONS_DEFAULT= EMF MAGICK MING PLOTUTILS
|
|
OPTIONS_SUB= yes
|
|
|
|
EMF_DESC= WMF/EMF support via libEMF
|
|
EMF_LIB_DEPENDS= libEMF.so:${PORTSDIR}/graphics/libemf
|
|
EMF_CONFIGURE_ON= --with-libemf-include=${LOCALBASE}/include/libEMF
|
|
EMF_CONFIGURE_OFF= --without-emf
|
|
MAGICK_LIB_DEPENDS= libMagick++-6.so:${PORTSDIR}/graphics/ImageMagick
|
|
MAGICK_CONFIGURE_ON= --with-magick
|
|
MAGICK_CONFIGURE_OFF= --without-magick
|
|
MING_DESC= Flash support via Ming
|
|
MING_LIB_DEPENDS= libming.so:${PORTSDIR}/graphics/ming
|
|
MING_CONFIGURE_ON= --with-swf
|
|
MING_CONFIGURE_OFF= --without-swf
|
|
PLOTUTILS_DESC= Plotting support via Plotutils
|
|
PLOTUTILS_LIB_DEPENDS= libplotter.so:${PORTSDIR}/graphics/plotutils
|
|
PLOTUTILS_CONFIGURE_ON= --with-libplot
|
|
PLOTUTILS_CONFIGURE_OFF= --without-libplot
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|CXXFLAGS="-g"|CXXFLAGS="$$CXXFLAGS"|g ; \
|
|
s|GraphicsMagick|Magick|g ; \
|
|
s|=$$OLDCPPFLAGS|=$$CPPFLAGS|g ; \
|
|
s|-lstdc++||g ; \
|
|
s|-pedantic||g' ${WRKSRC}/configure
|
|
@${REINPLACE_CMD} -e 's|-ldl||g' ${WRKSRC}/src/Makefile.in
|
|
|
|
post-install:
|
|
${INSTALL_MAN} ${WRKSRC}/doc/*.1 ${STAGEDIR}${MAN1PREFIX}/man/man1/
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/doc/*.htm ${STAGEDIR}${DOCSDIR}
|
|
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/examples/*.ps ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
.include <bsd.port.mk>
|