patch-librtmp_Makefile 972 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. --- rtmpdump-2.4.orig/librtmp/Makefile 2013-12-15 14:24:48.000000000 +0100
  2. +++ rtmpdump-2.4/librtmp/Makefile 2014-12-19 20:44:42.000000000 +0100
  3. @@ -1,6 +1,6 @@
  4. VERSION=v2.4
  5. -prefix=/usr/local
  6. +prefix=/usr
  7. incdir=$(prefix)/include/librtmp
  8. bindir=$(prefix)/bin
  9. @@ -11,12 +11,12 @@ INCDIR=$(DESTDIR)$(incdir)
  10. LIBDIR=$(DESTDIR)$(libdir)
  11. MANDIR=$(DESTDIR)$(mandir)
  12. -CC=$(CROSS_COMPILE)gcc
  13. -LD=$(CROSS_COMPILE)ld
  14. -AR=$(CROSS_COMPILE)ar
  15. +CC?=$(CROSS_COMPILE)gcc
  16. +LD?=$(CROSS_COMPILE)ld
  17. +AR?=$(CROSS_COMPILE)ar
  18. SYS=posix
  19. -CRYPTO=OPENSSL
  20. +#CRYPTO=OPENSSL
  21. #CRYPTO=GNUTLS
  22. DEF_POLARSSL=-DUSE_POLARSSL
  23. DEF_OPENSSL=-DUSE_OPENSSL
  24. @@ -74,8 +74,10 @@ SO_INST=$(SOINST_$(SHARED))
  25. DEF=-DRTMPDUMP_VERSION=\"$(VERSION)\" $(CRYPTO_DEF) $(XDEF)
  26. OPT=-O2
  27. -CFLAGS=-Wall $(XCFLAGS) $(INC) $(DEF) $(OPT) $(SO_DEF)
  28. -LDFLAGS=$(XLDFLAGS)
  29. +CFLAGS?=
  30. +CFLAGS+=-Wall $(XCFLAGS) $(INC) $(DEF) $(SO_DEF)
  31. +LDFLAGS?=
  32. +LDFLAGS+=$(XLDFLAGS)
  33. OBJS=rtmp.o log.o amf.o hashswf.o parseurl.o