ports/63538: audio/xmms-kj, respect PTHREAD_LIBS

Craig Rodrigues rodrigc at crodrigues.org
Sun Feb 29 17:50:21 UTC 2004


>Number:         63538
>Category:       ports
>Synopsis:       audio/xmms-kj, respect PTHREAD_LIBS
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Feb 29 09:50:20 PST 2004
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:



More information about the freebsd-ports-bugs mailing list