[packages] multimedia/motion: forgot to remove a patch
[openwrt/svn-archive/archive.git] / multimedia / motion / patches / 002-honor_cppflags.patch
1 Index: motion-3.2.9/Makefile.in
2 ===================================================================
3 --- motion-3.2.9.orig/Makefile.in
4 +++ motion-3.2.9/Makefile.in
5 @@ -33,6 +33,7 @@ examplesdir = $(docdir)/examples
6 ################################################################################
7 CFLAGS = @CFLAGS@ -Wall -DVERSION=\"$(VERSION)\" -D_REENTRANT \
8 -Dsysconfdir=\"$(sysconfdir)\"
9 +CPPFLAGS = @CPPFLAGS@
10 LDFLAGS = @LDFLAGS@
11 LIBS = @LIBS@
12 VIDEO_OBJ = @VIDEO@
13 @@ -120,7 +121,7 @@ endif
14 ################################################################################
15 $(DEPEND_FILE): *.h $(SRC)
16 @echo "Generating dependencies, please wait..."
17 - @$(CC) $(CFLAGS) -M $(SRC) > .tmp
18 + @$(CC) $(CFLAGS) $(CPPFLAGS) -M $(SRC) > .tmp
19 @mv -f .tmp $(DEPEND_FILE)
20 @echo
21