svn commit: r386420 - in head/graphics/jgraph: . files
Dmitry Marakasov
amdmi3 at FreeBSD.org
Fri May 15 16:02:11 UTC 2015
Author: amdmi3
Date: Fri May 15 16:02:09 2015
New Revision: 386420
URL: https://svnweb.freebsd.org/changeset/ports/386420
Log:
- Strip binary
- Simplify patching
Modified:
head/graphics/jgraph/Makefile
head/graphics/jgraph/files/patch-makefile
Modified: head/graphics/jgraph/Makefile
==============================================================================
--- head/graphics/jgraph/Makefile Fri May 15 15:38:35 2015 (r386419)
+++ head/graphics/jgraph/Makefile Fri May 15 16:02:09 2015 (r386420)
@@ -3,6 +3,7 @@
PORTNAME= jgraph
PORTVERSION= 8.3
+PORTREVISION= 1
CATEGORIES= graphics
MASTER_SITES= http://web.eecs.utk.edu/~plank/plank/jgraph/
DISTFILES= ${PORTNAME}.shar.Z
@@ -20,8 +21,4 @@ MAKEFILE= makefile
MAKE_ENV+= DATADIR=${DATADIR}
CFLAGS+= -Wno-return-type
-post-patch:
- @${REINPLACE_CMD} -E -e 's,(PREFIX|DATADIR)},DESTDIR}$${&,' \
- -e 's|-o bin -g bin||' ${WRKSRC}/makefile
-
.include <bsd.port.mk>
Modified: head/graphics/jgraph/files/patch-makefile
==============================================================================
--- head/graphics/jgraph/files/patch-makefile Fri May 15 15:38:35 2015 (r386419)
+++ head/graphics/jgraph/files/patch-makefile Fri May 15 16:02:09 2015 (r386420)
@@ -1,6 +1,6 @@
---- makefile.orig 2013-02-19 10:47:01.000000000 +0100
-+++ makefile 2013-02-19 10:47:23.000000000 +0100
-@@ -18,6 +18,34 @@
+--- makefile.orig 2015-05-15 15:48:34 UTC
++++ makefile
+@@ -18,6 +18,34 @@ OBJS = draw.o \
show.o \
token.o
@@ -35,7 +35,7 @@
EXAMPLES = \
acc.jps \
acc.eps \
-@@ -58,15 +86,21 @@
+@@ -58,15 +86,21 @@ examples: $(EXAMPLES)
.tex.dvi:
latex $*.tex
.c.o:
@@ -51,10 +51,10 @@
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}
++ ${BSD_INSTALL_PROGRAM} jgraph ${DESTDIR}${PREFIX}/bin
++ ${BSD_INSTALL_MAN} jgraph.1 ${DESTDIR}${PREFIX}/man/man1
++ -mkdir -p -m 755 ${DESTDIR}${DATADIR}
++ ${BSD_INSTALL_DATA} $(EXAMPLE_SRC) ${DESTDIR}${DATADIR}
+
ad.jps: cube.eps disk.eps
bailey.jps: bailey.pts
More information about the svn-ports-all
mailing list