Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Jan 2003 23:57:05 +0900
From:      KATO Tsuguru <tkato@prontomail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/46932: Update port: audio/ksmp3play
Message-ID:  <20030110235705.1eadbc07.tkato@prontomail.com>

next in thread | raw e-mail | index | archive | help

>Number:         46932
>Category:       ports
>Synopsis:       Update port: audio/ksmp3play
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan 10 07:10:01 PST 2003
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030110235705.1eadbc07.tkato>