updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / rtmpdump-yle / makefile.patch
blobbff5315fc8d3e4af3e67003283768e9f60efbddc
1 --- rtmpdump-yle-1.4.2/Makefile 2011-05-26 20:08:49.000000000 +0300
2 +++ rtmpdump-yle-1.4.2-shared/Makefile 2011-06-06 13:49:34.347760599 +0300
3 @@ -1,7 +1,7 @@
4 VERSION_YLE=1.4.5
5 VERSION=v2.4
7 -prefix=/usr/local
8 +prefix=/usr
10 CC=$(CROSS_COMPILE)gcc
11 LD=$(CROSS_COMPILE)ld
12 @@ -27,7 +27,7 @@
13 DEF=-DRTMPDUMP_VERSION=\"$(VERSION)\" -DYLERTMPDUMP_VERSION=\"$(VERSION_YLE)\" $(CRYPTO_DEF) $(XDEF)
14 OPT=-O2
15 CFLAGS=-Wall $(XCFLAGS) $(INC) $(DEF) $(OPT)
16 -LDFLAGS=-Wall $(XLDFLAGS)
17 +LDFLAGS=-Wall $(XLDFLAGS) -L ./librtmp -fPIC
19 bindir=$(prefix)/bin
20 sbindir=$(prefix)/sbin
21 @@ -40,7 +40,7 @@
22 LIBS_posix=
23 LIBS_darwin=-liconv
24 LIBS_mingw=-lws2_32 -lwinmm -lgdi32 -liconv
25 -LIBS=librtmp/librtmp.a $(JSON_LIB) $(CRYPTO_LIB) $(LIBS_$(SYS)) $(XLIBS)
26 +LIBS= -lrtmp $(JSON_LIB) $(CRYPTO_LIB) $(LIBS_$(SYS)) $(XLIBS)
28 THREADLIB_posix=-lpthread
29 THREADLIB_darwin=-lpthread
30 @@ -48,7 +48,7 @@
31 THREADLIB=$(THREADLIB_$(SYS))
32 SLIBS=$(THREADLIB) $(LIBS)
34 -LIBRTMP=librtmp/librtmp.a
35 +LIBRTMP=
36 INCRTMP=librtmp/rtmp_sys.h librtmp/rtmp.h librtmp/log.h librtmp/amf.h librtmp/yle.h
38 EXT_posix=
39 @@ -56,16 +56,19 @@
40 EXT_mingw=.exe
41 EXT=$(EXT_$(SYS))
43 -PROGS=rtmpdump-yle yle-dl
44 +PROGS=rtmpdump-yle yle-dl rtmpsrv rtmpsuck rtmpgw
46 all: $(LIBRTMP) $(PROGS)
48 $(PROGS): $(LIBRTMP)
50 install: $(PROGS) check-old-location
51 - -mkdir -p $(BINDIR)
52 + -mkdir -p $(BINDIR) $(SBINDIR) $(MANDIR)/man8
53 cp rtmpdump-yle$(EXT) yle-dl $(BINDIR)
54 - chmod a+rx $(BINDIR)/rtmpdump-yle$(EXT) $(BINDIR)/yle-dl
55 + cp rtmpsrv rtmpsuck rtmpgw $(SBINDIR)
56 + cp rtmpgw.8 $(MANDIR)/man8/
57 + chmod a+rx $(BINDIR)/*
58 + chmod a+rx $(SBINDIR)/*
60 uninstall:
61 rm -f $(BINDIR)/rtmpdump-yle$(EXT) $(BINDIR)/yle-dl
65 --- rtmpdump-yle-1.4.2/librtmp/Makefile 2011-05-26 20:08:49.000000000 +0300
66 +++ rtmpdump-yle-1.4.2-shared/librtmp/Makefile 2011-06-06 13:56:34.511376276 +0300
67 @@ -1,6 +1,6 @@
68 VERSION=v2.3
70 -prefix=/usr/local
71 +prefix=/usr
73 incdir=$(prefix)/include/librtmp
74 bindir=$(prefix)/bin
75 @@ -61,7 +61,7 @@
76 LIB_JSON=$(if $(STATIC_JSON),,-ljson)
77 REQ_JSON=json
79 -SHARED=
80 +SHARED=yes
81 SODEF_yes=-fPIC
82 SOLIB_yes=librtmp.$(SO_EXT)
83 SOINST_yes=install_so