From tkato@prontomail.com  Fri Jan 10 07:00:15 2003
Return-Path: <tkato@prontomail.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 3530D37B405
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 10 Jan 2003 07:00:15 -0800 (PST)
Received: from socigeog.hmt.toyama-u.ac.jp (socigeog.hmt.toyama-u.ac.jp [160.26.63.48])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 402AC43ED8
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 10 Jan 2003 07:00:14 -0800 (PST)
	(envelope-from tkato@prontomail.com)
Received: from localhost (localhost [127.0.0.1])
	by socigeog.hmt.toyama-u.ac.jp (Postfix) with SMTP id BDEAD499
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 11 Jan 2003 00:00:11 +0900 (JST)
Message-Id: <20030110235705.1eadbc07.tkato@prontomail.com>
Date: Fri, 10 Jan 2003 23:57:05 +0900
From: KATO Tsuguru <tkato@prontomail.com>
To: FreeBSD-gnats-submit@freebsd.org
Subject: Update port: audio/ksmp3play

>Number:         46932
>Category:       ports
>Synopsis:       Update port: audio/ksmp3play
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan 10 07:10:01 PST 2003
>Closed-Date:    Mon Jan 13 03:01:12 PST 2003
>Last-Modified:  Mon Jan 13 03:01:12 PST 2003
>Originator:     KATO Tsuguru
>Release:        FreeBSD 4.7-RELEASE-p2 i386
>Organization:
>Environment:
>Description:
- Fix build on 5-current

New file:
files/patch-ksmp3play.c
files/patch-windows.c

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/audio/ksmp3play/Makefile audio/ksmp3play/Makefile
--- /usr/ports/audio/ksmp3play/Makefile	Mon Jan  6 15:53:27 2003
+++ audio/ksmp3play/Makefile	Fri Jan 10 23:53:32 2003
@@ -13,24 +13,26 @@
 
 MAINTAINER=	ports@FreeBSD.org
 
-LIB_DEPENDS=	SDL-1.1.5:${PORTSDIR}/devel/sdl12 \
-		smpeg:${PORTSDIR}/graphics/smpeg \
-		gnugetopt:${PORTSDIR}/devel/libgnugetopt
+LIB_DEPENDS=	smpeg.1:${PORTSDIR}/graphics/smpeg
 
-USE_REINPLACE=	yes
 SDL_CONFIG?=	${LOCALBASE}/bin/sdl11-config
+
+USE_REINPLACE=	yes
 GNU_CONFIGURE=	yes
 CONFIGURE_ENV=	SDL_CONFIG=${SDL_CONFIG} \
-		LDFLAGS="-L${LOCALBASE}/lib -lgnugetopt"
+		CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib"
+
 MAN1=	ksmp3play.1
 
 post-patch:
 	@${REINPLACE_CMD} -e "s,-lpthread,${PTHREAD_LIBS},g" ${WRKSRC}/configure
 
-.if !defined(NOPORTDOCS)
 post-install:
+.if !defined(NOPORTDOCS)
 	@${MKDIR} ${DOCSDIR}
-	${CP} -R ${WRKSRC}/doc/ksmp3play* ${DOCSDIR}
+	${TAR} -C ${WRKSRC}/doc --exclude "CVS" -cf - . | \
+		${TAR} -C ${DOCSDIR} --unlink -xf -
+	@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
 .endif
 
 .include <bsd.port.mk>
diff -urN /usr/ports/audio/ksmp3play/files/patch-ksmp3play.c audio/ksmp3play/files/patch-ksmp3play.c
--- /usr/ports/audio/ksmp3play/files/patch-ksmp3play.c	Thu Jan  1 09:00:00 1970
+++ audio/ksmp3play/files/patch-ksmp3play.c	Sun Dec 29 12:45:50 2002
@@ -0,0 +1,10 @@
+--- ksmp3play.c.orig	Mon Aug 20 04:43:37 2001
++++ ksmp3play.c	Sun Dec 29 11:01:56 2002
+@@ -22,6 +22,7 @@
+ #include "ksmp3play.h"
+ #include <smpeg/smpeg.h>
+ #include <curses.h>
++#include <sys/time.h>
+ #include <sys/resource.h>
+ #include <string.h>
+ #include <ctype.h>
diff -urN /usr/ports/audio/ksmp3play/files/patch-windows.c audio/ksmp3play/files/patch-windows.c
--- /usr/ports/audio/ksmp3play/files/patch-windows.c	Thu Jan  1 09:00:00 1970
+++ audio/ksmp3play/files/patch-windows.c	Sun Dec 29 12:45:35 2002
@@ -0,0 +1,11 @@
+--- windows.c.orig	Mon Aug 20 02:43:24 2001
++++ windows.c	Sun Dec 29 12:45:25 2002
+@@ -22,7 +22,7 @@
+ #include "ksmp3play.h"
+ 
+ #include <sys/types.h>
+-#include <sys/dir.h>
++#include <dirent.h>
+ #include <sys/param.h>
+ #include <stdio.h>
+ #include <unistd.h>
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: arved 
State-Changed-When: Mon Jan 13 03:00:58 PST 2003 
State-Changed-Why:  
Committed, thanks 

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