Ticket #25871: rtmpdump-2.2_to_2.3.svn.diff
File rtmpdump-2.2_to_2.3.svn.diff, 4.5 KB (added by michaelld (Michael Dickens), 14 years ago) |
---|
-
files/patch-Makefile.diff
1 --- Makefile.orig 2011-04-18 21:26:53.000000000 -0400 2 +++ Makefile 2011-04-18 21:27:20.000000000 -0400 3 @@ -1,8 +1,8 @@ 4 -VERSION=v2.3 5 +VERSION=2.3 6 7 -prefix=/usr/local 8 +prefix=/opt/local 9 10 -CC=$(CROSS_COMPILE)gcc 11 +CC=/usr/bin/gcc-4.2 12 LD=$(CROSS_COMPILE)ld 13 14 SYS=posix 15 @@ -25,7 +25,7 @@ 16 17 bindir=$(prefix)/bin 18 sbindir=$(prefix)/sbin 19 -mandir=$(prefix)/man 20 +mandir=$(prefix)/share/man 21 22 BINDIR=$(DESTDIR)$(bindir) 23 SBINDIR=$(DESTDIR)$(sbindir) 24 @@ -40,7 +40,7 @@ 25 THREADLIB=$(THREADLIB_$(SYS)) 26 SLIBS=$(THREADLIB) $(LIBS) 27 28 -LIBRTMP=librtmp/librtmp.a 29 +LIBRTMP=librtmp/librtmp.dylib 30 INCRTMP=librtmp/rtmp_sys.h librtmp/rtmp.h librtmp/log.h librtmp/amf.h 31 32 EXT_posix= -
files/patch-librtmp-Makefile.diff
1 --- librtmp/Makefile.orig 2011-04-18 21:26:56.000000000 -0400 2 +++ librtmp/Makefile 2011-04-18 21:27:35.000000000 -0400 3 @@ -1,6 +1,7 @@ 4 -VERSION=v2.3 5 +VERSION=2.3 6 +VERSION_MAJOR=2 7 8 -prefix=/usr/local 9 +prefix=/opt/local 10 11 CC=$(CROSS_COMPILE)gcc 12 LD=$(CROSS_COMPILE)ld 13 @@ -25,13 +26,13 @@ 14 CRYPTO_REQ=$(REQ_$(CRYPTO)) 15 CRYPTO_DEF=$(DEF_$(CRYPTO)) 16 17 -SO_posix=so.0 18 +SO_posix=dylib 19 SO_mingw=dll 20 SO_EXT=$(SO_$(SYS)) 21 22 SHARED=yes 23 SODEF_yes=-fPIC 24 -SOLIB_yes=librtmp.$(SO_EXT) 25 +SOLIB_yes=librtmp.$(VERSION).$(SO_EXT) 26 SOINST_yes=install_$(SO_EXT) 27 SO_DEF=$(SODEF_$(SHARED)) 28 SO_LIB=$(SOLIB_$(SHARED)) 29 @@ -44,7 +45,7 @@ 30 incdir=$(prefix)/include/librtmp 31 bindir=$(prefix)/bin 32 libdir=$(prefix)/lib 33 -mandir=$(prefix)/man 34 +mandir=$(prefix)/share/man 35 BINDIR=$(DESTDIR)$(bindir) 36 INCDIR=$(DESTDIR)$(incdir) 37 LIBDIR=$(DESTDIR)$(libdir) 38 @@ -60,9 +61,9 @@ 39 librtmp.a: $(OBJS) 40 $(AR) rs $@ $? 41 42 -librtmp.$(SO_EXT): $(OBJS) 43 - $(CC) -shared -Wl,-soname,$@ $(LDFLAGS) -o $@ $^ $> $(CRYPTO_LIB) 44 - ln -sf $@ librtmp.so 45 +$(SO_LIB): $(OBJS) 46 + $(CC) -dynamiclib -Wl,-undefined -Wl,dynamic_lookup -install_name $(prefix)/lib/$@ -compatibility_version $(VERSION_MAJOR) -current_version $(VERSION) -Wl,-single_module $(LDFLAGS) -o $@ $^ $> $(CRYPTO_LIB) 47 + ln -sf $@ librtmp.$(SO_EXT) 48 49 log.o: log.c log.h Makefile 50 rtmp.o: rtmp.c rtmp.h rtmp_sys.h handshake.h dh.h log.h amf.h Makefile 51 @@ -83,9 +84,9 @@ 52 cp librtmp.pc $(LIBDIR)/pkgconfig 53 cp librtmp.3 $(MANDIR)/man3 54 55 -install_so.0: librtmp.so.0 56 - cp librtmp.so.0 $(LIBDIR) 57 - cd $(LIBDIR); ln -sf librtmp.so.0 librtmp.so 58 +install_$(SO_EXT): librtmp.$(SO_EXT) 59 + cp librtmp.$(VERSION).$(SO_EXT) $(LIBDIR) 60 + cd $(LIBDIR); ln -sf librtmp.$(VERSION).$(SO_EXT) librtmp.$(SO_EXT) 61 62 install_dll: librtmp.dll 63 cp librtmp.dll $(BINDIR) -
Portfile
4 4 PortSystem 1.0 5 5 6 6 name rtmpdump 7 version 2.2 8 revision 1 7 version 2.3 9 8 categories www net 10 9 platforms darwin 11 10 depends_lib port:openssl … … 20 19 homepage http://rtmpdump.mplayerhq.hu/ 21 20 master_sites ${homepage}download/ 22 21 23 checksums md5 1ce6753c95754d1a72b635d488757096\24 sha1 80ad4878b5b48c59cb6754fac31f811b8a7d399d\25 rmd160 673e9baf426d8fe0d32471d101648660080e996d22 checksums md5 eb961f31cd55f0acf5aad1a7b900ef59 \ 23 sha1 b65ce7708ae79adb51d1f43dd0b6d987076d7c42 \ 24 rmd160 1d48925e6567783806fa68819d6a695cd06138bc 26 25 27 use_bzip2 yes 26 extract.suffix .tgz 28 27 28 patchfiles patch-Makefile.diff \ 29 patch-librtmp-Makefile.diff 30 29 31 post-patch { 30 32 reinplace "s|CC=.*\$|CC=${configure.cc}|" ${worksrcpath}/Makefile 31 reinplace "s|CXX=.*\$|CXX=${configure.cxx}|" ${worksrcpath}/Makefile 33 reinplace "s|@PREFIX@|${prefix}|" ${worksrcpath}/Makefile 34 reinplace "s|@PREFIX@|${prefix}|" ${worksrcpath}/librtmp/Makefile 32 35 } 36 33 37 use_configure no 34 38 35 build.target osx39 build.target SYS=posix 36 40 build.pre_args-delete -w 37 41 38 destroot {39 xinstall -m 755 -W ${worksrcpath} rtmpdump rtmpsuck rtmpsrv rtmpgw ${destroot}${prefix}/bin40 }41 42 42 livecheck.url [lindex ${master_sites} 0] 43 43 livecheck.type regex 44 44 livecheck.regex ${name}-(\[0-9a-z.\]+)\\.