File: 0001_Makefile.patch

package info (click to toggle)
rig 1.11-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 188 kB
  • sloc: cpp: 245; makefile: 18; sh: 5
file content (36 lines) | stat: -rw-r--r-- 1,070 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Author: Ying-Chun Liu (PaulLiu) <paulliu@debian.org>
Last-Update: 2022-01-07
Bug-Debian: https://bugs.debian.org/999011
Description: Enable dh_auto_install

Index: rig-1.11/Makefile
===================================================================
--- rig-1.11.orig/Makefile
+++ rig-1.11/Makefile
@@ -1,20 +1,20 @@
-PREFIX=/usr/local
+PREFIX=/usr
 BINDIR=${PREFIX}/bin
 MANDIR=${PREFIX}/man
 DATADIR=${PREFIX}/share/rig
+CXX=g++
 
 all: rig rig.6
 rig: rig.cc
-	g++ -g rig.cc -o rig -Wall -DDATADIR="\"$(DATADIR)\""
+	${CXX} -O2 -g rig.cc -o rig -Wall -DDATADIR="\"$(DATADIR)\""
 
 rig.6: rig.6.in
 	sed s@DATADIR@"$(DATADIR)"@g < rig.6.in > rig.6
 
 install: rig rig.6
-	install -g 0 -m 755 -o 0 -s rig $(BINDIR)
-	install -g 0 -m 644 -o 0 rig.6 $(MANDIR)/man6/rig.6
-	install -g 0 -m 755 -o 0 -d $(DATADIR)
-	install -g 0 -m 644 -o 0 data/*.idx $(DATADIR)
+	install -g 0 -m 755 -o 0 rig $(DESTDIR)$(BINDIR)
+	install -g 0 -m 755 -o 0 -d $(DESTDIR)$(DATADIR)
+	install -g 0 -m 644 -o 0 data/*.idx $(DESTDIR)$(DATADIR)
 
 clean:
 	rm -rf *~ *.rej *.orig *.o rig rig.6