summaryrefslogtreecommitdiff
path: root/textproc/gladtex/files
diff options
context:
space:
mode:
Diffstat (limited to 'textproc/gladtex/files')
-rw-r--r--textproc/gladtex/files/patch-CMakeLists.txt11
-rw-r--r--textproc/gladtex/files/patch-Makefile28
-rw-r--r--textproc/gladtex/files/patch-eqn2img.c33
-rw-r--r--textproc/gladtex/files/patch-gladtex11
4 files changed, 34 insertions, 49 deletions
diff --git a/textproc/gladtex/files/patch-CMakeLists.txt b/textproc/gladtex/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..a274d3b01720
--- /dev/null
+++ b/textproc/gladtex/files/patch-CMakeLists.txt
@@ -0,0 +1,11 @@
+--- CMakeLists.txt.orig 2014-02-20 19:54:58 UTC
++++ CMakeLists.txt
+@@ -34,7 +34,7 @@ if(POD2MAN)
+ if(POD2MAN)
+ message(STATUS "found pod2man for generation of documentation: ${POD2MAN}")
+ add_custom_command(OUTPUT ${CMAKE_BINARY_DIR}/gladtex.1
+- COMMAND ${POD2MAN} ARGS -c \"User Commands\" -r \"gladtex 1.3\" ${CMAKE_SOURCE_DIR}/gladtex.pod > ${CMAKE_BINARY_DIR}/gladtex.1)
++ COMMAND ${POD2MAN} ARGS -c \"User Commands\" -r \"gladtex 1.4.2\" ${CMAKE_SOURCE_DIR}/gladtex.pod > ${CMAKE_BINARY_DIR}/gladtex.1)
+ add_custom_target(gladtex.1_custom ALL DEPENDS ${CMAKE_BINARY_DIR}/gladtex.1)
+ endif()
+
diff --git a/textproc/gladtex/files/patch-Makefile b/textproc/gladtex/files/patch-Makefile
deleted file mode 100644
index ba6f45cc4daa..000000000000
--- a/textproc/gladtex/files/patch-Makefile
+++ /dev/null
@@ -1,28 +0,0 @@
---- ./Makefile.orig 2012-05-01 18:11:56.000000000 +0200
-+++ ./Makefile 2012-05-01 18:15:04.000000000 +0200
-@@ -1,18 +1,19 @@
- # Makefile for gladtex
-
--BINPATH = /usr/local/bin
--MANPATH = /usr/local/share/man/man1
-+BINPATH?= /usr/local/bin
-+MANPATH?= /usr/local/share/man/man1
-
--CC = gcc -O2 -DGIF
--LIB = -lm -lz -lgif -lpng
-+CC ?= gcc
-+CFLAGS+= -DGIF ${INCPATH}
-+LIB = -lm -lz ${LIBPATH} -lgif -lpng
- OBJ = eqn2img.o
- POD2MAN = pod2man
-
- all: ${OBJ} gladtex.1
-- ${CC} -o eqn2img ${LIB} ${OBJ}
-+ ${CC} ${CFLAGS} -o eqn2img ${LIB} ${OBJ}
-
- eqn2img.o: eqn2img.c
-- ${CC} -c eqn2img.c
-+ ${CC} ${CFLAGS} -c eqn2img.c
-
- gladtex.1: gladtex.pod
- ${POD2MAN} -c "User Commands" -r "gladtex 1.2" gladtex.pod > gladtex.1
diff --git a/textproc/gladtex/files/patch-eqn2img.c b/textproc/gladtex/files/patch-eqn2img.c
index 1b663c49a60b..4f0fbfb81abf 100644
--- a/textproc/gladtex/files/patch-eqn2img.c
+++ b/textproc/gladtex/files/patch-eqn2img.c
@@ -1,24 +1,15 @@
---- eqn2img.c.orig 2013-01-27 04:17:45 UTC
+--- eqn2img.c.orig 2014-02-20 19:54:58 UTC
+++ eqn2img.c
-@@ -367,7 +367,7 @@ png_bytepp png_read(char *filename, int
- info_ptr = png_create_info_struct(png_ptr);
- assert(info_ptr);
-
-- if(setjmp(png_ptr->jmpbuf)) {
-+ if(setjmp(png_jmpbuf(png_ptr))) {
- png_destroy_read_struct(&png_ptr, &info_ptr, NULL);
- fclose(fp);
- return NULL;
-@@ -580,7 +580,7 @@ int png_write(png_bytepp image, char *im
- assert(info_ptr);
+@@ -30,7 +30,7 @@ This utility is part of\n\
- /* error handling, libpng longjmps here on any error */
-- if(setjmp(png_ptr->jmpbuf)) {
-+ if(setjmp(png_jmpbuf(png_ptr))) {
- png_destroy_read_struct(&png_ptr, &info_ptr, NULL);
- fclose(fp);
- return -1;
-@@ -623,19 +623,31 @@ int gif_write(png_bytepp image, char *im
+ #define USAGE "\
+ This utility is part of\n\
+-gladtex version 1.4.1, Copyright (C) 1999-2010 Martin G. Gulbrandsen\n\
++gladtex version 1.4.2, Copyright (C) 1999-2010 Martin G. Gulbrandsen\n\
+ (C) 2014 Sebastian Humenda\n\
+ \n\
+ GladTXx comes with ABSOLUTELY NO WARRANTY. This is free software,\n\
+@@ -634,19 +634,31 @@ int gif_write(png_bytepp image, char *img_name, int wi
};
if(img_name) {
@@ -50,7 +41,7 @@
/* EGifSetGifVersion("89a"); this causes segfault (but is really required for transparency, I think) */
EGifPutScreenDesc(fp, width, height, 256, 255, color_map);
-@@ -649,7 +661,11 @@ int gif_write(png_bytepp image, char *im
+@@ -660,7 +672,11 @@ int gif_write(png_bytepp image, char *img_name, int wi
return -1;
}
@@ -62,7 +53,7 @@
return 0;
}
-@@ -715,7 +731,7 @@ int to_ps(char *basename, int verbose) {
+@@ -726,7 +742,7 @@ int to_ps(char *basename, int verbose) {
fprintf(stderr, " -> ps");
cmd = NEW(char, 2*strlen(basename) + 46);
diff --git a/textproc/gladtex/files/patch-gladtex b/textproc/gladtex/files/patch-gladtex
new file mode 100644
index 000000000000..72c5cf5b5ab8
--- /dev/null
+++ b/textproc/gladtex/files/patch-gladtex
@@ -0,0 +1,11 @@
+--- gladtex.orig 2025-10-31 21:57:18 UTC
++++ gladtex
+@@ -50,7 +50,7 @@ my $preamble = "
+ \\usepackage{amssymb}
+ ";
+
+-our $usage = "gladtex version 1.2, Copyright (C) 1999-2010 Martin G. Gulbrandsen
++our $usage = "gladtex version 1.4.2, Copyright (C) 1999-2010 Martin G. Gulbrandsen
+
+ gladtex comes with ABSOLUTELY NO WARRANTY. This is free software,
+ and you are welcome to redistribute it under certain conditions;