aboutsummaryrefslogtreecommitdiff
path: root/graphics/jgraph/files/patch-makefile
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/jgraph/files/patch-makefile')
-rw-r--r--graphics/jgraph/files/patch-makefile61
1 files changed, 61 insertions, 0 deletions
diff --git a/graphics/jgraph/files/patch-makefile b/graphics/jgraph/files/patch-makefile
new file mode 100644
index 000000000000..d958f69de137
--- /dev/null
+++ b/graphics/jgraph/files/patch-makefile
@@ -0,0 +1,61 @@
+--- makefile.orig 2013-02-19 10:47:01.000000000 +0100
++++ makefile 2013-02-19 10:47:23.000000000 +0100
+@@ -18,6 +18,34 @@
+ show.o \
+ token.o
+
++
++EXAMPLE_SRC = \
++ acc.jgr \
++ ad.jgr \
++ alb.jgr \
++ bailey.jgr \
++ cube.jgr \
++ disk.jgr \
++ ebars.jgr \
++ ex1.jgr \
++ ex2.jgr \
++ data.txt \
++ g8.jgr \
++ g8col.jgr \
++ g9n10.jgr \
++ gpaper.jgr \
++ hypercube.jgr \
++ mab2.jgr \
++ mab2.times \
++ nr.jgr \
++ sin.pts \
++ sin1.jgr \
++ sin2.pts \
++ sin2.jgr \
++ sin3.pts \
++ sin3.jgr \
++ wortman.jgr
++
+ EXAMPLES = \
+ acc.jps \
+ acc.eps \
+@@ -58,15 +86,21 @@
+ .tex.dvi:
+ latex $*.tex
+ .c.o:
+- $(CC) -c -g $*.c
++ $(CC) -c $(CFLAGS) $*.c
+
+
+ jgraph: $(OBJS)
+- $(CC) -g $(OBJS) -lm -o jgraph
++ $(CC) $(CFLAGS) $(OBJS) -lm -o jgraph
+
+ sin: sin.o
+ cc -o sin sin.o -lm
+
++install: jgraph
++ install -c -m 555 -o bin -g bin jgraph ${PREFIX}/bin
++ install -c -m 444 -o bin -g bin jgraph.1 ${PREFIX}/man/man1
++ -mkdir -p -m 755 ${DATADIR}
++ install -c -m 444 -o bin -g bin $(EXAMPLE_SRC) ${DATADIR}
++
+ ad.jps: cube.eps disk.eps
+ bailey.jps: bailey.pts
+ ex2.jps: data.txt