diff options
Diffstat (limited to 'textproc/sgrep/files/patch-Makefile')
-rw-r--r-- | textproc/sgrep/files/patch-Makefile | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/textproc/sgrep/files/patch-Makefile b/textproc/sgrep/files/patch-Makefile new file mode 100644 index 0000000..b9f6d99 --- /dev/null +++ b/textproc/sgrep/files/patch-Makefile @@ -0,0 +1,39 @@ +--- Makefile.orig 1996-05-02 19:58:24.000000000 +0800 ++++ Makefile 2011-09-07 09:33:07.000000000 +0800 +@@ -10,11 +10,11 @@ + # + + # This is where the executable goes +-BINDIR = /usr/local/bin/ ++BINDIR = ${PREFIX}/bin + # Where sgrep library files are placed (sgreprc) +-LIBDIR = /usr/local/lib ++LIBDIR = ${PREFIX}/share + # Where the manual page goes +-MANFILE = /usr/local/man/man1/sgrep.1 ++MANFILE = ${PREFIX}/man/man1/sgrep.1 + # Where the sample rc file goes + RCFILE = $(LIBDIR)/sgreprc + # If you can't install as root you might wan't to use this as rc file +@@ -25,7 +25,7 @@ VERSION = 0.99 + CFLAGS = -O -DVERSION=\"$(VERSION)\" -DLIBDIR=\"$(LIBDIR)\" + LDFLAGS = + # if cc fails to you use gcc +-CC = cc ++#CC = cc + CPPFLAGS = + LIBS = + +@@ -45,11 +45,7 @@ sgrep: $(OBJECTS) + clean: + -rm -f $(OBJECTS) + +-install: sgrep +- cp sgrep $(BINDIR)/sgrep +- chmod 755 $(BINDIR)/sgrep +- cp sgrep.1 $(MANFILE) +- chmod 644 $(MANFILE) ++install: + + install.rc: sample.sgreprc + cp sample.sgreprc $(RCFILE) |