ffmpeg: fix dependencies
[oi-userland.git] / components / encumbered / rtmpdump / patches / 01-build.patch
blob794da4a4f9d230249abb22cc99a8e423db7246fc
1 --- rtmpdump/Makefile.~1~ 2011-07-12 04:24:33.000000000 +0400
2 +++ rtmpdump/Makefile 2015-07-21 10:13:56.339356942 +0300
3 @@ -1,9 +1,9 @@
4 VERSION=v2.4
6 -prefix=/usr/local
7 +prefix=/usr
9 -CC=$(CROSS_COMPILE)gcc
10 -LD=$(CROSS_COMPILE)ld
11 +#CC=$(CROSS_COMPILE)gcc
12 +#LD=$(CROSS_COMPILE)ld
14 SYS=posix
15 #SYS=mingw
16 @@ -20,13 +20,13 @@
17 CRYPTO_DEF=$(DEF_$(CRYPTO))
19 DEF=-DRTMPDUMP_VERSION=\"$(VERSION)\" $(CRYPTO_DEF) $(XDEF)
20 -OPT=-O2
21 +#OPT=-O2
22 CFLAGS=-Wall $(XCFLAGS) $(INC) $(DEF) $(OPT)
23 LDFLAGS=-Wall $(XLDFLAGS)
25 bindir=$(prefix)/bin
26 sbindir=$(prefix)/sbin
27 -mandir=$(prefix)/man
28 +mandir=$(prefix)/share/man
30 BINDIR=$(DESTDIR)$(bindir)
31 SBINDIR=$(DESTDIR)$(sbindir)
32 @@ -59,9 +59,9 @@
33 $(PROGS): $(LIBRTMP)
35 install: $(PROGS)
36 - -mkdir -p $(BINDIR) $(SBINDIR) $(MANDIR)/man1 $(MANDIR)/man8
37 + -mkdir -p $(BINDIR) $(MANDIR)/man1 $(MANDIR)/man8
38 cp rtmpdump$(EXT) $(BINDIR)
39 - cp rtmpgw$(EXT) rtmpsrv$(EXT) rtmpsuck$(EXT) $(SBINDIR)
40 + cp rtmpgw$(EXT) rtmpsrv$(EXT) rtmpsuck$(EXT) $(BINDIR)
41 cp rtmpdump.1 $(MANDIR)/man1
42 cp rtmpgw.8 $(MANDIR)/man8
43 @cd librtmp; $(MAKE) install
44 --- rtmpdump/librtmp/Makefile.~1~ 2011-07-12 04:24:33.000000000 +0400
45 +++ rtmpdump/librtmp/Makefile 2015-07-21 10:16:43.481708226 +0300
46 @@ -1,18 +1,18 @@
47 VERSION=v2.4
49 -prefix=/usr/local
50 +prefix=/usr
52 incdir=$(prefix)/include/librtmp
53 bindir=$(prefix)/bin
54 -libdir=$(prefix)/lib
55 -mandir=$(prefix)/man
56 +libdir=$(prefix)/lib$(ARCH)
57 +mandir=$(prefix)/share/man
58 BINDIR=$(DESTDIR)$(bindir)
59 INCDIR=$(DESTDIR)$(incdir)
60 LIBDIR=$(DESTDIR)$(libdir)
61 MANDIR=$(DESTDIR)$(mandir)
63 -CC=$(CROSS_COMPILE)gcc
64 -LD=$(CROSS_COMPILE)ld
65 +#CC=$(CROSS_COMPILE)gcc
66 +#LD=$(CROSS_COMPILE)ld
67 AR=$(CROSS_COMPILE)ar
69 SYS=posix
70 @@ -23,7 +23,7 @@
71 DEF_GNUTLS=-DUSE_GNUTLS
72 DEF_=-DNO_CRYPTO
73 REQ_GNUTLS=gnutls
74 -REQ_OPENSSL=libssl,libcrypto
75 +REQ_OPENSSL=openssl
76 LIBZ=-lz
77 LIBS_posix=
78 LIBS_darwin=