summaryrefslogtreecommitdiff
path: root/cdp-fsstnd.patch
blob: 6952e6dfe3d8af1c50af493e7a18fdccf414a276 (plain)
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
--- cdp-0.33/Makefile.orig	Mon Jan  8 12:05:20 1996
+++ cdp-0.33/Makefile	Mon Jan  8 12:07:21 1996
@@ -10,7 +10,7 @@
 COMP_OPT = -Wall -O2 
 LINK_OPT = 
 LIBPATH=/usr/lib
-LIBS = -ltermcap -L$(LIBPATH) -lncurses
+LIBS = -L$(LIBPATH) -lncurses
 OBJS = cdp.o color.o display.o misc.o volume.o hardware.o database.o getline.o
 
 
@@ -22,10 +22,7 @@
 #
 # If you compile under SystemV, set the NCURSES variable to `.'
 #
-NCURSES=/usr/local/include
-ifeq ($(wildcard /usr/include/ncurses), /usr/include/ncurses)
 NCURSES=/usr/include/ncurses
-endif
 
 DBG = -I$(NCURSES) 
 
@@ -59,9 +56,9 @@
 install: cdp cdp.1.Z
 	chmod 755 cdp
 	chmod 644 cdp.1.Z
-	cp cdp /usr/local/bin
-	ln -s /usr/local/bin/cdp /usr/local/bin/cdplay
-	cp cdp.1.Z /usr/man/cat1
+	install -m 755 -s cdp $(DESTDIR)/usr/bin
+	ln -sf cdp $(DESTDIR)/usr/bin/cdplay
+	install -m 644 cdp.1 $(DESTDIR)/usr/man/man1
 
 clean:
 	rm -f cdp cdp.1.Z *.o core *~