ports/185712: net/osrtspproxy: Support CC/CXX properly

KATO Tsuguru tkato432 at yahoo.com
Sun Jan 12 18:40:09 UTC 2014


>Number:         185712
>Category:       ports
>Synopsis:       net/osrtspproxy: Support CC/CXX properly
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 12 18:40:08 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 8.4-RELEASE-p4 i386
>Organization:
>Environment:
>Description:
- Support CC/CXX properly
- Support PLIST_FILES

Remove file:
pkg-plist

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/net/osrtspproxy/Makefile net/osrtspproxy/Makefile
--- /usr/ports/net/osrtspproxy/Makefile	2013-11-06 21:53:58.000000000 +0900
+++ net/osrtspproxy/Makefile	2014-01-13 00:00:00.000000000 +0900
@@ -11,11 +11,22 @@
 MAINTAINER=	ports at FreeBSD.org
 COMMENT=	The RTSP Proxy Kit - A reference implementation of an RTSP proxy
 
-HAS_CONFIGURE=	YES
+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
 
-NO_STAGE=	yes
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/rtspproxy/rtspproxy ${PREFIX}/sbin
-	${INSTALL_SCRIPT} ${FILESDIR}/rtspproxy.sh ${PREFIX}/etc/rc.d/rtspproxy.sh.sample
+	(cd ${WRKSRC}/rtspproxy && ${INSTALL_PROGRAM} rtspproxy \
+		${STAGEDIR}${PREFIX}/sbin)
+	(cd ${FILESDIR} && ${INSTALL_SCRIPT} rtspproxy.sh \
+		${STAGEDIR}${PREFIX}/etc/rc.d/rtspproxy.sh.sample)
 
 .include <bsd.port.mk>
diff -urN /usr/ports/net/osrtspproxy/pkg-plist net/osrtspproxy/pkg-plist
--- /usr/ports/net/osrtspproxy/pkg-plist	2013-11-06 21:53:58.000000000 +0900
+++ net/osrtspproxy/pkg-plist	1970-01-01 09:00:00.000000000 +0900
@@ -1,2 +0,0 @@
-sbin/rtspproxy
-etc/rc.d/rtspproxy.sh.sample
>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ports-bugs mailing list