biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / tools / misc / rig / rig_1.11-1.diff
blob301cf78b5a9bcb6222f8c1e042494ce2badef2d2
1 --- rig-1.11.orig/Makefile
2 +++ rig-1.11/Makefile
3 @@ -1,20 +1,21 @@
4 -PREFIX=/usr/local
5 +PREFIX=${out}
6 BINDIR=${PREFIX}/bin
7 MANDIR=${PREFIX}/man
8 DATADIR=${PREFIX}/share/rig
9 +CXX=g++
11 all: rig rig.6
12 rig: rig.cc
13 - g++ -g rig.cc -o rig -Wall -DDATADIR="\"$(DATADIR)\""
14 + ${CXX} -O2 -g rig.cc -o rig -Wall -DDATADIR="\"$(DATADIR)\""
16 rig.6: rig.6.in
17 sed s@DATADIR@"$(DATADIR)"@g < rig.6.in > rig.6
19 install: rig rig.6
20 - install -g 0 -m 755 -o 0 -s rig $(BINDIR)
21 - install -g 0 -m 644 -o 0 rig.6 $(MANDIR)/man6/rig.6
22 - install -g 0 -m 755 -o 0 -d $(DATADIR)
23 - install -g 0 -m 644 -o 0 data/*.idx $(DATADIR)
24 + install -m 755 -d $(DESTDIR)$(DATADIR)
25 + install -m 755 -d $(DESTDIR)$(BINDIR)
26 + install -m 755 rig $(DESTDIR)$(BINDIR)/rig
27 + install -m 644 data/*.idx $(DESTDIR)$(DATADIR)
29 clean:
30 rm -rf *~ *.rej *.orig *.o rig rig.6
31 --- rig-1.11.orig/rig.cc
32 +++ rig-1.11/rig.cc
33 @@ -26,6 +26,7 @@
34 #include <time.h>
35 #include <errno.h>
36 #include <assert.h>
37 +#include <string.h>
39 using namespace std;