File: prep-makefiles-for-debian.patch

package info (click to toggle)
xtrs 4.9d-3
  • links: PTS, VCS
  • area: contrib
  • in suites: sid
  • size: 5,484 kB
  • sloc: ansic: 72,545; makefile: 1,633; sh: 554; csh: 132
file content (72 lines) | stat: -rw-r--r-- 2,315 bytes parent folder | download | duplicates (3)
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
* Set file hierarchy expectations to conform with Debian policy.
* Create destination directories for installed files.
* Let the linker figure out whether we need ncurses; xtrs does not
  directly use any ncurses symbols.
* Actually install the cassette script.  Enable Makefile.local users to
  choose between the C-shell and POSIX-shell implementations.

-- Branden Robinson, 2017-03-23T18:08:52-0400
--- a/Makefile.local
+++ b/Makefile.local
@@ -9,6 +9,11 @@
 
 # ENDIAN = -Dbig_endian
 
+# If you want the C-shell version of the cassette script:
+#CASSETTE = cassette
+# If you want the POSIX-shell version of the cassette script:
+CASSETTE = cassette.sh
+
 # If you would like the TRS-80 ROM to be built into the application,
 # use the following lines (with the appropriate file names).  You can
 # get a ROM image from a real TRS-80 with moderate effort, if you have
@@ -50,7 +55,7 @@
 # these lines.  As of xtrs 2.7, it is now OK to use this feature again.
 
 READLINE = -DREADLINE
-READLINELIBS = -lreadline -lncurses
+READLINELIBS = -lreadline
 
 # Select debugging symbols (-g) and/or optimization (-O2, etc.)
 
@@ -65,7 +70,7 @@
 
 # If you need a different path for libraries:
 
-LDFLAGS = -L/usr/X11R6/lib
+LDFLAGS = -L/usr/lib/X11
 #LDFLAGS = -non_shared -L/usr/X11/lib
 
 # If you need a different path for include files:
@@ -85,11 +90,11 @@
 # If you want xtrs to look for a global app-defaults file
 # at runtime in $APPDEFAULTS/Xtrs:
 
-APPDEFAULTS = -DAPPDEFAULTS='"/usr/X11/lib/X11/app-defaults"'
+APPDEFAULTS = -DAPPDEFAULTS='"/etc/X11/app-defaults"'
 
 # prefix directory
 
-PREFIX=/usr/local
+PREFIX=$(DESTDIR)/usr
 #If included in distribution: PREFIX=/usr
 
 # Set these to where you want installed stuff to go, if you install them.
--- a/Makefile
+++ b/Makefile
@@ -204,10 +204,14 @@
 
 install: install-progs install-man
 
-install-progs: $(PROGS)
+install-progs: $(PROGS) $(CASSETTE)
+	$(INSTALL) -d -m 755 $(BINDIR)
 	$(INSTALL) -c -m 755 $(PROGS) $(BINDIR)
+	$(INSTALL) -c -m 755 $(CASSETTE) $(BINDIR)/cassette
 
 install-man: $(MANPAGES)
+	$(INSTALL) -d -m 755 $(MANDIR)
+	$(INSTALL) -d -m 755 $(MANDIR)/man1
 	$(INSTALL) -c -m 644 xtrs.man $(MANDIR)/man1/xtrs.1
 	$(INSTALL) -c -m 644 cassette.man $(MANDIR)/man1/cassette.1
 	$(INSTALL) -c -m 644 mkdisk.man $(MANDIR)/man1/mkdisk.1