From rodrigc@h00609772adf0.ne.client2.attbi.com  Sun Feb 29 09:43:40 2004
Return-Path: <rodrigc@h00609772adf0.ne.client2.attbi.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 2CFEB16A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 29 Feb 2004 09:43:40 -0800 (PST)
Received: from rwcrmhc12.comcast.net (rwcrmhc12.comcast.net [216.148.227.85])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 1A8F443D1D
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 29 Feb 2004 09:43:40 -0800 (PST)
	(envelope-from rodrigc@h00609772adf0.ne.client2.attbi.com)
Received: from dibbler.crodrigues.org (h00609772adf0.ne.client2.attbi.com[66.31.45.197])
          by comcast.net (rwcrmhc12) with ESMTP
          id <2004022917433901400o8531e>; Sun, 29 Feb 2004 17:43:39 +0000
Received: from dibbler.crodrigues.org (localhost.crodrigues.org [127.0.0.1])
	by dibbler.crodrigues.org (8.12.11/8.12.10) with ESMTP id i1THhbPQ044613;
	Sun, 29 Feb 2004 12:43:38 -0500 (EST)
	(envelope-from rodrigc@h00609772adf0.ne.client2.attbi.com)
Received: (from rodrigc@localhost)
	by dibbler.crodrigues.org (8.12.11/8.12.10/Submit) id i1THhbcp044612;
	Sun, 29 Feb 2004 12:43:37 -0500 (EST)
	(envelope-from rodrigc)
Message-Id: <200402291743.i1THhbcp044612@dibbler.crodrigues.org>
Date: Sun, 29 Feb 2004 12:43:37 -0500 (EST)
From: Craig Rodrigues <rodrigc@crodrigues.org>
Reply-To: Craig Rodrigues <rodrigc@crodrigues.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc: kay_lehmann@web.de
Subject: audio/xmms-kj, respect PTHREAD_LIBS
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         63538
>Category:       ports
>Synopsis:       audio/xmms-kj, respect PTHREAD_LIBS
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Feb 29 09:50:20 PST 2004
>Closed-Date:    Sun Feb 29 11:16:10 PST 2004
>Last-Modified:  Sun Feb 29 11:16:10 PST 2004
>Originator:     Craig Rodrigues
>Release:        FreeBSD 5.2-CURRENT i386
>Organization:
>Environment:
System: FreeBSD dibbler.crodrigues.org 5.2-CURRENT FreeBSD 5.2-CURRENT #37


	
>Description:
audio/xmms-kj does not respect PTHREAD_LIBS.  This patch fixes it.
>How-To-Repeat:
	
>Fix:


Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/audio/xmms-kj/Makefile,v
retrieving revision 1.4
diff -u -r1.4 Makefile
--- Makefile	19 Feb 2004 09:33:38 -0000	1.4
+++ Makefile	29 Feb 2004 17:40:06 -0000
@@ -23,17 +23,19 @@
 
 USE_X_PREFIX=	yes
 USE_GNOME=	gtk12
+USE_REINPLACE=	yes
 
 .include <bsd.port.pre.mk>
 
-.if ${OSVERSION} >= 502102
-FORBIDDEN=	"Does not respect PTHREAD_{CFLAGS,LIBS}"
-.endif
+pre-patch:
+	${REINPLACE_CMD} -e 's/PTHREAD_LIBS/ ${PTHREAD_LIBS}/g' \
+			${PATCHDIR}/patch-aa
+	${RM} -f ${PATCHDIR}/*.bak
 
 do-build:
-	cd ${WRKSRC} && make
+	cd ${WRKSRC} && $(MAKE)
 
 do-install:
-	cd ${WRKSRC} && make install
+	cd ${WRKSRC} && $(MAKE) install
 
 .include <bsd.port.post.mk>
Index: files/patch-aa
===================================================================
RCS file: /home/ncvs/ports/audio/xmms-kj/files/patch-aa,v
retrieving revision 1.2
diff -u -r1.2 patch-aa
--- files/patch-aa	8 Feb 2004 21:58:30 -0000	1.2
+++ files/patch-aa	29 Feb 2004 17:40:06 -0000
@@ -10,7 +10,7 @@
  LDFLAGS=-O2
  # LIBS=-L/usr/lib `gtk-config --libs` $(LPNG) -lgthread -lpthread -lxmms -Wl,--rpath -Wl,/usr/local/lib
 -LIBS=`xmms-config --libs` $(LPNG)
-+LIBS=`xmms-config --libs` $(LPNG) -lc_r
++LIBS=`xmms-config --libs` $(LPNG) PTHREAD_LIBS
  OBJS=kj.o resource.o config.o image.o playlist.o
  CC=gcc
  
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: krion 
State-Changed-When: Sun Feb 29 11:16:04 PST 2004 
State-Changed-Why:  
Committed, thanks! 

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