mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
3bde10fa5c
- Set MASTER_SITES to Sourceforge - Migrate from libungif to gif [1] - Replace USE_PERL5_RUN with USE_PERL5 (Perl required to create the man page) - Remove post-extract and post-install targets - Add do-install target - Install man page of gladtex - Update the URL of the WWW site PR: ports/165376 Submitted by: swills [1]
29 lines
719 B
Plaintext
29 lines
719 B
Plaintext
--- ./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
|