From owner-svn-ports-all@FreeBSD.ORG Mon Oct 20 12:42:10 2014 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C1325315; Mon, 20 Oct 2014 12:42:10 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id AD951ECB; Mon, 20 Oct 2014 12:42:10 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id s9KCgArZ038590; Mon, 20 Oct 2014 12:42:10 GMT (envelope-from marino@FreeBSD.org) Received: (from marino@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id s9KCgAqm038587; Mon, 20 Oct 2014 12:42:10 GMT (envelope-from marino@FreeBSD.org) Message-Id: <201410201242.s9KCgAqm038587@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: marino set sender to marino@FreeBSD.org using -f From: John Marino Date: Mon, 20 Oct 2014 12:42:10 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r371264 - in head/net/osrtspproxy: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Oct 2014 12:42:11 -0000 Author: marino Date: Mon Oct 20 12:42:09 2014 New Revision: 371264 URL: https://svnweb.freebsd.org/changeset/ports/371264 QAT: https://qat.redports.org/buildarchive/r371264/ Log: net/osrtspproxy: use -lpthread instead of pthread, fix on DragonFly Also enable passing of LDFLAGS but this functionality isn't needed atm. Added: head/net/osrtspproxy/files/patch-configure (contents, props changed) Modified: head/net/osrtspproxy/Makefile head/net/osrtspproxy/files/patch-rtspproxy-Makefile.in Modified: head/net/osrtspproxy/Makefile ============================================================================== --- head/net/osrtspproxy/Makefile Mon Oct 20 12:18:56 2014 (r371263) +++ head/net/osrtspproxy/Makefile Mon Oct 20 12:42:09 2014 (r371264) @@ -9,20 +9,12 @@ MASTER_SITES= SF/rtsp/RTSP%20Proxy%20Kit DISTNAME= ${PORTNAME}_2_0 MAINTAINER= ports@FreeBSD.org -COMMENT= The RTSP Proxy Kit - A reference implementation of an RTSP proxy +COMMENT= Reference implementation kit of an RTSP proxy HAS_CONFIGURE= yes PLIST_FILES= sbin/rtspproxy etc/rc.d/rtspproxy.sh.sample -post-patch: - @${REINPLACE_CMD} -e \ - '/CC=/s|^|#| ; \ - /CXX=/s|^|#| ; \ - /LD=/s|^|#| ; \ - s|-I/usr/local/include|| ; \ - s|-L/usr/local/lib||' ${WRKSRC}/configure - do-install: (cd ${WRKSRC}/rtspproxy && ${INSTALL_PROGRAM} rtspproxy \ ${STAGEDIR}${PREFIX}/sbin) Added: head/net/osrtspproxy/files/patch-configure ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/osrtspproxy/files/patch-configure Mon Oct 20 12:42:09 2014 (r371264) @@ -0,0 +1,46 @@ +--- configure.orig 2001-02-09 06:07:26 UTC ++++ configure +@@ -58,22 +58,8 @@ case "$UNAME_S" in + LDFLAGS="$LDDBG -L/usr/local/lib" + SYSLIBS="-lpthread" + ;; +- FreeBSD) +- case "$UNAME_R" in +- 2.*) +- OSVER=20 +- ;; +- 3.*) +- OSVER=30 +- ;; +- 4.*) +- OSVER=40 +- ;; +- *) +- # Assume 5.0 + +- OSVER=50 +- ;; +- esac ++ FreeBSD|DragonFly) ++ OSVER=50 + if [ "$DEBUG" -ne 0 ]; then + CCDBG="-g" + LDDBG="-g" +@@ -81,15 +67,12 @@ case "$UNAME_S" in + CCDBG="-DNDEBUG" + LDDBG="" + fi +- CC=gcc +- CFLAGS="$CCDBG -D_UNIX -D_BSD=$OSVER -Wall -I/usr/local/include" +- CXX=g++ ++ CFLAGS="$CCDBG -D_UNIX -D_BSD=$OSVER -Wall" + CXXFLAGS=${CFLAGS} + AR=ar + ARFLAGS="-rc" +- LD=gcc +- LDFLAGS="$LDDBG -pthread -L/usr/local/lib" +- SYSLIBS="" ++ LDFLAGS="$LDDBG" ++ SYSLIBS="-lpthread" + ;; + SunOS) + case "$UNAME_R" in Modified: head/net/osrtspproxy/files/patch-rtspproxy-Makefile.in ============================================================================== --- head/net/osrtspproxy/files/patch-rtspproxy-Makefile.in Mon Oct 20 12:18:56 2014 (r371263) +++ head/net/osrtspproxy/files/patch-rtspproxy-Makefile.in Mon Oct 20 12:42:09 2014 (r371264) @@ -1,6 +1,6 @@ ---- rtspproxy/Makefile.in.orig Thu Feb 8 00:40:54 2001 -+++ rtspproxy/Makefile.in Sun Oct 20 13:43:49 2002 -@@ -1,9 +1,9 @@ +--- rtspproxy/Makefile.in.orig 2001-02-07 23:40:54 UTC ++++ rtspproxy/Makefile.in +@@ -1,10 +1,10 @@ -CC=@CC@ -CXX=@CXX@ +CC?=@CC@ @@ -9,12 +9,14 @@ -CFLAGS=@CFLAGS@ -I../libapp -I../librtsp -I. -CXXFLAGS=@CXXFLAGS@ -I../libapp -I../librtsp -I. +-LDFLAGS=@LDFLAGS@ +CFLAGS+=@CFLAGS@ -I../libapp -I../librtsp -I. +CXXFLAGS+=@CXXFLAGS@ -I../libapp -I../librtsp -I. - LDFLAGS=@LDFLAGS@ ++LDFLAGS+=@LDFLAGS@ SYSLIBS=@SYSLIBS@ -@@ -24,7 +24,7 @@ + OBJS=rtspproxy.o proxysession.o tranhdr.o proxytran.o +@@ -24,7 +24,7 @@ TARGET=rtspproxy all: $(TARGET) $(TARGET): $(OBJS) $(LIBS)