aboutsummaryrefslogtreecommitdiff
path: root/multimedia/flvstreamer
diff options
context:
space:
mode:
authorHiroki Sato <hrs@FreeBSD.org>2011-12-13 18:58:01 +0000
committerHiroki Sato <hrs@FreeBSD.org>2011-12-13 18:58:01 +0000
commit7c80c3448a6761513c95ee09dfa341785d05d791 (patch)
tree6be6fcb2d6060aa2631d42c8140c65149abc877a /multimedia/flvstreamer
parent3ed9b5383e67327210414b63d1bf9677d697ab3e (diff)
- Support non-gcc compiler.
- Fix CFLAGS and PTHREAD_LIBS handling. PR: ports/163225
Notes
Notes: svn path=/head/; revision=287314
Diffstat (limited to 'multimedia/flvstreamer')
-rw-r--r--multimedia/flvstreamer/Makefile4
-rw-r--r--multimedia/flvstreamer/files/patch-Makefile19
2 files changed, 22 insertions, 1 deletions
diff --git a/multimedia/flvstreamer/Makefile b/multimedia/flvstreamer/Makefile
index 8796e0ba82c5..b433bdbc548a 100644
--- a/multimedia/flvstreamer/Makefile
+++ b/multimedia/flvstreamer/Makefile
@@ -18,7 +18,9 @@ COMMENT= An open source command-line RTMP client
USE_GMAKE= yes
ALL_TARGET= posix
WRKSRC= ${WRKDIR}/${PORTNAME}
-
+MAKE_ARGS= THREADLIB="${PTHREAD_LIBS}" \
+ XCFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}" \
+ XLDFLAGS="${LDFLAGS}"
PLIST_FILES= bin/flvstreamer bin/streams
PORTDOCS= ChangeLog ChangeLog.rtmpdump README
diff --git a/multimedia/flvstreamer/files/patch-Makefile b/multimedia/flvstreamer/files/patch-Makefile
new file mode 100644
index 000000000000..919b1d2aab7d
--- /dev/null
+++ b/multimedia/flvstreamer/files/patch-Makefile
@@ -0,0 +1,19 @@
+--- Makefile.orig 2010-02-15 10:06:20.000000000 +0900
++++ Makefile 2011-12-14 03:51:16.000000000 +0900
+@@ -1,12 +1,12 @@
+-CC=$(CROSS_COMPILE)gcc
+-LD=$(CROSS_COMPILE)ld
++CC?=$(CROSS_COMPILE)gcc
++LD?=$(CROSS_COMPILE)ld
+
+ DEF=-DFLVSTREAMER_VERSION=\"v2.1c1\"
+-OPT=-O2
++#OPT=-O2
+ CFLAGS=-Wall $(XCFLAGS) $(INC) $(DEF) $(OPT)
+ LDFLAGS=-Wall $(XLDFLAGS)
+ LIBS=
+-THREADLIB=-lpthread
++THREADLIB?=-lpthread
+ SLIBS=$(THREADLIB) $(LIBS)
+
+ EXT=