mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-14 07:43:06 +00:00
Update to 2.4.
This commit is contained in:
parent
5b1618350c
commit
5c1b1f459e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=289508
@ -5,26 +5,28 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= rtmpdump
|
||||
PORTVERSION= 2.3
|
||||
PORTREVISION= 1
|
||||
PORTVERSION= 2.4
|
||||
CATEGORIES= multimedia net
|
||||
MASTER_SITES= http://rtmpdump.mplayerhq.hu/download/
|
||||
EXTRACT_SUFX= .tgz
|
||||
|
||||
MAINTAINER= hrs@FreeBSD.org
|
||||
COMMENT= A tool to download RTMP streams
|
||||
|
||||
MAN1= rtmpdump.1
|
||||
MAN3= librtmp.3
|
||||
MAN8= rtmpgw.8
|
||||
LICENSE= GPLv2
|
||||
LICENSE_FILE= ${WRKSRC}/COPYING
|
||||
|
||||
USE_GNOME= pkgconfig
|
||||
USE_LDCONFIG= yes
|
||||
USE_OPENSSL= yes
|
||||
MAKE_ENV= THREADLIB="${PTHREAD_LIBS}"
|
||||
CFLAGS+= ${PTHREAD_CFLAGS}
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}
|
||||
PORTDOCS= ChangeLog README
|
||||
|
||||
MAN1= rtmpdump.1
|
||||
MAN3= librtmp.3
|
||||
MAN8= rtmpgw.8
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${OSVERSION} < 700000
|
||||
|
@ -1,2 +1,2 @@
|
||||
SHA256 (rtmpdump-2.3.tgz) = ef38b7a99d82ce6912063d21063aeaf28185341b3df486e24bffce5354224b2c
|
||||
SIZE (rtmpdump-2.3.tgz) = 125103
|
||||
SHA256 (rtmpdump-2.4.tar.gz) = 0be975011d116bbdf1befad2a984ac83d09b1061c86550326a7ec496d2f188fc
|
||||
SIZE (rtmpdump-2.4.tar.gz) = 134558
|
||||
|
@ -1,36 +1,10 @@
|
||||
--- librtmp/Makefile.orig 2010-07-01 05:01:28.000000000 +0900
|
||||
+++ librtmp/Makefile 2011-01-05 23:18:28.000000000 +0900
|
||||
@@ -1,10 +1,10 @@
|
||||
VERSION=v2.3
|
||||
--- librtmp/Makefile.orig 2011-07-12 09:24:33.000000000 +0900
|
||||
+++ librtmp/Makefile 2012-01-20 10:06:27.000000000 +0900
|
||||
@@ -1,19 +1,21 @@
|
||||
VERSION=v2.4
|
||||
|
||||
-prefix=/usr/local
|
||||
+prefix=${PREFIX}
|
||||
|
||||
-CC=$(CROSS_COMPILE)gcc
|
||||
-LD=$(CROSS_COMPILE)ld
|
||||
-AR=$(CROSS_COMPILE)ar
|
||||
+#CC=$(CROSS_COMPILE)gcc
|
||||
+#LD=$(CROSS_COMPILE)ld
|
||||
+#AR=$(CROSS_COMPILE)ar
|
||||
|
||||
SYS=posix
|
||||
CRYPTO=OPENSSL
|
||||
@@ -14,7 +14,7 @@
|
||||
DEF_GNUTLS=-DUSE_GNUTLS
|
||||
DEF_=-DNO_CRYPTO
|
||||
REQ_GNUTLS=gnutls
|
||||
-REQ_OPENSSL=libssl,libcrypto
|
||||
+#REQ_OPENSSL=libssl,libcrypto
|
||||
LIBZ=-lz
|
||||
LIBS_posix=
|
||||
LIBS_mingw=-lws2_32 -lwinmm -lgdi32
|
||||
@@ -39,15 +39,18 @@
|
||||
|
||||
DEF=-DRTMPDUMP_VERSION=\"$(VERSION)\" $(CRYPTO_DEF) $(XDEF)
|
||||
OPT=-O2
|
||||
-CFLAGS=-Wall $(XCFLAGS) $(INC) $(DEF) $(OPT) $(SO_DEF)
|
||||
+#CFLAGS=-Wall $(XCFLAGS) $(INC) $(DEF) $(OPT) $(SO_DEF)
|
||||
+CFLAGS+= $(DEF) $(SO_DEF)
|
||||
+prefix=$(PREFIX)
|
||||
|
||||
incdir=$(prefix)/include/librtmp
|
||||
bindir=$(prefix)/bin
|
||||
@ -43,16 +17,41 @@
|
||||
+LIBDATADIR=$(DESTDIR)$(libdatadir)
|
||||
MANDIR=$(DESTDIR)$(mandir)
|
||||
|
||||
OBJS=rtmp.o log.o amf.o hashswf.o parseurl.o
|
||||
@@ -72,15 +75,18 @@
|
||||
-CC=$(CROSS_COMPILE)gcc
|
||||
-LD=$(CROSS_COMPILE)ld
|
||||
-AR=$(CROSS_COMPILE)ar
|
||||
+CC?=$(CROSS_COMPILE)gcc
|
||||
+LD?=$(CROSS_COMPILE)ld
|
||||
+AR?=$(CROSS_COMPILE)ar
|
||||
|
||||
librtmp.pc: librtmp.pc.in Makefile
|
||||
sed -e "s;@prefix@;$(prefix);" -e "s;@VERSION@;$(VERSION);" \
|
||||
- -e "s;@CRYPTO_REQ@;$(CRYPTO_REQ);" librtmp.pc.in > $@
|
||||
+ -e "s;@CRYPTO_REQ@;$(CRYPTO_REQ);" \
|
||||
SYS=posix
|
||||
CRYPTO=OPENSSL
|
||||
@@ -23,7 +25,7 @@
|
||||
DEF_GNUTLS=-DUSE_GNUTLS
|
||||
DEF_=-DNO_CRYPTO
|
||||
REQ_GNUTLS=gnutls
|
||||
-REQ_OPENSSL=libssl,libcrypto
|
||||
+#REQ_OPENSSL=libssl,libcrypto
|
||||
LIBZ=-lz
|
||||
LIBS_posix=
|
||||
LIBS_darwin=
|
||||
@@ -67,7 +69,8 @@
|
||||
|
||||
DEF=-DRTMPDUMP_VERSION=\"$(VERSION)\" $(CRYPTO_DEF) $(XDEF)
|
||||
OPT=-O2
|
||||
-CFLAGS=-Wall $(XCFLAGS) $(INC) $(DEF) $(OPT) $(SO_DEF)
|
||||
+#CFLAGS=-Wall $(XCFLAGS) $(INC) $(DEF) $(OPT) $(SO_DEF)
|
||||
+CFLAGS=$(DEF) $(OPT) $(SO_DEF)
|
||||
LDFLAGS=$(XLDFLAGS)
|
||||
|
||||
|
||||
@@ -95,15 +98,17 @@
|
||||
sed -e "s;@prefix@;$(prefix);" -e "s;@libdir@;$(libdir);" \
|
||||
-e "s;@VERSION@;$(VERSION);" \
|
||||
-e "s;@CRYPTO_REQ@;$(CRYPTO_REQ);" \
|
||||
+ -e "s;@OPENSSLLIB@;$(OPENSSLLIB);" \
|
||||
+ -e "s;@OPENSSLINC@;$(OPENSSLINC);" \
|
||||
+ librtmp.pc.in > $@
|
||||
-e "s;@PRIVATE_LIBS@;$(PRIVATE_LIBS);" librtmp.pc.in > $@
|
||||
|
||||
install: install_base $(SO_INST)
|
||||
|
||||
@ -65,4 +64,4 @@
|
||||
+ cp librtmp.pc $(LIBDATADIR)/pkgconfig
|
||||
cp librtmp.3 $(MANDIR)/man3
|
||||
|
||||
install_so.0: librtmp.so.0
|
||||
install_so: librtmp.$(SO_EXT)
|
||||
|
Loading…
Reference in New Issue
Block a user