summaryrefslogtreecommitdiff
path: root/recipes-extended/uvccapture/files/makefile.patch
blob: 473315476ce3ab94ab982fdba594c52f533fbb19 (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
Index: uvccapture-0.5/Makefile
===================================================================
--- uvccapture-0.5.orig/Makefile	2011-08-18 14:02:17.757628553 -0500
+++ uvccapture-0.5/Makefile	2011-08-18 14:10:09.627899608 -0500
@@ -1,8 +1,8 @@
-CC=gcc
-CPP=g++
+#CC=gcc
+#CPP=g++
 APP_BINARY=uvccapture
-VERSION = 0.4
-PREFIX=/usr/local/bin
+VERSION = 0.5
+PREFIX=/usr/bin
 
 WARNINGS = -Wall
 
@@ -20,8 +20,9 @@
 	rm -f *.a *.o $(APP_BINARY) core *~ log errlog
 
 install:
-	install $(APP_BINARY) $(PREFIX)
+	install -d $(DESTDIR)$(PREFIX)
+	install -m755 $(APP_BINARY) $(DESTDIR)$(PREFIX)
 
 # Applications:
 uvccapture: $(OBJECTS)
-	$(CC)   $(OBJECTS) $(XPM_LIB) $(MATH_LIB) -ljpeg -o $(APP_BINARY)
+	$(CC) $(OBJECTS) $(XPM_LIB) $(MATH_LIB) -ljpeg $(LDFLAGS) -o $(APP_BINARY)