File luvcview-make.diff of Package luvcview

Common subdirectories: luvcview.orig/.svn and luvcview/.svn
diff -up luvcview.orig/Makefile luvcview/Makefile
--- luvcview.orig/Makefile	2009-01-26 00:44:09.115789000 +0100
+++ luvcview/Makefile	2009-01-26 01:02:22.579841000 +0100
@@ -8,7 +8,8 @@ CC=gcc
 CPP=g++
 INSTALL=install
 APP_BINARY=luvcview
-BIN=/usr/local/bin
+PREFIX=/usr/local
+BIN=$(DESTDIR)$(PREFIX)/bin
 MATH_LIB = -lm
 SDLLIBS = $(shell sdl-config --libs) 
 SDLFLAGS = $(shell sdl-config --cflags)
@@ -23,7 +24,7 @@ VERSION = 0.2.5
 #           -Wno-unused
 #           -Wunused
 
-CFLAGS += -DUSE_SDL -O2 -DLINUX -DVERSION=\"$(VERSION)\" -I$(SDLFLAGS) $(WARNINGS)
+CFLAGS += -DUSE_SDL -O2 -DLINUX -DVERSION=\"$(VERSION)\" -I$(SDLFLAGS) $(WARNINGS) $(EXTRA_CFLAGS)
 CPPFLAGS = $(CFLAGS)
 
 OBJECTS= luvcview.o color.o utils.o v4l2uvc.o gui.o avilib.o
@@ -45,5 +46,6 @@ luvcview:	$(OBJECTS)
 
 
 install: luvcview
-	$(INSTALL) -s -m 755 -g root -o root $(APP_BINARY) $(BIN) 
+	$(INSTALL) -d $(BIN)
+	$(INSTALL) -m 755 $(APP_BINARY) $(BIN) 
 	rm -f $(BIN)/uvcview