aboutsummaryrefslogtreecommitdiff
path: root/textproc/gladtex/files/patch-Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'textproc/gladtex/files/patch-Makefile')
-rw-r--r--textproc/gladtex/files/patch-Makefile26
1 files changed, 26 insertions, 0 deletions
diff --git a/textproc/gladtex/files/patch-Makefile b/textproc/gladtex/files/patch-Makefile
new file mode 100644
index 000000000000..af539c45f66f
--- /dev/null
+++ b/textproc/gladtex/files/patch-Makefile
@@ -0,0 +1,26 @@
+$FreeBSD$
+--- Makefile Wed Oct 30 13:24:34 2002
++++ Makefile.port Sat Feb 4 21:43:23 2006
+@@ -1,14 +1,17 @@
+-BINPATH = /usr/local/bin
++BINPATH?= /usr/local/bin
++LIBPATH?= /usr/local/lib
++INCPATH?= /usr/local/include
+
+-CC = gcc -O2 -DGIF
+-LIB = -lm -lz -lungif -lpng
++CC = gcc
++CFLAGS+= -DGIF ${INCPATH}
++LIB = -lm -lz ${LIBPATH} -lungif -lpng
+ OBJ = eqn2img.o
+
+ all: ${OBJ}
+- ${CC} -o eqn2img ${LIB} ${OBJ}
++ ${CC} ${CFLAGS} -o eqn2img ${LIB} ${OBJ}
+
+ eqn2img.o: eqn2img.c
+- ${CC} -c eqn2img.c
++ ${CC} ${CFLAGS} -c eqn2img.c
+
+ install: all
+ install -m 755 -s eqn2img ${BINPATH}