From hubert@hubert.ckefgisc.org  Wed Apr 19 03:01:27 2006
Return-Path: <hubert@hubert.ckefgisc.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 09F7216A400;
	Wed, 19 Apr 2006 03:01:27 +0000 (UTC)
	(envelope-from hubert@hubert.ckefgisc.org)
Received: from hubert.ckefgisc.org (showroom4.JRC.NCTU.edu.tw [140.113.131.104])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 9593E43D48;
	Wed, 19 Apr 2006 03:01:26 +0000 (GMT)
	(envelope-from hubert@hubert.ckefgisc.org)
Received: by hubert.ckefgisc.org (Postfix, from userid 1001)
	id 49E166D40B; Wed, 19 Apr 2006 11:00:03 +0800 (CST)
Message-Id: <20060419030003.49E166D40B@hubert.ckefgisc.org>
Date: Wed, 19 Apr 2006 11:00:03 +0800 (CST)
From: Yi-Huan Chan <yhchan@csie.nctu.edu.tw>
To: FreeBSD-gnats-submit@freebsd.org
Cc: hopet@ics.muni.cz, ijliao@FreeBSD.org
Subject: [PATCH] devel/jrtplib: fixed build error on 4.x
X-Send-Pr-Version: 3.113
X-GNATS-Notify: hopet@ics.muni.cz

>Number:         96033
>Category:       ports
>Synopsis:       [PATCH] devel/jrtplib: fixed build error on 4.x
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr 19 03:10:09 GMT 2006
>Closed-Date:    Thu Apr 20 01:54:11 GMT 2006
>Last-Modified:  Thu Apr 20 01:54:11 GMT 2006
>Originator:     Yi-Huan Chan
>Release:        FreeBSD 6.1-PRERELEASE i386
>Organization:
>Environment:
System: FreeBSD hubert.ckefgisc.org 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #0: Tue Apr  4 19:13:53 CST
>Description:

Patches:
- fixed build error on 4.x
- patched lib/pkgconfig/jrtplib.pc to libdata/pkgconfig/jrtplib.pc
- added missing libdata/pkgconfig/jrtplib.pc in pkg-plist

Added file(s):
- files/patch-src-rtperrors.h

Port maintainer (hopet@ics.muni.cz) is cc'd.

Generated with FreeBSD Port Tools 0.63
>How-To-Repeat:
>Fix:

--- jrtplib-3.5.2.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/devel/jrtplib.orig/Makefile /usr/ports/devel/jrtplib/Makefile
--- /usr/ports/devel/jrtplib.orig/Makefile	Sun Apr 16 20:45:25 2006
+++ /usr/ports/devel/jrtplib/Makefile	Mon Apr 17 13:27:32 2006
@@ -20,4 +20,8 @@
 CONFIGURE_TARGET=	--target=${MACHINE_ARCH}-portbld-freebsd${OSREL}
 CONFIGURE_ARGS=	--disable-jthread
 
+post-patch:
+	@${REINPLACE_CMD} -e 's|\$$(libdir)/pkgconfig|\$$(prefix)/libdata/pkgconfig|' \
+		${WRKSRC}/pkgconfig/Makefile.in
+
 .include <bsd.port.mk>
diff -ruN --exclude=CVS /usr/ports/devel/jrtplib.orig/files/patch-src-rtperrors.h /usr/ports/devel/jrtplib/files/patch-src-rtperrors.h
--- /usr/ports/devel/jrtplib.orig/files/patch-src-rtperrors.h	Thu Jan  1 08:00:00 1970
+++ /usr/ports/devel/jrtplib/files/patch-src-rtperrors.h	Sun Apr 16 20:52:44 2006
@@ -0,0 +1,10 @@
+--- src/rtperrors.h	Tue Feb 21 17:31:13 2006
++++ src/rtperrors.h	Sun Apr 16 20:46:09 2006
+@@ -34,6 +34,7 @@
+ 
+ #define RTPERRORS_H
+ 
++#include <stdio.h>
+ #include <string>
+ 
+ std::string RTPGetErrorString(int errcode);
diff -ruN --exclude=CVS /usr/ports/devel/jrtplib.orig/pkg-plist /usr/ports/devel/jrtplib/pkg-plist
--- /usr/ports/devel/jrtplib.orig/pkg-plist	Sun Apr 16 20:45:25 2006
+++ /usr/ports/devel/jrtplib/pkg-plist	Mon Apr 17 13:10:39 2006
@@ -49,4 +49,5 @@
 lib/libjrtp.a
 lib/libjrtp.la
 lib/libjrtp.so
+libdata/pkgconfig/jrtplib.pc
 @dirrm include/jrtplib3
--- jrtplib-3.5.2.patch ends here ---

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Wed Apr 19 03:12:15 UTC 2006 
State-Changed-Why:  
Awaiting maintainers feedback 

http://www.freebsd.org/cgi/query-pr.cgi?pr=96033 
State-Changed-From-To: feedback->open 
State-Changed-By: linimon 
State-Changed-When: Wed Apr 19 08:53:55 UTC 2006 
State-Changed-Why:  
Adding to audit trail from misfiled PR ports/96039: 

Date: Wed, 19 Apr 2006 09:35:23 +0200 
From: "Petr Holub" <hopet@ics.muni.cz> 

I approve the patch. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=96033 
State-Changed-From-To: open->closed 
State-Changed-By: ijliao 
State-Changed-When: Thu Apr 20 01:54:01 UTC 2006 
State-Changed-Why:  
committed, thanks 

http://www.freebsd.org/cgi/query-pr.cgi?pr=96033 
>Unformatted:
