From 837ac1383f32226ac351c5a823cbfeb8c3b5db64 Mon Sep 17 00:00:00 2001 From: Tilman Keskinoz Date: Mon, 13 Jan 2003 11:00:48 +0000 Subject: Fix build on CURRENT. PR: 46932 Submitted by: KATO Tsuguru --- audio/ksmp3play/Makefile | 16 +++++++++------- audio/ksmp3play/files/patch-ksmp3play.c | 10 ++++++++++ audio/ksmp3play/files/patch-windows.c | 11 +++++++++++ 3 files changed, 30 insertions(+), 7 deletions(-) create mode 100644 audio/ksmp3play/files/patch-ksmp3play.c create mode 100644 audio/ksmp3play/files/patch-windows.c diff --git a/audio/ksmp3play/Makefile b/audio/ksmp3play/Makefile index ec3bcc04a900..dc602b910c23 100644 --- a/audio/ksmp3play/Makefile +++ b/audio/ksmp3play/Makefile @@ -13,24 +13,26 @@ MASTER_SITES= http://www.xanadunet.net/ksmp3play/ 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 diff --git a/audio/ksmp3play/files/patch-ksmp3play.c b/audio/ksmp3play/files/patch-ksmp3play.c new file mode 100644 index 000000000000..0f7efd9da3a4 --- /dev/null +++ b/audio/ksmp3play/files/patch-ksmp3play.c @@ -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 + #include ++#include + #include + #include + #include diff --git a/audio/ksmp3play/files/patch-windows.c b/audio/ksmp3play/files/patch-windows.c new file mode 100644 index 000000000000..6a89ca129d13 --- /dev/null +++ b/audio/ksmp3play/files/patch-windows.c @@ -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 +-#include ++#include + #include + #include + #include -- cgit v1.2.3