1
0

patch-Makefile 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. --- motion-4.0.orig/Makefile 2011-09-18 22:49:29.000000000 +0200
  2. +++ motion-4.0/Makefile 2012-07-25 14:54:50.000000000 +0200
  3. @@ -10,18 +10,18 @@
  4. # http://www.lavrsen.dk/twiki/bin/view/Motion #
  5. ################################################################################
  6. -CC = gcc
  7. +CC = /Volumes/adk/openadk/host_mipsel_uclibc/bin/mipsel-openadk-linux-uclibc-gcc
  8. INSTALL = install
  9. ################################################################################
  10. # Install locations, controlled by setting configure flags. #
  11. ################################################################################
  12. -prefix = /usr/local
  13. +prefix = /usr
  14. exec_prefix = ${prefix}
  15. -bindir = ${exec_prefix}/bin
  16. -mandir = ${datarootdir}/man
  17. -sysconfdir = ${prefix}/etc
  18. -datadir = ${datarootdir}
  19. +bindir = /usr/bin
  20. +mandir = /usr/share/man
  21. +sysconfdir = /etc
  22. +datadir = /usr/share
  23. datarootdir = ${prefix}/share
  24. docdir = $(datadir)/doc/motion-trunkREV528
  25. examplesdir = $(datadir)/motion-trunkREV528/examples
  26. @@ -30,14 +30,14 @@ examplesdir = $(datadir)/motion-trunkREV
  27. # These variables contain compiler flags, object files to build and files to #
  28. # install. #
  29. ################################################################################
  30. -CFLAGS = -g -O2 -D_REENTRANT -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_FFMPEG -I/usr/include -DFFMPEG_NEW_INCLUDES -DHAVE_FFMPEG_NEW -DMOTION_V4L2 -DTYPE_32BIT="int" -DHAVE_BSWAP -Wall -DVERSION=\"trunkREV528\" -Dsysconfdir=\"$(sysconfdir)\"
  31. -LDFLAGS = -L/usr/lib64
  32. -LIBS = -lm -lpthread -L/usr/lib -lSDL -ljpeg -L/usr/lib64 -lavformat -lavcodec -lavutil -lm -lz -lsqlite3
  33. -VIDEO_OBJ = video.o video2.o video_common.o
  34. +CFLAGS = -fwrapv -fno-ident -fhonour-copts -fomit-frame-pointer -Os -pipe -I/sw/include -fwrapv -fno-ident -fhonour-copts -fomit-frame-pointer -Os -pipe -D_REENTRANT -I/Volumes/adk/openadk/target_mipsel_uclibc/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DMOTION_V4L2 -DMOTION_V4L2_OLD -DTYPE_32BIT="int" -DHAVE_BSWAP -Wall -DVERSION=\"trunkREV528\" -Dsysconfdir=\"$(sysconfdir)\"
  35. +LDFLAGS = -L/Volumes/adk/openadk/target_mipsel_uclibc/lib -L/Volumes/adk/openadk/target_mipsel_uclibc/usr/lib -Wl,-O2 -Wl,-rpath -Wl,/usr/lib -Wl,-rpath-link -Wl,/Volumes/adk/openadk/target_mipsel_uclibc/usr/lib -L/sw/lib -L/Volumes/adk/openadk/target_mipsel_uclibc/lib -L/Volumes/adk/openadk/target_mipsel_uclibc/usr/lib -Wl,-O2 -Wl,-rpath -Wl,/usr/lib -Wl,-rpath-link -Wl,/Volumes/adk/openadk/target_mipsel_uclibc/usr/lib
  36. +LIBS = -lm -L/sw/lib -lpthread -lSDL -lpthread -ljpeg -lsqlite3
  37. +VIDEO_OBJ = video_freebsd.o
  38. OBJ = motion.o logger.o conf.o draw.o jpegutils.o vloopback_motion.o $(VIDEO_OBJ) \
  39. netcam.o netcam_ftp.o netcam_jpeg.o netcam_wget.o track.o \
  40. alg.o event.o picture.o rotate.o webhttpd.o \
  41. - stream.o md5.o ffmpeg.o sdl.o
  42. + stream.o md5.o sdl.o
  43. SRC = $(OBJ:.o=.c)
  44. DOC = CHANGELOG COPYING CREDITS INSTALL README motion_guide.html
  45. EXAMPLES = *.conf motion.init-Debian motion.init-Fedora motion.init-FreeBSD.sh