View | Details | Raw Unified | Return to bug 46932
Collapse All | Expand All

(-)audio/ksmp3play/Makefile (-7 / +9 lines)
Lines 13-36 Link Here
13
13
14
MAINTAINER=	ports@FreeBSD.org
14
MAINTAINER=	ports@FreeBSD.org
15
15
16
LIB_DEPENDS=	SDL-1.1.5:${PORTSDIR}/devel/sdl12 \
16
LIB_DEPENDS=	smpeg.1:${PORTSDIR}/graphics/smpeg
17
		smpeg:${PORTSDIR}/graphics/smpeg \
18
		gnugetopt:${PORTSDIR}/devel/libgnugetopt
19
17
20
USE_REINPLACE=	yes
21
SDL_CONFIG?=	${LOCALBASE}/bin/sdl11-config
18
SDL_CONFIG?=	${LOCALBASE}/bin/sdl11-config
19
20
USE_REINPLACE=	yes
22
GNU_CONFIGURE=	yes
21
GNU_CONFIGURE=	yes
23
CONFIGURE_ENV=	SDL_CONFIG=${SDL_CONFIG} \
22
CONFIGURE_ENV=	SDL_CONFIG=${SDL_CONFIG} \
24
		LDFLAGS="-L${LOCALBASE}/lib -lgnugetopt"
23
		CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib"
24
25
MAN1=	ksmp3play.1
25
MAN1=	ksmp3play.1
26
26
27
post-patch:
27
post-patch:
28
	@${REINPLACE_CMD} -e "s,-lpthread,${PTHREAD_LIBS},g" ${WRKSRC}/configure
28
	@${REINPLACE_CMD} -e "s,-lpthread,${PTHREAD_LIBS},g" ${WRKSRC}/configure
29
29
30
.if !defined(NOPORTDOCS)
31
post-install:
30
post-install:
31
.if !defined(NOPORTDOCS)
32
	@${MKDIR} ${DOCSDIR}
32
	@${MKDIR} ${DOCSDIR}
33
	${CP} -R ${WRKSRC}/doc/ksmp3play* ${DOCSDIR}
33
	${TAR} -C ${WRKSRC}/doc --exclude "CVS" -cf - . | \
34
		${TAR} -C ${DOCSDIR} --unlink -xf -
35
	@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
34
.endif
36
.endif
35
37
36
.include <bsd.port.mk>
38
.include <bsd.port.mk>
(-)audio/ksmp3play/files/patch-ksmp3play.c (+10 lines)
Line 0 Link Here
1
--- ksmp3play.c.orig	Mon Aug 20 04:43:37 2001
2
+++ ksmp3play.c	Sun Dec 29 11:01:56 2002
3
@@ -22,6 +22,7 @@
4
 #include "ksmp3play.h"
5
 #include <smpeg/smpeg.h>
6
 #include <curses.h>
7
+#include <sys/time.h>
8
 #include <sys/resource.h>
9
 #include <string.h>
10
 #include <ctype.h>
(-)audio/ksmp3play/files/patch-windows.c (+11 lines)
Line 0 Link Here
1
--- windows.c.orig	Mon Aug 20 02:43:24 2001
2
+++ windows.c	Sun Dec 29 12:45:25 2002
3
@@ -22,7 +22,7 @@
4
 #include "ksmp3play.h"
5
 
6
 #include <sys/types.h>
7
-#include <sys/dir.h>
8
+#include <dirent.h>
9
 #include <sys/param.h>
10
 #include <stdio.h>
11
 #include <unistd.h>

Return to bug 46932