multimedia/rtmpdump shared lib issue... (now not work)

Andrey Fesenko f0andrey at gmail.com
Sun Oct 20 05:00:09 UTC 2013


On Sun, Oct 20, 2013 at 8:33 AM, Kurt Jaeger <pi at opsec.eu> wrote:
> Hi!
>
>> This patch http://www.freebsd.org/cgi/query-pr.cgi?pr=180283 now not work
>
> This one works:
>
>   http://www.freebsd.org/cgi/query-pr.cgi?pr=183100
>

Thanks, i'm find this PR to, only need mini fix


# svn diff patch-Makefile
Index: patch-Makefile
===================================================================
--- patch-Makefile      (revision 330974)
+++ patch-Makefile      (working copy)
@@ -1,7 +1,7 @@
 --- Makefile.orig      2010-07-01 04:58:35.000000000 +0900
 +++ Makefile   2010-08-01 01:26:30.000000000 +0900
 @@ -1,9 +1,9 @@
- VERSION=v2.3
+ VERSION=v2.4

 -prefix=/usr/local
 +prefix=${PREFIX}
@@ -13,7 +13,7 @@

  SYS=posix
  #SYS=mingw
-@@ -20,8 +20,9 @@
+@@ -21,8 +21,9 @@

  DEF=-DRTMPDUMP_VERSION=\"$(VERSION)\" $(CRYPTO_DEF) $(XDEF)
  OPT=-O2
@@ -25,9 +25,9 @@

  bindir=$(prefix)/bin
  sbindir=$(prefix)/sbin
-@@ -37,7 +38,7 @@
-
+@@ -41,7 +42,7 @@
  THREADLIB_posix=-lpthread
+ THREADLIB_darwin=-lpthread
  THREADLIB_mingw=
 -THREADLIB=$(THREADLIB_$(SYS))
 +THREADLIB?=$(THREADLIB_$(SYS))
@@ -34,3 +34,12 @@
  SLIBS=$(THREADLIB) $(LIBS)

  LIBRTMP=librtmp/librtmp.a
+@@ -79,7 +79,7 @@
+       $(CC) $(LDFLAGS) -o $@$(EXT) $@.o $(LIBS)
+
+ rtmpsrv: rtmpsrv.o thread.o
+-      $(CC) $(LDFLAGS) -o $@$(EXT) $@.o thread.o $(SLIBS)
++      $(CC) -Llibrtmp -lrtmp $(LDFLAGS) -o $@$(EXT) $@.o thread.o $(SLIBS)
+
+ rtmpsuck: rtmpsuck.o thread.o
+       $(CC) $(LDFLAGS) -o $@$(EXT) $@.o thread.o $(SLIBS)


More information about the freebsd-ports mailing list