freebsd-ports/textproc/gladtex/files/patch-Makefile
Nicola Vitale 6e20cdaa4f - Update to 1.3
- Trim Makefile header
- Remove any ABI version number from LIB_DEPENDS
- Remove Author field in pkg-descr
2013-03-07 20:04:30 +00:00

28 lines
720 B
Text

--- ./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