summaryrefslogtreecommitdiff
path: root/multimedia/rtmpdump/files/patch-Makefile
diff options
context:
space:
mode:
authorHiroki Sato <hrs@FreeBSD.org>2013-10-31 02:03:01 +0000
committerHiroki Sato <hrs@FreeBSD.org>2013-10-31 02:03:01 +0000
commit42bc4e48021d4fa15c5e403cc87da8c4e0de9c9a (patch)
tree5aa7f3b50cea9e6b2e6e60ea4c6160dc95c1c662 /multimedia/rtmpdump/files/patch-Makefile
parentStagify and switch to modern LIB_DEPENDS syntax. (diff)
- Split the library part of multimedia/rtmpdump into multimedia/librtmp.
- Update ports depending on librtmp. - Add instruction to avoid a build error in multimedia/rtmpdump under a specific condition.
Notes
Notes: svn path=/head/; revision=332194
Diffstat (limited to 'multimedia/rtmpdump/files/patch-Makefile')
-rw-r--r--multimedia/rtmpdump/files/patch-Makefile34
1 files changed, 32 insertions, 2 deletions
diff --git a/multimedia/rtmpdump/files/patch-Makefile b/multimedia/rtmpdump/files/patch-Makefile
index 84cc3b5a940e..ea86a39d0fbc 100644
--- a/multimedia/rtmpdump/files/patch-Makefile
+++ b/multimedia/rtmpdump/files/patch-Makefile
@@ -1,5 +1,5 @@
--- Makefile.orig 2013-10-07 03:52:05.000000000 +0900
-+++ Makefile 2013-10-20 14:37:46.000000000 +0900
++++ Makefile 2013-10-30 15:30:57.000000000 +0900
@@ -1,9 +1,9 @@
VERSION=v2.4
@@ -25,7 +25,14 @@
bindir=$(prefix)/bin
sbindir=$(prefix)/sbin
-@@ -41,7 +42,7 @@
+@@ -35,13 +36,13 @@
+ LIBS_posix=
+ LIBS_darwin=
+ LIBS_mingw=-lws2_32 -lwinmm -lgdi32
+-LIB_RTMP=-Llibrtmp -lrtmp
++LIB_RTMP=-lrtmp
+ LIBS=$(LIB_RTMP) $(CRYPTO_LIB) $(LIBS_$(SYS)) $(XLIBS)
+
THREADLIB_posix=-lpthread
THREADLIB_darwin=-lpthread
THREADLIB_mingw=
@@ -34,3 +41,26 @@
SLIBS=$(THREADLIB) $(LIBS)
LIBRTMP=librtmp/librtmp.a
+@@ -54,9 +55,7 @@
+
+ PROGS=rtmpdump rtmpgw rtmpsrv rtmpsuck
+
+-all: $(LIBRTMP) $(PROGS)
+-
+-$(PROGS): $(LIBRTMP)
++all: $(PROGS)
+
+ install: $(PROGS)
+ -mkdir -p $(BINDIR) $(SBINDIR) $(MANDIR)/man1 $(MANDIR)/man8
+@@ -64,11 +63,9 @@
+ cp rtmpgw$(EXT) rtmpsrv$(EXT) rtmpsuck$(EXT) $(SBINDIR)
+ cp rtmpdump.1 $(MANDIR)/man1
+ cp rtmpgw.8 $(MANDIR)/man8
+- @cd librtmp; $(MAKE) install
+
+ clean:
+ rm -f *.o rtmpdump$(EXT) rtmpgw$(EXT) rtmpsrv$(EXT) rtmpsuck$(EXT)
+- @cd librtmp; $(MAKE) clean
+
+ FORCE:
+