diff options
author | hrs <hrs@FreeBSD.org> | 2011-12-14 02:58:01 +0800 |
---|---|---|
committer | hrs <hrs@FreeBSD.org> | 2011-12-14 02:58:01 +0800 |
commit | 290f98f03ee60d827f2a653963b44e59c6c93e77 (patch) | |
tree | df72f0b9ad5bea477b170e1d523bbce936b35b67 /multimedia | |
parent | 5ecb2e6d058b424aef63a87ea116f9eb1d07e864 (diff) | |
download | freebsd-ports-gnome-290f98f03ee60d827f2a653963b44e59c6c93e77.tar.gz freebsd-ports-gnome-290f98f03ee60d827f2a653963b44e59c6c93e77.tar.zst freebsd-ports-gnome-290f98f03ee60d827f2a653963b44e59c6c93e77.zip |
- Support non-gcc compiler.
- Fix CFLAGS and PTHREAD_LIBS handling.
PR: ports/163225
Diffstat (limited to 'multimedia')
-rw-r--r-- | multimedia/flvstreamer/Makefile | 4 | ||||
-rw-r--r-- | multimedia/flvstreamer/files/patch-Makefile | 19 |
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= |