mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
Support staging.
Sponsored by: Absolight
This commit is contained in:
parent
fb4f7d2172
commit
f15da50639
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=341579
@ -12,8 +12,4 @@ COMMENT= A nice Highlighting Hack for grep
|
||||
|
||||
WRKSRC= ${WRKDIR}/hgrep
|
||||
|
||||
MAN1= hgrep.1
|
||||
MANCOMPRESSED= no
|
||||
|
||||
NO_STAGE= yes
|
||||
.include <bsd.port.mk>
|
||||
|
39
textproc/hgrep/files/patch-Makefile
Normal file
39
textproc/hgrep/files/patch-Makefile
Normal file
@ -0,0 +1,39 @@
|
||||
--- ./Makefile.orig 1999-10-05 02:43:40.000000000 +0000
|
||||
+++ ./Makefile 2014-01-28 14:29:53.000000000 +0000
|
||||
@@ -8,10 +8,9 @@
|
||||
|
||||
# CONFIGURE: your favorite C compiler
|
||||
#CC = cc
|
||||
-CC = gcc -ansi -pedantic -fpcc-struct-return
|
||||
|
||||
# CONFIGURE: your favorite C flags
|
||||
-CFLAGS = -O
|
||||
+CFLAGS = -O -ansi -pedantic -fpcc-struct-return
|
||||
#CFLAGS = -g -O
|
||||
|
||||
# CONFIGURE: your favorite loader flags
|
||||
@@ -51,18 +50,18 @@
|
||||
|
||||
install.bin: all
|
||||
for i in $(EXES) ; do \
|
||||
- rm -f $(BINDIR)/$$i ; \
|
||||
- cp $$i $(BINDIR) ; \
|
||||
+ rm -f $(DESTDIR)$(BINDIR)/$$i ; \
|
||||
+ cp $$i $(DESTDIR)$(BINDIR) ; \
|
||||
done
|
||||
for l in a e f n ; do \
|
||||
- rm -f $(BINDIR)/h$${l}grep ; \
|
||||
- ln -s $(BINDIR)/hgrep $(BINDIR)/h$${l}grep ; \
|
||||
+ rm -f $(DESTDIR)$(BINDIR)/h$${l}grep ; \
|
||||
+ ln -s $(BINDIR)/hgrep $(DESTDIR)$(BINDIR)/h$${l}grep ; \
|
||||
done
|
||||
|
||||
install.man:
|
||||
for i in $(MANS) ; do \
|
||||
- rm -f $(MANDIR)/$$i.1 ; \
|
||||
- cp $$i.1 $(MANDIR) ; \
|
||||
+ rm -f $(DESTDIR)$(MANDIR)/$$i.1 ; \
|
||||
+ cp $$i.1 $(DESTDIR)$(MANDIR) ; \
|
||||
done
|
||||
|
||||
clean:
|
@ -3,3 +3,4 @@ bin/hagrep
|
||||
bin/hegrep
|
||||
bin/hfgrep
|
||||
bin/hngrep
|
||||
man/man1/hgrep.1.gz
|
||||
|
Loading…
Reference in New Issue
Block a user