summaryrefslogtreecommitdiff
path: root/print/teTeX-base
diff options
context:
space:
mode:
Diffstat (limited to 'print/teTeX-base')
-rw-r--r--print/teTeX-base/Makefile6
-rw-r--r--print/teTeX-base/files/patch-texk-pdftexdir-writepng.c19
-rw-r--r--print/teTeX-base/files/patch-texk-web2c-pdftexdir-writeimg.c10
3 files changed, 32 insertions, 3 deletions
diff --git a/print/teTeX-base/Makefile b/print/teTeX-base/Makefile
index 426e34aaa2a4..cf05e6b9ef5f 100644
--- a/print/teTeX-base/Makefile
+++ b/print/teTeX-base/Makefile
@@ -7,7 +7,7 @@
PORTNAME= teTeX-base
PORTVERSION= 3.0
-PORTREVISION= 22
+PORTREVISION= 23
CATEGORIES= print
MASTER_SITES= ${MASTER_SITE_TEX_CTAN} \
ftp://ftp.ascii.co.jp/pub/TeX/ascii-ptex/dvips/:1
@@ -23,7 +23,7 @@ BUILD_DEPENDS= ${LOCALBASE}/${TEXMFDISTDIR}/LICENSE.texmf:${PORTSDIR}/print/teTe
RUN_DEPENDS= ${LOCALBASE}/${TEXMFDISTDIR}/LICENSE.texmf:${PORTSDIR}/print/teTeX-texmf \
${TEXMFLOCAL_LSR}:${PORTSDIR}/print/tex-texmflocal \
texi2html:${PORTSDIR}/textproc/texi2html
-LIB_DEPENDS= png.6:${PORTSDIR}/graphics/png \
+LIB_DEPENDS= png15:${PORTSDIR}/graphics/png \
wwwcore.1:${PORTSDIR}/www/libwww \
t1.5:${PORTSDIR}/devel/t1lib \
gd.4:${PORTSDIR}/graphics/gd
@@ -50,7 +50,7 @@ CONFIGURE_ARGS= --disable-multiplatform \
CONFIGURE_ENV= INSTALL_SCRIPT="${INSTALL_SCRIPT}" \
INSTALL_DATA="${INSTALL_DATA}" \
INSTALL_PROGRAM="${INSTALL_PROGRAM}"
-CFLAGS+= -I${LOCALBASE}/include
+CFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/libpng15
PKGMESSAGE= ${WRKDIR}/pkg-message
CONFLICTS= ja-ptex-base-[0-9]* latex2e-[0-9]* \
tex-[0-9]* dvips-[0-9]* xdvi-[0-9]*
diff --git a/print/teTeX-base/files/patch-texk-pdftexdir-writepng.c b/print/teTeX-base/files/patch-texk-pdftexdir-writepng.c
new file mode 100644
index 000000000000..1bc4ab625be7
--- /dev/null
+++ b/print/teTeX-base/files/patch-texk-pdftexdir-writepng.c
@@ -0,0 +1,19 @@
+--- texk/web2c/pdftexdir/writepng.c.orig 2005-02-03 17:16:39.000000000 +0100
++++ texk/web2c/pdftexdir/writepng.c 2012-04-27 09:06:18.000000000 +0200
+@@ -22,6 +22,7 @@
+
+ #include "ptexlib.h"
+ #include "image.h"
++#include "pngpriv.h"
+
+ static const char perforce_id[] =
+ "$Id: //depot/Build/source.development/TeX/texk/web2c/pdftexdir/writepng.c#5 $";
+@@ -34,7 +35,7 @@
+ pdftex_fail("libpng: png_create_read_struct() failed");
+ if ((png_info(img) = png_create_info_struct(png_ptr(img))) == NULL)
+ pdftex_fail("libpng: png_create_info_struct() failed");
+- if (setjmp(png_ptr(img)->jmpbuf))
++ if (setjmp(png_jmpbuf(png_ptr(img))))
+ pdftex_fail("libpng: internal error");
+ png_init_io(png_ptr(img), png_file);
+ png_read_info(png_ptr(img), png_info(img));
diff --git a/print/teTeX-base/files/patch-texk-web2c-pdftexdir-writeimg.c b/print/teTeX-base/files/patch-texk-web2c-pdftexdir-writeimg.c
new file mode 100644
index 000000000000..fa3b43fdc83e
--- /dev/null
+++ b/print/teTeX-base/files/patch-texk-web2c-pdftexdir-writeimg.c
@@ -0,0 +1,10 @@
+--- texk/web2c/pdftexdir/writeimg.c.orig 2005-02-03 17:16:39.000000000 +0100
++++ texk/web2c/pdftexdir/writeimg.c 2012-04-27 09:30:39.000000000 +0200
+@@ -22,6 +22,7 @@
+
+ #include "ptexlib.h"
+ #include "image.h"
++#include "pngpriv.h"
+ #include <kpathsea/c-auto.h>
+ #include <kpathsea/c-memstr.h>
+