Index: branches/2015Q3/print/ghostscript7/Makefile =================================================================== --- branches/2015Q3/print/ghostscript7/Makefile (revision 395803) +++ branches/2015Q3/print/ghostscript7/Makefile (revision 395804) @@ -1,150 +1,150 @@ # Created by: Andreas Klemm # $FreeBSD$ PORTNAME= ghostscript PORTVERSION= 7.07 -PORTREVISION= 31 +PORTREVISION= 32 CATEGORIES= print MASTER_SITES= SF/ghostscript/gnu-gs/${PORTVERSION}:gs_srcs \ ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/gnu/gs${PORTVERSION:S/.//}/:gs_srcs \ PORTS_JP:ports_jp,ports_jp_gs PKGNAMESUFFIX= 7 DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:gs_srcs DIST_SUBDIR= ${PORTNAME} EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} MAINTAINER= hrs@FreeBSD.org COMMENT= Ghostscript 7.x PostScript interpreter LICENSE= GPLv2 LIB_DEPENDS= libpng.so:${PORTSDIR}/graphics/png RUN_DEPENDS= ${LOCALBASE}/share/ghostscript/fonts/a010013l.pfb:${PORTSDIR}/print/gsfonts CONFLICTS_INSTALL= \ gambc-[0-9]* \ ghostscript[89]-[0-9]* \ ghostscript[89]-nox11-[0-9]* \ ghostscript9-agpl-[0-9]* \ ghostscript9-agpl-nox11-[0-9]* USES= gmake jpeg shebangfix tar:bzip2 USE_LDCONFIG= yes SHEBANG_FILES= lib/fixmswrd.pl WANT_GNOME= yes # normazile WRKSRC so things like cups-pstoraster may work WRKSRC= ${WRKDIR}/${PORTNAME} GNU_CONFIGURE= yes CONFIGURE_ENV= ${MAKE_ENV} CONFIGURE_ARGS= --disable-compile-inits \ --with-ijs MAKE_ENV= CFLAGS_STANDARD="${CFLAGS}" \ XCFLAGS="${XCFLAGS}" XLDFLAGS="${XLDFLAGS}" \ EXTRALIBS="${EXTRALIBS}" CPPFLAGS+= -fPIC -DUPD_SIGNAL=0 -I. -I${WRKSRC}/gimp-print \ -I${LOCALBASE}/include LDFLAGS+= ${XLDFLAGS} XLDFLAGS= -lpthread -L${LOCALBASE}/lib -L${WRKSRC}/gimp-print PLIST_SUB= GS_VERSION="${PORTVERSION}" MAKE_JOBS_UNSAFE= yes OPTIONS_DEFINE= X11 DOCS A4SIZE OPTIONS_DEFAULT=X11 DOCS A4SIZE NO_OPTIONS_SORT=yes X11_USE= GNOME=gtk12 X11_MAKE_ENV= GS_SHLIB_VER="${SHLIB_VER}" A4SIZE_DESC= Set A4 (not Letter) as the default paper size post-extract-all: ${LN} -sf ${WRKDIR}/${DISTNAME} ${WRKDIR}/${PORTNAME} post-extract: post-extract-all .include "Makefile.drivers" .include MASTERDIR?= ${.CURDIR} .include "${MASTERDIR}/files/Makefile.drivers_post" .for D in ${OPTIONS_DEFINE:MGS_*:S/^GS_//} \ ${OPTIONS_MULTI_X11:MGS_*:S/^GS_//} \ ${OPTIONS_GROUP_SVGALIB:MGS_*:S/^GS_//} .if ${PORT_OPTIONS:MGS_${D}} PLIST_SUB+= GS_${D}="" .else PLIST_SUB+= GS_${D}="@comment " .endif .endfor .if ${PORT_OPTIONS:MA4SIZE} XCFLAGS+= -DA4 .endif # contributed uniprint profiles CONTRIB_UPP= lqx70ch.upp lqx70cl.upp lqx70cm.upp \ stc740ih.upp stc740p.upp stc740pl.upp .if ${PORT_OPTIONS:MX11} SHLIB_VER= 1 PLIST_SUB+= SHLIB="" X11="" SHLIB_VER="${SHLIB_VER}" ALL_TARGET= so INSTALL_TARGET= soinstall .if ${PORT_OPTIONS:MGS_pcl3} ALL_TARGET+= pcl3opts .endif .else ALL_TARGET= all PLIST_SUB+= SHLIB="@comment " X11="@comment " .endif post-patch: ${REINPLACE_CMD} -e 's|^DEVICE_DEVS|#DEVICE_DEVS|g' \ ${WRKSRC}/src/unix-gcc.mak ${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}|g' \ ${WRKSRC}/lib/gs_res.ps pre-build-drivers.mak: @${ECHO_CMD} '# automatically generated' > ${WRKSRC}/src/drivers.mak .for N in ${DEVS_LIST} @${ECHO_CMD} 'DEVICE_${N}=' >> ${WRKSRC}/src/drivers.mak .endfor .for D in ${OPTIONS_DEFINE:MGS_*:S/^GS_//} \ ${OPTIONS_MULTI_X11:MGS_*:S/^GS_//} \ ${OPTIONS_GROUP_SVGALIB:MGS_*:S/^GS_//} .for N in ${DEVS_LIST} .if ${PORT_OPTIONS:MGS_${D}} .if !defined(OPTIONS_UNSET) || !${OPTIONS_UNSET:MGS_${D}} .for X in ${DEVICE_${N}:M${D}.dev} @${ECHO_CMD} 'DEVICE_${N}+= $$(DD)${D}.dev' >> ${WRKSRC}/src/drivers.mak .endfor .endif .endif .endfor .endfor pre-build-contrib_extra.mak: ${CAT} /dev/null ${EXTRADEVMKFILE} > ${WRKSRC}/src/contrib_extra.mak pre-build-all: ${MKDIR} ${WRKSRC}/obj ${WRKSRC}/bin pre-build: pre-build-all pre-build-drivers.mak pre-build-contrib_extra.mak pre-su-install: ${MKDIR} ${STAGEDIR}${DATADIR} post-install-docs: ${MKDIR} ${STAGEDIR}${DOCSDIR} post-install: .if ${PORT_OPTIONS:MX11} ${LN} -sf gsc ${STAGEDIR}${PREFIX}/bin/gs .endif cd ${FILESDIR} \ && ${INSTALL_DATA} ${CONTRIB_UPP} \ ${STAGEDIR}${DATADIR}/${PORTVERSION}/lib post-install: post-install-docs .include Index: branches/2015Q3/print/ghostscript7/files/patch-src-gsmalloc.c =================================================================== --- branches/2015Q3/print/ghostscript7/files/patch-src-gsmalloc.c (nonexistent) +++ branches/2015Q3/print/ghostscript7/files/patch-src-gsmalloc.c (revision 395804) @@ -0,0 +1,11 @@ +--- src/gsmalloc.c.orig 2015-07-24 09:55:54.032137000 +0900 ++++ src/gsmalloc.c 2015-07-24 09:57:15.070246000 +0900 +@@ -170,7 +170,7 @@ + } else { + uint added = size + sizeof(gs_malloc_block_t); + +- if (mmem->limit - added < mmem->used) ++ if (added <= size || mmem->limit - added < mmem->used) + set_msg("exceeded limit"); + else if ((ptr = (byte *) malloc(added)) == 0) + set_msg("failed"); Property changes on: branches/2015Q3/print/ghostscript7/files/patch-src-gsmalloc.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: branches/2015Q3/print/ghostscript8/Makefile =================================================================== --- branches/2015Q3/print/ghostscript8/Makefile (revision 395803) +++ branches/2015Q3/print/ghostscript8/Makefile (revision 395804) @@ -1,172 +1,172 @@ # Created by: Andreas Klemm # $FreeBSD$ PORTNAME= ghostscript PORTVERSION= 8.71 -PORTREVISION= 18 +PORTREVISION= 19 CATEGORIES= print MASTER_SITES= http://downloads.ghostscript.com/public/:gs_srcs \ SF/ghostscript/GPL%20Ghostscript/${PORTVERSION}:gs_srcs \ ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/GPL/gs${PORTVERSION:S/.//}/:gs_srcs \ http://www.humblesoft.com/pub/:epag PKGNAMESUFFIX= 8 DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:gs_srcs ${EPAG_SRCS}:epag DIST_SUBDIR= ${PORTNAME} EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} EXTRACT_AFTER_ARGS= ${EXCLUDE_DIRS:S/^/--exclude /} MAINTAINER= doceng@FreeBSD.org COMMENT= Ghostscript 8.x PostScript interpreter LICENSE= GPLv3 LIB_DEPENDS= libexpat.so:${PORTSDIR}/textproc/expat2 \ libjasper.so:${PORTSDIR}/graphics/jasper \ libjbig2dec.so:${PORTSDIR}/graphics/jbig2dec \ libpng.so:${PORTSDIR}/graphics/png \ libpaper.so:${PORTSDIR}/print/libpaper \ libtiff.so:${PORTSDIR}/graphics/tiff RUN_DEPENDS= ${LOCALBASE}/share/${PORTNAME}/fonts/a010013l.pfb:${PORTSDIR}/print/gsfonts CONFLICTS_INSTALL= \ gambc-[0-9]* \ ghostscript[79]-[0-9]* \ ghostscript[79]-nox11-[0-9]* \ ghostscript9-agpl-[0-9]* \ ghostscript9-agpl-nox11-[0-9]* USES= gmake jpeg pkgconfig tar:xz shebangfix SHEBANG_FILES= ${WRKSRC}/lib/fixmswrd.pl WANT_GNOME= yes USE_LDCONFIG= yes USE_AUTOTOOLS= autoconf GNU_CONFIGURE= yes MAKE_JOBS_UNSAFE= yes MAKE_ENV= CFLAGS_STANDARD="${CFLAGS}" \ XCFLAGS="${XCFLAGS}" XLDFLAGS="${XLDFLAGS}" \ SOC_LOADER="dxmainc.c" CONFIGURE_ENV= ${MAKE_ENV} CONFIGURE_ARGS= --disable-compile-inits \ --enable-contrib \ --enable-dynamic \ --with-ijs \ --with-jasper \ --with-libpaper \ --with-drivers="" CPPFLAGS+= -DUPD_SIGNAL=0 -I. \ -I${WRKSRC}/jasper/src/libjasper/include \ -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib XCFLAGS= -DA4 XLDFLAGS= -lpthread PLIST_SUB= GS_VERSION="${PORTVERSION}" \ CIDFONTDIR="${CIDFONTDIR:S,^${PREFIX}/,,}" SUB_FILES= pkg-message SUB_LIST= DATADIR=${DATADIR} PORTVERSION=${PORTVERSION} PKGMESSAGE= ${WRKDIR}/pkg-message OPTIONS_DEFINE= X11 DOCS CAIRO CUPS FONTCONFIG GTK2 ICONV OPTIONS_DEFAULT=X11 DOCS CAIRO CUPS FONTCONFIG ICONV OPTIONS_SUB= yes FONTCONFIG_DESC=Enable fontconfig support NO_OPTIONS_SORT=yes CIDFONTDIR= ${DATADIR}/${PORTVERSION}/Resource EXCLUDE_DIRS= jbig2dec jpeg expat jasper libpng tiff zlib .include "Makefile.drivers" .include MASTERDIR?= ${.CURDIR} .include "${MASTERDIR}/files/Makefile.drivers_post" FONTCONFIG_LIB_DEPENDS= libfontconfig.so:${PORTSDIR}/x11-fonts/fontconfig FONTCONFIG_CONFIGURE_ENABLE= fontconfig # FT_BRIDGE=1 by default LIB_DEPENDS+= libfreetype.so:${PORTSDIR}/print/freetype2 MAKE_ENV+= FT_BRIDGE=1 FT_ROOT="${WRKSRC}/freetype" FT_LIB_EXT=".so" CPPFLAGS+= -I${LOCALBASE}/include/freetype2 ALL_TARGET= so INSTALL_TARGET= soinstall USE_LDCONFIG= yes PLIST_SUB+= SHLIB_VER="${PORTVERSION:R}" PORTDOCS= japanese chp2200 epson740 lxm3200-tweaked md2k_md5k PORTDOC_FILES= japanese/Gdevlips.htm japanese/README.gs550j \ japanese/cdj880.txt japanese/dj505j.txt japanese/djgpp.txt \ japanese/gdev10v.txt japanese/gdevalps.txt \ japanese/gdevcd8.txt japanese/gdevdmpr.txt \ japanese/gdevfmlbp.txt japanese/gdevj100.txt \ japanese/gdevlbp3.txt japanese/gdevmag.txt \ japanese/gdevmd2k.txt japanese/gdevmjc.txt \ japanese/gdevml6.txt japanese/gdevp201.txt japanese/gs261j.euc \ japanese/gs261j.txt chp2200/AUTHORS chp2200/INSTALL \ epson740/README epson740/upp-HowTo-to-be \ lxm3200-tweaked/LICENSE lxm3200-tweaked/README \ lxm3200-tweaked/RELEASE_NOTES \ lxm3200-tweaked/Z12-Z31-QuickSetup md2k_md5k/README.jis post-patch: ${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}|g ; \ s|%%GS_VERSION%%|${PORTVERSION}|g' \ ${WRKSRC}/contrib/japanese/dmp_site.ps pre-build-drivers.mak: @${ECHO_CMD} '# automatically generated' > ${WRKSRC}/base/drivers.mak .for N in ${DEVS_LIST} @${ECHO_CMD} 'DEVICE_${N}=' >> ${WRKSRC}/base/drivers.mak .endfor .for D in ${OPTIONS_DEFINE:MGS_*:S/^GS_//} \ ${OPTIONS_MULTI_X11:MGS_*:S/^GS_//} \ ${OPTIONS_GROUP_ICONV:MGS_*:S/^GS_//} \ ${OPTIONS_GROUP_SVGALIB:MGS_*:S/^GS_//} .for N in ${DEVS_LIST} .if ${PORT_OPTIONS:MGS_${D}} .if !defined(OPTIONS_UNSET) || !${OPTIONS_UNSET:MGS_${D}} .for X in ${DEVICE_${N}:M${D}.dev} @${ECHO_CMD} 'DEVICE_${N}+= $$(DD)${D}.dev' >> ${WRKSRC}/base/drivers.mak .endfor .endif .endif .endfor .endfor pre-build: pre-build-drivers.mak ${MKDIR} ${WRKSRC}/obj ${WRKSRC}/bin ${WRKSRC}/freetype/include ${LN} -s -f ${LOCALBASE}/include/ft2build.h \ ${WRKSRC}/freetype/include/ft2build.h ${LN} -s -f ${LOCALBASE}/include/freetype2/freetype \ ${WRKSRC}/freetype/include/freetype ${MKDIR} ${WRKSRC}/freetype/objs ${LN} -s -f ${LOCALBASE}/lib/libfreetype.so \ ${WRKSRC}/freetype/objs/freetype214MT_D.so pre-su-install: ${MKDIR} ${STAGEDIR}${DATADIR} post-install-docs: ${MKDIR} ${WRKSRC}/contrib/japanese ${INSTALL_DATA} ${WRKSRC}/contrib/japanese/doc/* \ ${WRKSRC}/contrib/japanese ${MKDIR} ${STAGEDIR}${DOCSDIR} cd ${WRKSRC}/contrib && \ ${TAR} -cf - ${PORTDOC_FILES} | \ (cd ${STAGEDIR}${DOCSDIR} && ${TAR} -xof -) post-install: ${INSTALL_DATA} ${WRKSRC}/lib/FAPIcidfmap \ ${WRKSRC}/lib/FAPIconfig ${WRKSRC}/lib/FAPIfontmap \ ${STAGEDIR}${DATADIR}/${PORTVERSION}/Resource/Init ${LN} -sf gsc ${STAGEDIR}${PREFIX}/bin/gs ${LN} -s -f ${LOCALBASE}/share/fonts/CIDFont \ ${STAGEDIR}${CIDFONTDIR}/CIDFont .if ${PORT_OPTIONS:MDOCS} post-install: post-install-docs .endif .include Index: branches/2015Q3/print/ghostscript8/files/patch-base-gsmalloc.c =================================================================== --- branches/2015Q3/print/ghostscript8/files/patch-base-gsmalloc.c (nonexistent) +++ branches/2015Q3/print/ghostscript8/files/patch-base-gsmalloc.c (revision 395804) @@ -0,0 +1,11 @@ +--- base/gsmalloc.c.orig 2015-07-24 09:52:39.718916000 +0900 ++++ base/gsmalloc.c 2015-07-24 09:54:31.761202000 +0900 +@@ -174,7 +174,7 @@ + } else { + uint added = size + sizeof(gs_malloc_block_t); + +- if (mmem->limit - added < mmem->used) ++ if (added <= size || mmem->limit - added < mmem->used) + set_msg("exceeded limit"); + else if ((ptr = (byte *) malloc(added)) == 0) + set_msg("failed"); Property changes on: branches/2015Q3/print/ghostscript8/files/patch-base-gsmalloc.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: branches/2015Q3/print/ghostscript9/Makefile =================================================================== --- branches/2015Q3/print/ghostscript9/Makefile (revision 395803) +++ branches/2015Q3/print/ghostscript9/Makefile (revision 395804) @@ -1,169 +1,169 @@ # $FreeBSD$ PORTNAME= ghostscript PORTVERSION= 9.06 -PORTREVISION= 10 +PORTREVISION= 11 CATEGORIES= print MASTER_SITES= http://downloads.ghostscript.com/public/:gs_srcs \ SF/ghostscript/GPL%20Ghostscript/${PORTVERSION}:gs_srcs \ ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/GPL/gs${PORTVERSION:S/.//}/:gs_srcs \ http://www.humblesoft.com/pub/:epag PKGNAMESUFFIX= 9 DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:gs_srcs ${EPAG_SRCS}:epag DIST_SUBDIR= ${PORTNAME} EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} EXTRACT_AFTER_ARGS= ${EXCLUDE_DIRS:S/^/--exclude /} MAINTAINER= doceng@FreeBSD.org COMMENT= Ghostscript 9.x PostScript interpreter LICENSE= GPLv3 LIB_DEPENDS= libexpat.so:${PORTSDIR}/textproc/expat2 \ libidn.so:${PORTSDIR}/dns/libidn \ libjbig2dec.so:${PORTSDIR}/graphics/jbig2dec \ libpng.so:${PORTSDIR}/graphics/png \ libtiff.so:${PORTSDIR}/graphics/tiff \ liblcms2.so:${PORTSDIR}/graphics/lcms2 \ libpaper.so:${PORTSDIR}/print/libpaper RUN_DEPENDS= ${LOCALBASE}/share/${PORTNAME}/fonts/a010013l.pfb:${PORTSDIR}/print/gsfonts CONFLICTS_INSTALL= \ gambc-[0-9]* \ ghostscript[78]-[0-9]* \ ghostscript[78]-nox11-[0-9]* \ ghostscript9-agpl-[0-9]* \ ghostscript9-agpl-nox11-[0-9]* USES= gmake jpeg pkgconfig:build tar:bzip2 WANT_GNOME= yes USE_LDCONFIG= yes USE_AUTOTOOLS= autoconf GNU_CONFIGURE= yes MAKE_JOBS_UNSAFE= yes MAKE_ENV= CFLAGS_STANDARD="${CFLAGS}" \ XCFLAGS="${XCFLAGS}" XLDFLAGS="${XLDFLAGS}" \ SOC_LOADER="dxmainc.c" CONFIGURE_ENV= ${MAKE_ENV} CONFIGURE_ARGS= --disable-compile-inits \ --enable-contrib \ --enable-dynamic \ --with-system-libtiff \ --with-ijs \ --with-libidn \ --without-jasper \ --with-libpaper \ --with-drivers="" CPPFLAGS+= -DUPD_SIGNAL=0 -I. \ -I${WRKSRC}/lcms/include \ -I${LOCALBASE}/include/libpng \ -I${WRKSRC}/openjpeg/libopenjpeg \ -I${WRKSRC}/openjpeg \ -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib XCFLAGS= -DA4 XLDFLAGS= -lpthread PLIST_SUB= GS_VERSION="${PORTVERSION}" \ X11BITS=${X11BITS} SUB_FILES= pkg-message SUB_LIST= DATADIR=${DATADIR} PORTVERSION=${PORTVERSION} PKGMESSAGE= ${WRKDIR}/pkg-message OPTIONS_DEFINE= X11 DOCS CUPS FONTCONFIG ICONV GTK2 OPTIONS_DEFAULT=X11 DOCS CUPS FONTCONFIG ICONV OPTIONS_SUB= yes FONTCONFIG_DESC=Enable fontconfig support NO_OPTIONS_SORT=yes EXCLUDE_DIRS= freetype jbig2dec jpeg expat jasper lcms lcms2 libpng tiff zlib .include "Makefile.drivers" .include MASTERDIR?= ${.CURDIR} .include "${MASTERDIR}/files/Makefile.drivers_post" FONTCONFIG_LIB_DEPENDS= libfontconfig.so:${PORTSDIR}/x11-fonts/fontconfig FONTCONFIG_CONFIGURE_ENABLE= fontconfig # FT_BRIDGE=1 by default LIB_DEPENDS+= libfreetype.so:${PORTSDIR}/print/freetype2 MAKE_ENV+= FT_BRIDGE=1 ALL_TARGET= so INSTALL_TARGET= soinstall USE_LDCONFIG= yes PLIST_SUB+= SHLIB_VER="${PORTVERSION:R}" PORTDOCS= japanese chp2200 epson740 lxm3200-tweaked md2k_md5k PORTDOC_FILES= japanese/Gdevlips.htm japanese/README.gs550j \ japanese/cdj880.txt japanese/dj505j.txt japanese/djgpp.txt \ japanese/gdev10v.txt japanese/gdevalps.txt \ japanese/gdevcd8.txt japanese/gdevdmpr.txt \ japanese/gdevfmlbp.txt japanese/gdevj100.txt \ japanese/gdevlbp3.txt japanese/gdevmag.txt \ japanese/gdevmd2k.txt japanese/gdevmjc.txt \ japanese/gdevml6.txt japanese/gdevp201.txt japanese/gs261j.euc \ japanese/gs261j.txt chp2200/AUTHORS chp2200/INSTALL \ epson740/README epson740/upp-HowTo-to-be \ lxm3200-tweaked/LICENSE lxm3200-tweaked/README \ lxm3200-tweaked/RELEASE_NOTES \ lxm3200-tweaked/Z12-Z31-QuickSetup md2k_md5k/README.jis post-patch: ${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}|g ; \ s|%%GS_VERSION%%|${PORTVERSION}|g' \ ${WRKSRC}/contrib/japanese/dmp_site.ps pre-build-drivers.mak: @${ECHO_CMD} '# automatically generated' > ${WRKSRC}/base/drivers.mak @${ECHO_CMD} 'DEVICE_DEVS=$${DISPLAY_DEV}' >> ${WRKSRC}/base/drivers.mak .for N in ${DEVS_LIST} @${ECHO_CMD} '${N:S/^/DEVICE_/:S/^DEVICE_DISPLAY_DEV/DISPLAY_DEV/}=' >> ${WRKSRC}/base/drivers.mak .endfor .for D in ${OPTIONS_DEFINE:MGS_*:S/^GS_//} \ ${OPTIONS_MULTI_X11:MGS_*:S/^GS_//} \ ${OPTIONS_GROUP_ICONV:MGS_*:S/^GS_//} \ ${OPTIONS_GROUP_SVGALIB:MGS_*:S/^GS_//} .for N in ${DEVS_LIST} .if ${PORT_OPTIONS:MGS_${D}} .if !defined(OPTIONS_UNSET) || !${OPTIONS_UNSET:MGS_${D}} .for X in ${${N:S/^/DEVICE_/:S/^DEVICE_DISPLAY_DEV/DISPLAY_DEV/}:M${D}.dev} @${ECHO_CMD} '${N:S/^/DEVICE_/:S/^DEVICE_DISPLAY_DEV/DISPLAY_DEV/}+= $$(DD)${D}.dev' >> ${WRKSRC}/base/drivers.mak .endfor .endif .endif .endfor .endfor pre-build: pre-build-drivers.mak ${MKDIR} ${WRKSRC}/obj ${MKDIR} ${WRKSRC}/bin pre-install: cd ${WRKSRC}/Resource/Init && ${RM} -f \ gs_statd.ps.orig gs_ttf.ps.orig pdf_font.ps.orig pre-su-install: ${MKDIR} ${STAGEDIR}${DATADIR} post-install-docs: ${MKDIR} ${WRKSRC}/contrib/japanese ${INSTALL_DATA} ${WRKSRC}/contrib/japanese/doc/* ${WRKSRC}/contrib/japanese ${MKDIR} ${STAGEDIR}${DOCSDIR} cd ${WRKSRC}/contrib && \ ${TAR} -cf - ${PORTDOC_FILES} | \ ( cd ${STAGEDIR}${DOCSDIR} && ${TAR} -xof - ) post-install: ${LN} -sf gsc ${STAGEDIR}${PREFIX}/bin/gs ${LN} -s -f ${LOCALBASE}/share/fonts/CIDFont \ ${STAGEDIR}${DATADIR}/${PORTVERSION}/Resource/CIDFont/fonts .if ${PORT_OPTIONS:MDOCS} post-install: post-install-docs .endif .include Index: branches/2015Q3/print/ghostscript9/files/patch-base-gsmalloc.c =================================================================== --- branches/2015Q3/print/ghostscript9/files/patch-base-gsmalloc.c (nonexistent) +++ branches/2015Q3/print/ghostscript9/files/patch-base-gsmalloc.c (revision 395804) @@ -0,0 +1,11 @@ +--- base/gsmalloc.c.orig 2015-07-24 09:41:05.295969000 +0900 ++++ base/gsmalloc.c 2015-07-24 09:41:15.146305000 +0900 +@@ -178,7 +178,7 @@ + } else { + uint added = size + sizeof(gs_malloc_block_t); + +- if (mmem->limit - added < mmem->used) ++ if (added <= size || mmem->limit - added < mmem->used) + set_msg("exceeded limit"); + else if ((ptr = (byte *) Memento_label(malloc(added), cname)) == 0) + set_msg("failed"); Property changes on: branches/2015Q3/print/ghostscript9/files/patch-base-gsmalloc.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: branches/2015Q3/print/ghostscript9-agpl/Makefile =================================================================== --- branches/2015Q3/print/ghostscript9-agpl/Makefile (revision 395803) +++ branches/2015Q3/print/ghostscript9-agpl/Makefile (revision 395804) @@ -1,165 +1,165 @@ # $FreeBSD$ PORTNAME= ghostscript PORTVERSION= 9.15 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= print MASTER_SITES= http://downloads.ghostscript.com/public/:gs_srcs \ SF/ghostscript/GPL%20Ghostscript/${PORTVERSION}:gs_srcs \ ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/GPL/gs${PORTVERSION:S/.//}/:gs_srcs \ http://www.humblesoft.com/pub/:epag PKGNAMESUFFIX= 9-agpl DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:gs_srcs ${EPAG_SRCS}:epag DIST_SUBDIR= ${PORTNAME} EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} EXTRACT_AFTER_ARGS= ${EXCLUDE_DIRS:S/^/--exclude /} MAINTAINER= doceng@FreeBSD.org COMMENT= Ghostscript 9.x PostScript interpreter LICENSE= AGPLv3 LIB_DEPENDS= libexpat.so:${PORTSDIR}/textproc/expat2 \ libidn.so:${PORTSDIR}/dns/libidn \ libjbig2dec.so:${PORTSDIR}/graphics/jbig2dec \ libpng.so:${PORTSDIR}/graphics/png \ libtiff.so:${PORTSDIR}/graphics/tiff \ liblcms2.so:${PORTSDIR}/graphics/lcms2 \ libpaper.so:${PORTSDIR}/print/libpaper RUN_DEPENDS= ${LOCALBASE}/share/${PORTNAME}/fonts/a010013l.pfb:${PORTSDIR}/print/gsfonts CONFLICTS_INSTALL= \ gambc-[0-9]* \ ghostscript[789]-[0-9]* \ ghostscript[789]-nox11-[0-9]* USES= gmake jpeg pkgconfig:build tar:bzip2 WANT_GNOME= yes USE_LDCONFIG= yes USE_AUTOTOOLS= autoconf GNU_CONFIGURE= yes MAKE_ENV= CFLAGS_STANDARD="${CFLAGS}" \ XCFLAGS="${XCFLAGS}" XLDFLAGS="${XLDFLAGS}" \ SOC_LOADER="dxmainc.c" CONFIGURE_ENV= ${MAKE_ENV} CONFIGURE_ARGS= --disable-compile-inits \ --enable-contrib \ --enable-dynamic \ --with-system-libtiff \ --with-ijs \ --with-libidn \ --without-jasper \ --with-libpaper \ --with-drivers="" CPPFLAGS+= -DUPD_SIGNAL=0 -I. \ -I${WRKSRC}/lcms2/include \ -I${LOCALBASE}/include/libpng \ -I${WRKSRC}/openjpeg/src/lib/openjp2 \ -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib XCFLAGS= -DA4 XLDFLAGS= -lpthread PLIST_SUB= GS_VERSION="${PORTVERSION}" \ X11BITS=${X11BITS} SUB_FILES= pkg-message SUB_LIST= DATADIR=${DATADIR} PORTVERSION=${PORTVERSION} PKGMESSAGE= ${WRKDIR}/pkg-message OPTIONS_DEFINE= X11 DOCS CUPS FONTCONFIG ICONV GTK2 OPTIONS_DEFAULT=X11 DOCS CUPS FONTCONFIG ICONV OPTIONS_SUB= yes FONTCONFIG_DESC=Enable fontconfig support NO_OPTIONS_SORT=yes EXCLUDE_DIRS= freetype jbig2dec jpeg expat jasper lcms libpng tiff zlib .include "Makefile.drivers" .include MASTERDIR?= ${.CURDIR} .include "${MASTERDIR}/files/Makefile.drivers_post" FONTCONFIG_LIB_DEPENDS= libfontconfig.so:${PORTSDIR}/x11-fonts/fontconfig FONTCONFIG_CONFIGURE_ENABLE= fontconfig # FT_BRIDGE=1 by default LIB_DEPENDS+= libfreetype.so:${PORTSDIR}/print/freetype2 MAKE_ENV+= FT_BRIDGE=1 ALL_TARGET= so INSTALL_TARGET= soinstall USE_LDCONFIG= yes PLIST_SUB+= SHLIB_VER="${PORTVERSION:R}" PORTDOCS= japanese chp2200 epson740 lxm3200-tweaked md2k_md5k PORTDOC_FILES= japanese/Gdevlips.htm japanese/README.gs550j \ japanese/cdj880.txt japanese/dj505j.txt japanese/djgpp.txt \ japanese/gdev10v.txt japanese/gdevalps.txt \ japanese/gdevcd8.txt japanese/gdevdmpr.txt \ japanese/gdevfmlbp.txt japanese/gdevj100.txt \ japanese/gdevlbp3.txt japanese/gdevmag.txt \ japanese/gdevmd2k.txt japanese/gdevmjc.txt \ japanese/gdevml6.txt japanese/gdevp201.txt japanese/gs261j.euc \ japanese/gs261j.txt chp2200/AUTHORS chp2200/INSTALL \ epson740/README epson740/upp-HowTo-to-be \ lxm3200-tweaked/LICENSE lxm3200-tweaked/README \ lxm3200-tweaked/RELEASE_NOTES \ lxm3200-tweaked/Z12-Z31-QuickSetup md2k_md5k/README.jis post-patch: ${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}|g ; \ s|%%GS_VERSION%%|${PORTVERSION}|g' \ ${WRKSRC}/contrib/japanese/dmp_site.ps pre-build-drivers.mak: @${ECHO_CMD} '# automatically generated' > ${WRKSRC}/base/drivers.mak @${ECHO_CMD} 'DEVICE_DEVS=$${DISPLAY_DEV}' >> ${WRKSRC}/base/drivers.mak .for N in ${DEVS_LIST} @${ECHO_CMD} '${N:S/^/DEVICE_/:S/^DEVICE_DISPLAY_DEV/DISPLAY_DEV/}=' >> ${WRKSRC}/base/drivers.mak .endfor .for D in ${OPTIONS_DEFINE:MGS_*:S/^GS_//} \ ${OPTIONS_MULTI_X11:MGS_*:S/^GS_//} \ ${OPTIONS_GROUP_ICONV:MGS_*:S/^GS_//} \ ${OPTIONS_GROUP_SVGALIB:MGS_*:S/^GS_//} .for N in ${DEVS_LIST} .if ${PORT_OPTIONS:MGS_${D}} .if !defined(OPTIONS_UNSET) || !${OPTIONS_UNSET:MGS_${D}} .for X in ${${N:S/^/DEVICE_/:S/^DEVICE_DISPLAY_DEV/DISPLAY_DEV/}:M${D}.dev} @${ECHO_CMD} '${N:S/^/DEVICE_/:S/^DEVICE_DISPLAY_DEV/DISPLAY_DEV/}+= $$(DD)${D}.dev' >> ${WRKSRC}/base/drivers.mak .endfor .endif .endif .endfor .endfor pre-build: pre-build-drivers.mak ${MKDIR} ${WRKSRC}/obj ${MKDIR} ${WRKSRC}/bin pre-install: cd ${WRKSRC}/Resource/Init && ${RM} -f \ gs_statd.ps.orig gs_ttf.ps.orig pdf_font.ps.orig pre-su-install: ${MKDIR} ${STAGEDIR}${DATADIR} post-install-docs: ${MKDIR} ${WRKSRC}/contrib/japanese ${INSTALL_DATA} ${WRKSRC}/contrib/japanese/doc/* ${WRKSRC}/contrib/japanese ${MKDIR} ${STAGEDIR}${DOCSDIR} cd ${WRKSRC}/contrib && \ ${TAR} -cf - ${PORTDOC_FILES} | \ ( cd ${STAGEDIR}${DOCSDIR} && ${TAR} -xof - ) post-install: ${LN} -sf gsc ${STAGEDIR}${PREFIX}/bin/gs ${LN} -s -f ${LOCALBASE}/share/fonts/CIDFont \ ${STAGEDIR}${DATADIR}/${PORTVERSION}/Resource/CIDFont/fonts .if ${PORT_OPTIONS:MDOCS} post-install: post-install-docs .endif .include Index: branches/2015Q3/print/ghostscript9-agpl/files/patch-base-gsmalloc.c =================================================================== --- branches/2015Q3/print/ghostscript9-agpl/files/patch-base-gsmalloc.c (nonexistent) +++ branches/2015Q3/print/ghostscript9-agpl/files/patch-base-gsmalloc.c (revision 395804) @@ -0,0 +1,11 @@ +--- base/gsmalloc.c.orig 2015-08-22 03:09:16.838614000 +0900 ++++ base/gsmalloc.c 2015-08-22 03:09:34.776354000 +0900 +@@ -178,7 +178,7 @@ + } else { + uint added = size + sizeof(gs_malloc_block_t); + +- if (mmem->limit - added < mmem->used) ++ if (added <= size || mmem->limit - added < mmem->used) + set_msg("exceeded limit"); + else if ((ptr = (byte *) Memento_label(malloc(added), cname)) == 0) + set_msg("failed"); Property changes on: branches/2015Q3/print/ghostscript9-agpl/files/patch-base-gsmalloc.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property