File: fix_path_in_makefiles.patch

package info (click to toggle)
w3cam 0.7.2-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 748 kB
  • sloc: ansic: 3,822; makefile: 70
file content (29 lines) | stat: -rw-r--r-- 855 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
Description: Fix installation paths in Makefiles

--- a/Makefile.in
+++ b/Makefile.in
@@ -31,7 +31,7 @@ install: w3cam.cgi
 	test -f $(cgibindir)/w3cam.cgi.scf || \
 		install w3cam.cgi.scf $(cgibindir)/
 	install vidcat $(bindir)/
-	install vidcat.1 $(prefix)/man/man1/
+	install vidcat.1 $(prefix)/share/man/man1/
 
 vidcat.1: vidcat.man
 	sed "s/VERSION/$(VERSION)/" < vidcat.man > vidcat.1
--- a/w3camd/Makefile
+++ b/w3camd/Makefile
@@ -2,10 +2,10 @@
 #
 # makefile for w3camd
 #
-prefix=/usr/local
-sbindir=/usr/local/sbin
+prefix=/usr
+sbindir=/usr/sbin
 
-CFLAGS = -O2 -Wall -I/usr/local/include -I/usr/local/X11/include -I.. -I. -I/usr/local/include -g -DDEBUG -DCAM_PORT=8999 -D_REENTRANT
+CFLAGS = -g -O2 -I/usr/local/include -I/usr/local/X11/include -I.. -I. -I/usr/include -g -DDEBUG -DCAM_PORT=8999 -D_REENTRANT
 CC = gcc
 
 default: w3camd